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
GITHUB_TOKEN=<your_gh_token> |
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 | |
# Syntax: [./git_groups_deep_clone.sh <gitlab_host> <gitlab_private_token> <root_group_id> | |
gitlab_host=$1 | |
gitlab_private_token=$2 | |
root_group_id=$3 | |
git_shallow=" --depth 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
/* | |
Special characters for italian keyboards | |
*/ | |
; -- Tilde | |
<^>!'::SendInput "~" | |
; -- BackTick | |
<^>!ì::SendInput "``" | |
/* |
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
path_of_certs_folder="<INSERT_HERE>" | |
# note, if you want you can put 9000 for http | |
docker run -d -p 9443:9443 -p 8000:8000 \ | |
--name portainer --restart always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v portainer_data:/data \ | |
-v $path_of_certs_folder:/certs \ | |
portainer/portainer-ce:latest \ | |
--sslcert /certs/fullchain.pem \ | |
--sslkey /certs/privkey.pem |
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 |
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
#!/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
// 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
# 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 |
NewerOlder