Skip to content

Commit ff43717

Browse files
2.5.0 Commit
1 parent b4a3731 commit ff43717

File tree

20 files changed

+428
-5
lines changed

20 files changed

+428
-5
lines changed

.gitignore

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
# Created by https://www.gitignore.io
2+
3+
### Go ###
4+
# Binaries for programs and plugins
5+
*.dll
6+
*.so
7+
*.dylib
8+
9+
/bin/
10+
**/bin/*
11+
/dist/
12+
**/dist/*
13+
/test/tests.*
14+
/test/coverage.*
15+
16+
# Test binary, built with " go test -c "
17+
*.test
18+
19+
# Output of the go coverage tool, specifically when used with LiteIDE
20+
*.out
21+
22+
### Vim ###
23+
# Swap
24+
[._]*.s[a-v][a-z]
25+
[._]*.sw[a-p]
26+
[._]s[a-rt-v][a-z]
27+
[._]ss[a-gi-z]
28+
[._]sw[a-p]
29+
30+
# Session
31+
Session.vim
32+
Sessionx.vim
33+
34+
# Temporary
35+
.netrwhist
36+
*~
37+
# Auto-generated tag files
38+
# Persistent undo
39+
[._]*.un~
40+
41+
### VisualStudioCode ###
42+
.vscode/*
43+
44+
### VisualStudioCode Patch ###
45+
# Ignore all local history of files
46+
.history
47+
48+
### macOS ###
49+
# General
50+
.DS_Store
51+
.AppleDouble
52+
.LSOverride
53+
54+
# Icon must end with two \r
55+
Icon
56+
57+
# Thumbnails
58+
._*
59+
60+
# Files that might appear in the root of a volume
61+
.DocumentRevisions-V100
62+
.fseventsd
63+
.Spotlight-V100
64+
.TemporaryItems
65+
.Trashes
66+
.VolumeIcon.icns
67+
.com.apple.timemachine.donotpresent
68+
69+
# Directories potentially created on remote AFP share
70+
.AppleDB
71+
.AppleDesktop
72+
Network Trash Folder
73+
Temporary Items
74+
.apdisk
75+
76+
# End of https://www.gitignore.io/api/macos
77+
78+
# End of https://www.gitignore.io/api/macos
79+
# Intellij project files
80+
*.iml
81+
*.ipr
82+
*.iws
83+
.idea/
84+
85+
# Created by https://www.toptal.com/developers/gitignore/api/maven
86+
# Edit at https://www.toptal.com/developers/gitignore?templates=maven
87+
88+
### Maven ###
89+
target/
90+
pom.xml.tag
91+
pom.xml.releaseBackup
92+
pom.xml.versionsBackup
93+
pom.xml.next
94+
release.properties
95+
dependency-reduced-pom.xml
96+
buildNumber.properties
97+
.mvn/timing.properties
98+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
99+
.mvn/wrapper/maven-wrapper.jar
100+
101+
# End of https://www.toptal.com/developers/gitignore/api/maven
102+
103+
104+
# Created by https://www.toptal.com/developers/gitignore/api/java
105+
# Edit at https://www.toptal.com/developers/gitignore?templates=java
106+
107+
### Java ###
108+
# Compiled class file
109+
*.class
110+
111+
# Log file
112+
*.log
113+
114+
# BlueJ files
115+
*.ctxt
116+
117+
# Mobile Tools for Java (J2ME)
118+
.mtj.tmp/
119+
120+
# Package Files #
121+
*.jar
122+
*.war
123+
*.nar
124+
*.ear
125+
*.zip
126+
*.tar.gz
127+
*.rar
128+
129+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
130+
hs_err_pid*
131+
132+
# End of https://www.toptal.com/developers/gitignore/api/java
133+
134+
# Created by https://www.toptal.com/developers/gitignore/api/node
135+
# Edit at https://www.toptal.com/developers/gitignore?templates=node
136+
137+
### Node ###
138+
# Logs
139+
*.log
140+
npm-debug.log*
141+
yarn-debug.log*
142+
yarn-error.log*
143+
lerna-debug.log*
144+
145+
# Diagnostic reports (https://nodejs.org/api/report.html)
146+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
147+
148+
# Runtime data
149+
pids
150+
*.pid
151+
*.seed
152+
*.pid.lock
153+
154+
# Directory for instrumented libs generated by jscoverage/JSCover
155+
lib-cov
156+
157+
# Coverage directory used by tools like istanbul
158+
coverage
159+
*.lcov
160+
161+
# nyc test coverage
162+
.nyc_output
163+
164+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
165+
.grunt
166+
167+
# Bower dependency directory (https://bower.io/)
168+
bower_components
169+
170+
# node-waf configuration
171+
.lock-wscript
172+
173+
# Compiled binary addons (https://nodejs.org/api/addons.html)
174+
build/Release
175+
176+
# Dependency directories
177+
node_modules/
178+
jspm_packages/
179+
180+
# TypeScript v1 declaration files
181+
typings/
182+
183+
# TypeScript cache
184+
*.tsbuildinfo
185+
186+
# Optional npm cache directory
187+
.npm
188+
189+
# Optional eslint cache
190+
.eslintcache
191+
192+
# Microbundle cache
193+
.rpt2_cache/
194+
.rts2_cache_cjs/
195+
.rts2_cache_es/
196+
.rts2_cache_umd/
197+
198+
# Optional REPL history
199+
.node_repl_history
200+
201+
# Output of 'npm pack'
202+
*.tgz
203+
204+
# Yarn Integrity file
205+
.yarn-integrity
206+
207+
# dotenv environment variables file
208+
.env
209+
.env.test
210+
211+
# parcel-bundler cache (https://parceljs.org/)
212+
.cache
213+
214+
# Next.js build output
215+
.next
216+
217+
# Nuxt.js build / generate output
218+
.nuxt
219+
dist
220+
221+
# Gatsby files
222+
.cache/
223+
# Comment in the public line in if your project uses Gatsby and not Next.js
224+
# https://nextjs.org/blog/next-9-1#public-directory-support
225+
# public
226+
227+
# vuepress build output
228+
.vuepress/dist
229+
230+
# Serverless directories
231+
.serverless/
232+
233+
# FuseBox cache
234+
.fusebox/
235+
236+
# DynamoDB Local files
237+
.dynamodb/
238+
239+
# TernJS port file
240+
.tern-port
241+
242+
# Stores VSCode versions used for testing VSCode extensions
243+
.vscode-test
244+
245+
# End of https://www.toptal.com/developers/gitignore/api/node
246+
247+
package-lock.json

github/.DS_Store

0 Bytes
Binary file not shown.

github/get/beagle-insights/src/formula/formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def Run(user, key, contribution):
1414
contributors = []
1515
base_url_zup = f"https://api.github.com/repos/ZupIT/"
1616

17-
print(f"🐙 Getting traffic insights for ZupIT's repos:")
17+
print(f"🐙 Getting insights for ZupIT's repos:")
1818
for repo in repo_names_zup:
1919
print(f"\t- github.com/ZupIT/{repo}/")
2020
repo_url_zup = urljoin(base_url_zup, repo + "/")

github/get/charles-insights/src/formula/formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def Run(user, key, contribution):
1414
contributors = []
1515
base_url_zup = f"https://api.github.com/repos/ZupIT/"
1616

17-
print(f"🐙 Getting traffic insights for ZupIT's repos:")
17+
print(f"🐙 Getting insights for ZupIT's repos:")
1818
for repo in repo_names_zup:
1919
print(f"\t- github.com/ZupIT/{repo}/")
2020
repo_url_zup = urljoin(base_url_zup, repo + "/")

github/get/my-insights/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ It will return datas such as:
2323

2424
## Execution sample
2525

26-
<img class="special-img-class" src="/github/get/my-insights/docs/img/my-insights-sample.png" />
26+
<img class="special-img-class" src="/github/get/my-insights/docs/img/rit-github-my-insights-sample.png" />
File renamed without changes.

github/get/my-insights/src/formula/formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def Run(user, key, contribution):
1212
insights = []
1313
base_url = f"https://api.github.com/repos/{user}/"
1414

15-
print(f"🐙 Getting traffic insights for {user}'s repos:")
15+
print(f"🐙 Getting insights for {user}'s repos:")
1616
for repo in repo_names:
1717
print(f"\t- github.com/{user}/{repo}/")
1818
repo_url = urljoin(base_url, repo + "/")

github/get/ritchie-insights/src/formula/formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def Run(user, key, contribution):
1414
contributors = []
1515
base_url_zup = f"https://api.github.com/repos/ZupIT/"
1616

17-
print(f"🐙 Getting traffic insights for ZupIT's repos:")
17+
print(f"🐙 Getting insights for ZupIT's repos:")
1818
for repo in repo_names_zup:
1919
print(f"\t- github.com/ZupIT/{repo}/")
2020
repo_url_zup = urljoin(base_url_zup, repo + "/")

github/insights/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM cimg/python:3.8
2+
3+
USER root
4+
5+
RUN curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
6+
7+
RUN mkdir /rit
8+
COPY . /rit
9+
RUN sed -i 's/\r//g' /rit/set_umask.sh
10+
RUN sed -i 's/\r//g' /rit/run.sh
11+
RUN chmod +x /rit/set_umask.sh
12+
13+
WORKDIR /app
14+
ENTRYPOINT ["/rit/set_umask.sh"]
15+
CMD ["/rit/run.sh"]

github/insights/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SH
2+
BINARY_NAME=run.sh
3+
BINARY_NAME_WINDOWS=run.bat
4+
BIN_FOLDER=bin
5+
6+
build: python-build docker
7+
8+
python-build:
9+
mkdir -p $(BIN_FOLDER)
10+
echo '#!/bin/sh' > $(BIN_FOLDER)/$(BINARY_NAME)
11+
echo 'python3 "$$(dirname "$$0")"/main.py' >> $(BIN_FOLDER)/$(BINARY_NAME)
12+
cp -r src/* $(BIN_FOLDER)
13+
chmod +x $(BIN_FOLDER)/$(BINARY_NAME)
14+
echo 'python main.py' >> $(BIN_FOLDER)/$(BINARY_NAME_WINDOWS)
15+
16+
docker:
17+
cp Dockerfile set_umask.sh $(BIN_FOLDER)

0 commit comments

Comments
 (0)