cd ~
wget http://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
tar -xzf node-v6.2.1-linux-armv6l.tar.gz
node-v6.2.1-linux-armv6l/bin/node -v
The last command should print v6.2.1.
Now you can copy it to /usr/local
| // open your javascript console and paste this | |
| copy([...$('[role="grid"]')[Object.keys($('[role="grid"]')).filter(x => x.startsWith('__reactProps'))[0]].children[0].props.values[0][1].collection] | |
| .filter(x => x.value.clip.clip.audio_url || x.value.clip.clip.video_url) | |
| .map(x => { | |
| const title = x.value.clip.clip.title.trim() || x.value.clip.clip.id ; | |
| const audio = x.value.clip.clip.audio_url ? `${title}.mp3|${x.value.clip.clip.audio_url}` : ''; | |
| const video = x.value.clip.clip.video_url ? `${title}.mp4|${x.value.clip.clip.video_url}` : ''; | |
| return [audio, video].filter(Boolean).join("\n"); | |
| }) | |
| .join("\n") |
| sudo certbot -d "*.example.com" --manual --preferred-challenges dns certonly |
| #!/usr/bin/env bash | |
| function retry { | |
| local retries=$1 | |
| shift | |
| local count=0 | |
| until "$@"; do | |
| exit=$? | |
| wait=$((2 ** $count)) |
YOUR_PRIVATE_KEY=$COUNT_CELL*coingecko($SYMBOL_CELL) in your sheet| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "net" | |
| ) | |
| func handleConnection(conn net.Conn) { |
| /* | |
| * use =coinMarketCap('ETH') in your sheet | |
| */ | |
| function coinMarketCap(symbol) { | |
| const url = `https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=${symbol}&convert=EUR` | |
| const headers = { | |
| "X-CMC_PRO_API_KEY": 'API_KEY from https://pro.coinmarketcap.com/account' | |
| }; |
| git reset $(git merge-base main $(git branch --show-current)) | |
| git push --force |
| #!/usr/bin/env python3 | |
| """ | |
| Warm the caches of your website by crawling each page or sitemap index defined in sitemap.xml. | |
| To use, download this file and make it executable. Then run: | |
| ./cache-warmer.py --threads 4 --interval 10 --file https://example.com/sitemap.xml -v | |
| ./cache-warmer.py --threads 4 --interval 10 --file /data/web/public/sitemap.xml -v | |
| """ | |
| import argparse | |
| from multiprocessing.pool import ThreadPool | |
| import os.path |
| #Gently: | |
| ps -ef | grep terraform | grep -v grep | awk '{print $2}' | xargs -n 1 kill | |
| #Forcefully: | |
| ps -ef | grep terraform | grep -v grep | awk '{print $2}' | xargs -n 1 kill -9 |