Skip to content

Commit 67e8bdd

Browse files
committed
Move data to dist folder and fix file paths
1 parent a1208a8 commit 67e8bdd

33 files changed

+5301
-4330
lines changed

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: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
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": ["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-
]
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+
]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy