npm i -D tslint-config-prettier tslint-plugin-prettier prettiercurl https://gist.githubusercontent.com/fullpipe/79df8bd11cecd9ee192def166947b9e8/raw/2abd93d5ddba7de400667840269a1cdd601bda21/tslint.json > tslint.json| { | |
| auto_https off | |
| http_port 8080 | |
| admin off | |
| } | |
| :8080 { | |
| root * /app | |
| encode zstd gzip | |
| file_server |
| <?php | |
| class Combinator implements \Iterator | |
| { | |
| /** | |
| * @var array | |
| */ | |
| private $data; | |
| /** |

/.composer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer--config=$ProjectFileDir$/.php_cs fix $FileDir$/$FileName$.$ProjectFileDir$Click OK and Apply. Now we'll set up a shortcut.
ctrl + cmd + ]:| #!/bin/bash | |
| # | |
| # Copyright 2016-2017 by Chris Niswander. | |
| # | |
| # Example script calculates the total size (in bytes) of the files | |
| # having (a) specified type(s)/extension(s), | |
| # in the directory tree specified by command line argument. | |
| # | |
| # See also: http://bitboost.com/python-obfuscator/articles_and_resources/how-to-calculate-the-total-size-length-of-your-code-or-codebase-in-bytes-fixing-inaccuracies-problems-in-du--an-easy-way | |
| # |
| #!/usr/bin/env bash | |
| if [[ -x $(which php) ]]; then | |
| PHP_ICU_VERSION=$(php -r 'echo defined("INTL_ICU_VERSION") ? INTL_ICU_VERSION : "none";') | |
| echo "PHP ICU version: $PHP_ICU_VERSION" | |
| else | |
| echo 'WARNING: PHP not installed' | |
| PHP_ICU_VERSION=none | |
| fi |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
| // implements Knuth or Fisher-Yates shuffle | |
| package knuth | |
| import ( | |
| "math/rand" | |
| "time" | |
| ) | |
| func init() { | |
| rand.Seed(time.Now().UTC().UnixNano()) |
| #!/bin/sh | |
| TMPFILE="/tmp/innobackupex-runner.$$.tmp" | |
| USEROPTIONS="--user=XXX --password=XXX" | |
| FILTERTABLES="--include=.*[.].*" | |
| BACKDIR=/var/mysql-bak | |
| BASEBACKDIR=$BACKDIR/base | |
| INCRBACKDIR=$BACKDIR/incr | |
| FULLBACKUPLIFE=3600 #604800 # How long to keep incrementing a backup for, minimum 60 | |
| KEEP=1 # Keep this number of backups, appart form the one currently being incremented |
| sudo apt-get update | |
| sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
| cd | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
| echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
| git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile |