This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"git.autofetch": true, | |
"git.enableSmartCommit": true, | |
"eslint.options": { | |
"configFile": "eslintrc.js" | |
}, | |
"explorer.confirmDragAndDrop": false, | |
"editor.formatOnType": false, | |
"prettier.singleQuote": true, | |
"workbench.colorCustomizations": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function changeMac() { | |
local mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') | |
sudo ifconfig en0 ether $mac | |
sudo ifconfig en0 down | |
sudo ifconfig en0 up | |
echo "Your new physical address is $mac" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
ignore.js | |
dist | |
gatsby-config.js | |
src/components/seo.js | |
.cache | |
public | |
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
useTabs: false, // Indent lines with tabs instead of spaces. | |
printWidth: 120, // Specify the length of line that the printer will wrap on. | |
tabWidth: 2, // Specify the number of spaces per indentation-level. | |
singleQuote: true, // Use single quotes instead of double quotes. | |
jsxSingleQuote: true, | |
bracketSpacing: true, | |
arrowParens: 'always', | |
proseWrap: 'always', | |
htmlWhitespaceSensitivity: 'ignore', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
echo "====== Running After Build Scripts ========" | |
echo "0. === moving public to build ===" | |
mv public build | |
echo "1. === Copy index.html to 200.html ===" | |
cp build/index.html build/200.html | |
echo -e "Copied\n\n\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
save-exact=true | |
save=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save esm nodemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"start": "nodemon -r esm --inspect-brk --inspect=0.0.0.0:9229 src/server.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Narendra", | |
"age": 32, | |
"place": { | |
"name": "Delhi", | |
"pin": "110017" | |
}, | |
"likes": [ | |
"Apple", | |
"Banana", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install mtr | |
brew link mtr # This might fail, this is why following command are added. | |
sudo ln -s /usr/local/Cellar/mtr/0.92/sbin/mtr /usr/local/bin/mtr | |
sudo ln -s /usr/local/Cellar/mtr/0.92/sbin/mtr-packet /usr/local/bin/mtr-packet | |