Skip to content

Commit e4bc4ea

Browse files
committed
Add preview image for README
1 parent 8f31484 commit e4bc4ea

21 files changed

+5087
-3736
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ QuickSnip is an open-source tool designed for developers who want to organize, s
1010

1111
<br>
1212

13-
![Website preview](/public/preview.png)
13+
![Website preview](/preview.png)
1414

1515
## How to Contribute
1616

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