Chart.js line chart with transparent points and custom labels.
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/bash | |
| # Configs | |
| chmod 700 $HOME/.ssh | |
| chmod 644 $HOME/.ssh/authorized_keys | |
| chmod 644 $HOME/.ssh/known_hosts | |
| chmod 644 $HOME/.ssh/config | |
| # Keys | |
| chmod 600 $HOME/.ssh/id_rsa |
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
| FROM lambci/lambda:build-python3.7 | |
| ENV \ | |
| POSTGRES_VER=11.4 \ | |
| PSYCOPG_VER=2.8.3 \ | |
| PSYCOPY_MAJ_VER=2.8 \ | |
| PSYCOPG_VER_PATH=PSYCOPG-2-8 \ | |
| PYTHON_VER=3.7 | |
| RUN yum install -y wget tar postgresql-devel |
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
| esphome: | |
| name: esp32_1 | |
| platform: ESP32 | |
| board: lolin32 | |
| wifi: | |
| ssid: !secret ssid_iot | |
| password: !secret password_iot | |
| manual_ip: | |
| static_ip: 192.168.0.110 |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
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
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
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
| # Example ssh config file. Usually located in ~/.ssh/config (user) or /etc/ssh/ssh_config (system) | |
| # This works on both linux and MacOS | |
| # Basic ssh commands converted to ssh/config file format | |
| # Simplest format | |
| # Run with: "ssh blog" => (equivalent to: "ssh ubuntu@example.com" and "ssh -i ~/.ssh/id_rsa -p 22 ubuntu@example.com") | |
| Host blog |
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/bash | |
| [[ -z "$1" ]] && echo "Please enter a filename. Exiting..." | |
| [[ -z "$1" ]] && exit 1 | |
| echo | |
| printf "Stripping annotations from $1... " | |
| pdftk "$1" output "/tmp/$1 - uncompressed.pdf" uncompress | |
| LANG=C sed -n '/^\/Annots/!p' "/tmp/$1 - uncompressed.pdf" > "/tmp/$1 - stripped.pdf" |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
NewerOlder