cat /proc/sys/net/bridge/bridge-nf-call-iptables
sysctl vm.swappiness=0
swapoff -a
#!/usr/bin/env bash | |
set -e | |
trap "{ rm -f $tmpfile; }" EXIT | |
tmpfile="$(mktemp)" | |
main() { | |
curl -Lo "$tmpfile" 'https://discord.com/api/download?platform=linux' | |
sudo dpkg -i "$tmpfile" |
[toc]
Traffic situations can change fast, especially around intersections and in curves. The Basic Street Strategies in this section will help you:
$ TEST_1=one | |
$ TEST_2=two | |
$ PATTERN2_1=one | |
$ PATTERN2_2=two | |
$ docker run -d --name test $(for var in $(set | grep -E '^TEST_|^PATTERN2_'); do printf -- '-e "%s" ' $var; done) nginx | |
541a23d4e432b375f71b081593d533de0aeb0b918f74d911bee7c36c95bcc4e3 | |
$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
#!/usr/bin/env bash | |
set -e | |
PACKAGES="i3 tmux vim stow" | |
read -d '' APT_SRC <<"EOF" ||: | |
deb http://mirrors.kernel.org/debian/ stretch main contrib non-free | |
deb http://security.debian.org/debian-security stretch/updates main | |
deb http://mirrors.kernel.org/debian/ stretch-updates main contrib non-free | |
deb http://mirrors.kernel.org/debian stretch-backports main contrib non-free |
function dumpElementTree() { | |
UIALogger.logStart("Logging element tree ..."); | |
UIATarget.localTarget().logElementTree(); | |
UIALogger.logPass(); | |
} | |
function inspect(obj) { | |
var log = UIALogger; | |
var methods = []; |
#!/usr/bin/env ruby | |
# Requires Ruby 2.1 | |
# BUT.. Keeps the code clean without monkey patching | |
module Refinements | |
refine Integer do | |
def div_by?(int) | |
self % int == 0 | |
end | |
end |
--- | |
- :code: AED | |
:description: UAE Dirham | |
:notes: "United Arab Emirates" | |
- :code: AFA | |
:description: Afghani | |
:notes: "Afghanistan. DEPRECATED, replaced by AFN" | |
- :code: AFN | |
:description: Afghani | |
:notes: "Afghanistan (prices normally quoted as integers)" |
#!/usr/bin/env ruby | |
require 'pry' | |
require 'yaml' | |
require 'google_drive' | |
GDRIVE_USER = ENV['GDRIVE_USER'] || raise('Please set the GDRIVE_USER environment variable') | |
GDRIVE_PASS = ENV['GDRIVE_PASS'] || raise('Please set the GDRIVE_USER environment variable') | |
YML_FILE = 'apple_app_info.yml' | |
data = {} |