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
NVM_VERSION=$(nvm version) | |
sudo ln -s "$NVM_DIR/versions/node/$NVM_VERSION/bin/node" "/usr/bin/node" | |
sudo ln -s "$NVM_DIR/versions/node/$NVM_VERSION/bin/npm" "/usr/bin/npm" | |
sudo ln -s "$NVM_DIR/versions/node/$NVM_VERSION/bin/npx" "/usr/bin/npx" |
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
# Execute this code | |
sudo groupadd docker | |
sudo gpasswd -a $USER docker | |
# Close your terminal and then execute unsweating-docker-2.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
# This line of code makes Pipenv install the virtual environment in the same folder of the Pipfile (under .venv) | |
export PIPENV_VENV_IN_PROJECT="enabled" |
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
# Install phpenv | |
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \ | |
| bash | |
# --- COPY WHAT IS DISPLAYED ON THE CONSOLE IN THE END OF YOUR BASHRC --- | |
# Install missing libraries used to install various php versions by phpenv | |
apt install libxml2-dev | |
apt install libjpeg-dev | |
apt install libonig-dev |
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
# Fixes error when installing pylint on pipenv with pyenv | |
sudo apt-get install libffi-dev | |
# Fixes error on python cli, when pressing arrow up | |
sudo apt-get install libreadline-dev | |
# Fixes _lzma strange error | |
sudo apt install liblzma-dev | |
# Fixes error when using jupyter notebooks | |
sudo apt install libsqlite3-dev | |
# Uninstall your python version | |
pyenv uninstall 3.9.5 |
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 this to the shortcuts of VSCode | |
[ | |
{ | |
"key": "tab", | |
"command": "markdown.extension.onTabKey", | |
"when": "editorTextFocus && !inlineSuggestionVisible && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'" | |
}, | |
{ | |
"key": "tab", | |
"command": "-markdown.extension.onTabKey", |
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
#!/bin/bash | |
for filepath in ./*.webm; do | |
filename=$(basename -- "$filepath") | |
filename="${filename%.*}" | |
ffmpeg -i ${filename}.webm ${filename}.mp4 | |
done |
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
#!/bin/bash | |
git fetch --tags -f |
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 https = require('https'); | |
const fs = require('fs'); | |
function analyzeInputData(charactersText) { | |
const ranking = charactersText.split('\n').map(line => line.trim()).filter(line => !!line).map(line => JSON.parse(line)).map(line => { | |
if (line.frequency_rank === '8220') { | |
line.pinyin = 'y\u01cen'; | |
} | |
else if (line.frequency_rank === '9019') { | |
line.pinyin = 'ni\u00e1n'; |
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
port=80 | |
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport $port -j ACCEPT | |
sudo netfilter-persistent save |
OlderNewer