To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| Verifying my Blockstack ID is secured with the address 17mGoUU32HVtJzHf6ujL4a9NyoThxuGg2U https://explorer.blockstack.org/address/17mGoUU32HVtJzHf6ujL4a9NyoThxuGg2U |
| readonly RELEASE=$(lsb_release -cs) | |
| wget http://nginx.org/keys/nginx_signing.key | |
| sudo apt-key add nginx_signing.key | |
| echo "deb http://nginx.org/packages/mainline/ubuntu/ $RELEASE nginx" >> /etc/apt/sources.list.d/nginx.list | |
| echo "deb-src http://nginx.org/packages/mainline/ubuntu/ $RELEASE nginx" >> /etc/apt/sources.list.d/nginx.list | |
| apt-get update |
| # nginx 1.9.5 | |
| # ubuntu trusty 14.04 | |
| apt-get update | |
| apt-get upgrade | |
| apt-get install build-essential mercurial libpcre3 libpcre3-dev libssl-dev | |
| wget http://nginx.org/download/nginx-1.9.5.tar.gz | |
| tar -xzvf nginx-1.9.5.tar.gz |
| #!/usr/bin/env bash | |
| curl "http://www.xe.com/wap/2co/convert.cgi?Amount=$1&From=$2&To=$3" -A "Mozilla" -s | sed -n "s/.*>\(.*\) $3<.*/\1/p"; |
| #!/usr/bin/env bash | |
| usage() | |
| { | |
| cat << EOF | |
| usage: random-string | |
| This script run the test1 or test2 over a machine. | |
| OPTIONS: |
| #!/bin/sh | |
| # http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
| palette="/tmp/palette.png" | |
| filters="fps=15,scale=460:-1:flags=lanczos" | |
| ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
| ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
| #!/bin/bash | |
| # mov2giv in out width | |
| # mov2gif video_file_in.mov gif_file_out.gif 300 | |
| tmp_dir=/tmp/frames_$(date +%s) | |
| mkdir $tmp_dir | |
| if [ -z "$3" ] | |
| then | |
| size=600 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| usage() | |
| { | |
| cat << EOF | |
| usage: random-string | |
| This script run the test1 or test2 over a machine. | |
| OPTIONS: |