This file contains hidden or 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/sh | |
| # install and update adblock as https://github.com/Docbroke did it here https://github.com/fanglingsu/vimb/issues/430#issuecomment-367570464 | |
| # Gist: 5e4649253bd023e5af4cdb5fefa541d2 | |
| if [ ! -L /usr/lib/vimb/adblock.so ]; then | |
| notify-send --urgency=normal "installing adblock plugin" | |
| sudo ln -s /lib/wyebrowser/adblock.so /lib/vimb | |
| fi |
This file contains hidden or 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/sh | |
| # affiche le dernier R0 connu du la COVID19 | |
| python -c "import csv,codecs,json,urllib.request;print(json.dumps(list(csv.reader(codecs.iterdecode(urllib.request.urlopen('https://www.data.gouv.fr/fr/datasets/r/381a9472-ce83-407d-9a64-1b8c23af83df'), 'utf-8')))))" | jq '.[] | .[2]' | grep -v "NA" | tail -1 | tr -d '"' |
This file contains hidden or 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/zsh | |
| # | |
| # Script to update binance app + aur package | |
| # | |
| # GistID:58d0769588db7a673c5a66843c3cc6db | |
| echo "Loading Binance binary" | |
| curl -sO https://ftp.binance.com/electron-desktop/linux/production/binance-amd64-linux-deb.deb |
This file contains hidden or 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/zsh | |
| # | |
| # Simple wrapper to havce website embedded in a vimb floating window | |
| # depends on i3 and vimb | |
| # GistID:e8e5001619c9d8755b08be2ae4f0516d | |
| URI=$1 | |
| NAME=${2:-$1} |
This file contains hidden or 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/zsh | |
| set -e | |
| # copy all titles of dvd | |
| # GistID:48c17774a5adb5c1bd45def1a21bd16e | |
| dirpath="${1:-$(pwd)}" | |
| title=$(HandBrakeCLI -i /dev/sr0 -t 0 2>&1 | grep "DVD Title:" | sed -E 's/.*DVD Title: (.*)$/\1/') | |
| HandBrakeCLI -i /dev/sr0 -t 0 -v 2>&1 | grep '+ title' | sed -E "s@[^0-9]*([0-9]+):\$@HandBrakeCLI -i /dev/sr0 -m -t \1 -o \"${dirpath}/${title}_\1.mp4\"@" > /tmp/handbrake-tasks.sh | |
| sh /tmp/handbrake-tasks.sh | |
| #more ~/handbrake-sample.txt | grep '+ title' | sed -E "s@[^0-9]*([0-9]+):\$@HandBrake -t \1 -o \"$1 \1.mp4\"@" |
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| reverse-proxy: | |
| image: nginx | |
| volumes: | |
| - ./nginx.conf:/etc/nginx/conf.d/default.conf | |
| - /etc/letsencrypt/:/etc/letsencrypt/ | |
| ports: | |
| - 443:443 | |
| networks: |
This file contains hidden or 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
| # duniter reverse proxy conf | |
| # GistID: 73fb5272f602c5011aeaaf6b4f8b00d0 | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen 80; |
This file contains hidden or 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
| { | |
| "currency": "g1", | |
| "endpoints": [], | |
| "rmEndpoints": [], | |
| "upInterval": 3600000, | |
| "c": 0.0488, | |
| "dt": 86400, | |
| "dtReeval": 15778800, | |
| "ud0": 1000, | |
| "stepMax": 5, |
This file contains hidden or 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/zsh | |
| # GistID: e4eb7bf3ed820cbd24b2be1da71f1068 | |
| # Get text of the first result of a wikipedia search as argument | |
| # Dependencies: http, jq, sed | |
| http https://fr.wikipedia.org/w/api.php\?format\=json\&action\=query\&generator\=search\&gsrsearch\=$1\&gsrlimit\=1\&prop\=extracts\&explaintext\=1 | jq '.query.pages | map(values) | .[0].extract' | sed 's/\\n/\n/g' |