View ios-xcode.env
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
# To use nvm with brew, uncomment the line below | |
. "$(brew --prefix nvm)/nvm.sh" --no-use | |
export NODE_BINARY=$(command -v node) |
View error-rsa-key.txt
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
# add to ~/.ssh/config | |
Host gitlab.com | |
UpdateHostKeys no |
View ubuntu-hostname.sh
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
sudo nano /etc/hostname | |
sudo nano /etc/hosts | |
sudo reboot |
View delete-subdirs.sh
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
find . -type d -exec rm -rf {} \; |
View node-mem.js
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
const formatMemoryUsage = (data) => `${Math.round(data / 1024 / 1024 * 100) / 100} MB`; | |
const memoryData = process.memoryUsage(); | |
const memoryUsage = { | |
rss: `${formatMemoryUsage(memoryData.rss)} -> Resident Set Size - total memory allocated for the process execution`, | |
heapTotal: `${formatMemoryUsage(memoryData.heapTotal)} -> total size of the allocated heap`, | |
heapUsed: `${formatMemoryUsage(memoryData.heapUsed)} -> actual memory used during the execution`, | |
external: `${formatMemoryUsage(memoryData.external)} -> V8 external memory`, | |
}; |
View debug-vue-vite-vscode.json
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
// launch.json for Chrome | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Debug with Chrome", | |
"url": "http://localhost:4000", | |
"webRoot": "${workspaceFolder}/app" |
View git-pgp-sign.sh
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
# (Optional) unset previous configuration | |
git config --global --unset gpg.format | |
# List all PGP Keys | |
gpg --list-secret-keys --keyid-format=long | |
# ------------------------------------ | |
# sec 4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10] | |
# uid Hubot <hubot@example.com> | |
# Set signing key by key-id |
View base64-from-cmd.sh
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
# Copy base64-string with cmd+c first | |
pbpaste | base64 --decode |
View node-as-bg-service.sh
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
nohup node index.js >> app.log 2>&1 & |
View is-service-running.sh
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
systemctl is-active <service-name> |
NewerOlder