Skip to content

Instantly share code, notes, and snippets.

View gaurav-nelson's full-sized avatar
🐧

Gaurav Nelson gaurav-nelson

🐧
View GitHub Profile
{
"servers": [
{
"url": "pets.ctf.siesta.monster"
}
],
"paths": {
"/api/pets/": {
"get": {
"responses": {
@gaurav-nelson
gaurav-nelson / semantic-line-break.js
Created November 1, 2022 02:21
Converts a Markdown file to a new Markdown file with Semantic Line Breaks 🤯
#!/usr/bin/env node
//Converts a Markdown file to a new Markdown file with Semantic Line Breaks 🤯
//Make sure the input file extension is md, if not modify the newFileName variable in line#16
//Usage: node semantic-line-break.js filename.md
//For processing multiple files run with the `find` command:
// find src/content/docs/ -name \*.md -exec node semantic-line-break.js {} \;
//Output: Creates a new file with Semantic Line Breaks called filename_slb.md
const fs = require("fs");
@gaurav-nelson
gaurav-nelson / dark-theme-stylebot-openshift-docs.css
Last active January 18, 2022 17:33
Stylebot CSS for dark theme on docs.openshift.com
@import url(https://fonts.googleapis.com/css2?family=Droid+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);
html body {
color: #fafafa;
background-color: #212121;
}
div div p {
color: #fafafa;
}
[alias]
lg = log --pretty=format:'%Cred%h%Creset %Cblue%an%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit --date=relative
unstage = reset HEAD --
alias = "!f() { \
if [ \"$#\" -ne 2 ]; then { echo >&2 \"Usage: git alias <name> <command>\"; exit 1; } fi; \
git config --global alias.\"$1\" \"$2\"; \
}; f"
syncoriginmaster = "!f() { \
git fetch origin master && git rebase origin/master; \
}; f"