curl -i -X POST http://localhost:8080/graphql -H "Content-Type: application/json" -d @introspection_query.json
| git clone https://github.com/cilynx/rtl88x2bu.git | |
| cd rtl88x2bu | |
| VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) | |
| sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} | |
| sudo dkms add -m rtl88x2bu -v ${VER} | |
| sudo dkms build -m rtl88x2bu -v ${VER} | |
| sudo dkms install -m rtl88x2bu -v ${VER} | |
| sudo modprobe 88x2bu |
| curl -o /dev/null -s -w "%{http_code}\n" http://localhost |
- Bulk rename files via
nomino[Optional] - Add inputs.txt with files in format:
file video1.mp4 file video2.mp4 ... - ffmpeg -f concat -i inputs.txt -c copy out.mp4
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkeyfor a Primary Key constraint;keyfor a Unique constraint;exclfor an Exclusion constraint;idxfor any other kind of index;
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
Pure SASS-adaption of Lea Verou's contrast-ratio javascript. Can be useful when eg. generating colored buttons from a single supplied color as you can then check which out of a couple of text colors would give the best contrast.
This script currently lacks the support for alpha-transparency that Lea supports in her script though.
In addition to the color-contrast adaption there's also some math methods that were needed to be able to calculate the exponent of a number and especially so when the exponent is a decimal number. A 2.4 exponent is used to calculate the luminance of a color and calculating such a thing is not something that SASS supports out of the box and not something I found a good pure-SASS script for calculating and I much prefer pure-SASS over ruby extensions. The math methods might perhaps be unecessary though if you're running Compass or similar as they may provide compatible math methods themselves.
Normal usage: `color: pick_best_color(#f00
| syntax enable | |
| colo desert | |
| set smartindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set number |
| #!/bin/bash | |
| which docker || (\ | |
| sudo apt-get update \ | |
| && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common \ | |
| && (curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -)\ | |
| && sudo apt-key fingerprint 0EBFCD88\ | |
| && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"\ | |
| && sudo apt-get update\ | |
| && sudo apt-get install -y docker-ce) |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].