Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f8991e8

Browse files
Configure .env files & fix lint
1 parent 67e8bdd commit f8991e8

22 files changed

+3741
-5089
lines changed

‎backend/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
2-
.env
2+
.env*
33
dist

‎backend/data/consolidated/_index.json

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,91 @@
11
[
2-
{
3-
"name": "BASH",
4-
"icon": "http://localhost:5000/icons/bash.svg",
5-
"subLanguages": []
6-
},
7-
{
8-
"name": "C",
9-
"icon": "http://localhost:5000/icons/c.svg",
10-
"subLanguages": []
11-
},
12-
{
13-
"name": "CPP",
14-
"icon": "http://localhost:5000/icons/cpp.svg",
15-
"subLanguages": []
16-
},
17-
{
18-
"name": "CSHARP",
19-
"icon": "http://localhost:5000/icons/csharp.svg",
20-
"subLanguages": []
21-
},
22-
{
23-
"name": "CSS",
24-
"icon": "http://localhost:5000/icons/css.svg",
25-
"subLanguages": []
26-
},
27-
{
28-
"name": "HASKELL",
29-
"icon": "http://localhost:5000/icons/haskell.svg",
30-
"subLanguages": []
31-
},
32-
{
33-
"name": "HTML",
34-
"icon": "http://localhost:5000/icons/html.svg",
35-
"subLanguages": []
36-
},
37-
{
38-
"name": "JAVA",
39-
"icon": "http://localhost:5000/icons/java.svg",
40-
"subLanguages": []
41-
},
42-
{
43-
"name": "JAVASCRIPT",
44-
"icon": "http://localhost:5000/icons/javascript.svg",
45-
"subLanguages": [
46-
{
47-
"name": "REACT",
48-
"icon": "http://localhost:5000/icons/javascript--react.svg"
49-
}
50-
]
51-
},
52-
{
53-
"name": "PYTHON",
54-
"icon": "http://localhost:5000/icons/python.svg",
55-
"subLanguages": [
56-
{
57-
"name": "FASTAPI",
58-
"icon": "http://localhost:5000/icons/python--fastapi.svg"
59-
},
60-
{
61-
"name": "TKINTER",
62-
"icon": "http://localhost:5000/icons/python--tkinter.svg"
63-
}
64-
]
65-
},
66-
{
67-
"name": "REGEX",
68-
"icon": "http://localhost:5000/icons/regex.svg",
69-
"subLanguages": []
70-
},
71-
{
72-
"name": "RUBY",
73-
"icon": "http://localhost:5000/icons/ruby.svg",
74-
"subLanguages": []
75-
},
76-
{
77-
"name": "RUST",
78-
"icon": "http://localhost:5000/icons/rust.svg",
79-
"subLanguages": []
80-
},
81-
{
82-
"name": "SCSS",
83-
"icon": "http://localhost:5000/icons/scss.svg",
84-
"subLanguages": []
85-
},
86-
{
87-
"name": "TYPESCRIPT",
88-
"icon": "http://localhost:5000/icons/typescript.svg",
89-
"subLanguages": []
90-
}
91-
]
2+
{
3+
"name": "BASH",
4+
"icon": "http://localhost:5000/icons/bash.svg",
5+
"subLanguages": []
6+
},
7+
{
8+
"name": "C",
9+
"icon": "http://localhost:5000/icons/c.svg",
10+
"subLanguages": []
11+
},
12+
{
13+
"name": "CPP",
14+
"icon": "http://localhost:5000/icons/cpp.svg",
15+
"subLanguages": []
16+
},
17+
{
18+
"name": "CSHARP",
19+
"icon": "http://localhost:5000/icons/csharp.svg",
20+
"subLanguages": []
21+
},
22+
{
23+
"name": "CSS",
24+
"icon": "http://localhost:5000/icons/css.svg",
25+
"subLanguages": []
26+
},
27+
{
28+
"name": "HASKELL",
29+
"icon": "http://localhost:5000/icons/haskell.svg",
30+
"subLanguages": []
31+
},
32+
{
33+
"name": "HTML",
34+
"icon": "http://localhost:5000/icons/html.svg",
35+
"subLanguages": []
36+
},
37+
{
38+
"name": "JAVA",
39+
"icon": "http://localhost:5000/icons/java.svg",
40+
"subLanguages": []
41+
},
42+
{
43+
"name": "JAVASCRIPT",
44+
"icon": "http://localhost:5000/icons/javascript.svg",
45+
"subLanguages": [
46+
{
47+
"name": "REACT",
48+
"icon": "http://localhost:5000/icons/javascript--react.svg"
49+
}
50+
]
51+
},
52+
{
53+
"name": "PYTHON",
54+
"icon": "http://localhost:5000/icons/python.svg",
55+
"subLanguages": [
56+
{
57+
"name": "FASTAPI",
58+
"icon": "http://localhost:5000/icons/python--fastapi.svg"
59+
},
60+
{
61+
"name": "TKINTER",
62+
"icon": "http://localhost:5000/icons/python--tkinter.svg"
63+
}
64+
]
65+
},
66+
{
67+
"name": "REGEX",
68+
"icon": "http://localhost:5000/icons/regex.svg",
69+
"subLanguages": []
70+
},
71+
{
72+
"name": "RUBY",
73+
"icon": "http://localhost:5000/icons/ruby.svg",
74+
"subLanguages": []
75+
},
76+
{
77+
"name": "RUST",
78+
"icon": "http://localhost:5000/icons/rust.svg",
79+
"subLanguages": []
80+
},
81+
{
82+
"name": "SCSS",
83+
"icon": "http://localhost:5000/icons/scss.svg",
84+
"subLanguages": []
85+
},
86+
{
87+
"name": "TYPESCRIPT",
88+
"icon": "http://localhost:5000/icons/typescript.svg",
89+
"subLanguages": []
90+
}
91+
]

‎backend/data/consolidated/bash.json

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
[
2-
{
3-
"name": "System",
4-
"snippets": [
5-
{
6-
"title": "Kill Previous Instances",
7-
"description": "Kill all previous instances of a script",
8-
"author": "saminjay",
9-
"tags": [
10-
"kill",
11-
"process",
12-
"background"
13-
],
14-
"contributors": [],
15-
"code": "function kill_prev() {\n # $$ contains current pid (grep ignore so it doesn't suicide)\n local processes\n readarray -t processes < <(pgrep -f \"0ドル\" | grep -v \"$$\")\n kill \"${processes[@]}\" >/dev/null 2>&1\n}\n\n# Usage:\n# Add this function to your background running script\n# It will make sure that only one instance of your script is running at a time\nkill_prev\n",
16-
"extension": "bash"
17-
},
18-
{
19-
"title": "System Resource Monitor",
20-
"description": "Monitors system resources (CPU, RAM, disk, users)",
21-
"author": "sponkurtus2",
22-
"tags": [
23-
"file",
24-
"system"
25-
],
26-
"contributors": [],
27-
"code": "system_resources () {\n echo \"CPU Load: $(top -bn1 | grep \"Cpu(s)\" | awk '{print 2ドル}')%\"\n echo \"Memory Used: $(free -m | awk 'NR==2{printf \"%.2f%%\", 3ドル*100/2ドル}')\"\n echo \"Disk Used: $(df -h / | awk 'NR==2{print 5ドル}')\"\n echo \"Active Users: $(who | wc -l)\"\n}\n\nsystem_resources \"$@\"\n\n# Usage:\nchmod a+x system-resource-monitor.sh # First make it executable for all the users\n\n./system-resource-monitor.sh # It will print the following system resources (CPU, RAM, disk, and active users)\n",
28-
"extension": "bash"
29-
}
30-
]
31-
}
32-
]
2+
{
3+
"name": "System",
4+
"snippets": [
5+
{
6+
"title": "Kill Previous Instances",
7+
"description": "Kill all previous instances of a script",
8+
"author": "saminjay",
9+
"tags": ["kill", "process", "background"],
10+
"contributors": [],
11+
"code": "function kill_prev() {\n # $$ contains current pid (grep ignore so it doesn't suicide)\n local processes\n readarray -t processes < <(pgrep -f \"0ドル\" | grep -v \"$$\")\n kill \"${processes[@]}\" >/dev/null 2>&1\n}\n\n# Usage:\n# Add this function to your background running script\n# It will make sure that only one instance of your script is running at a time\nkill_prev\n",
12+
"extension": "bash"
13+
},
14+
{
15+
"title": "System Resource Monitor",
16+
"description": "Monitors system resources (CPU, RAM, disk, users)",
17+
"author": "sponkurtus2",
18+
"tags": ["file", "system"],
19+
"contributors": [],
20+
"code": "system_resources () {\n echo \"CPU Load: $(top -bn1 | grep \"Cpu(s)\" | awk '{print 2ドル}')%\"\n echo \"Memory Used: $(free -m | awk 'NR==2{printf \"%.2f%%\", 3ドル*100/2ドル}')\"\n echo \"Disk Used: $(df -h / | awk 'NR==2{print 5ドル}')\"\n echo \"Active Users: $(who | wc -l)\"\n}\n\nsystem_resources \"$@\"\n\n# Usage:\nchmod a+x system-resource-monitor.sh # First make it executable for all the users\n\n./system-resource-monitor.sh # It will print the following system resources (CPU, RAM, disk, and active users)\n",
21+
"extension": "bash"
22+
}
23+
]
24+
}
25+
]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /