stop wasting cpu/mem-resources on idling services:
#!/bin/sh
while sleep 1s; do
set +e
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
Working with DOM | Working with JS | Working With Functions |
---|---|---|
Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
Create DOM Elements | Conditionals |
#!/usr/bin/env bash | |
# This script requires: | |
# - that the directory $HOME/.mpv exist | |
# - that the program socat be installed | |
# - that you start mpv with the unix socket feature pointing at that directory | |
# I recommend an alias in your .bashrc or equivalent file: | |
# alias mpv="mpv --input-unix-socket=$HOME/.mpv/socket" | |
socket="$HOME/.mpv/socket" |
sudo stop shill ; sleep 3 ; sudo start shill BLACKLISTED_DEVICES=tun0 ; sleep 3 ; sudo openvpn --mktun --dev tun0 && openvpn --config /home/root/vpnconfig --auth-user-pass /home/root/vpnauth --dev tun0 --dev-type tun | |
# Easier navigation: .., ..., ~ and - | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ~="cd ~" # `cd` is probably faster to type though | |
alias -- -="cd -" | |
# List all files colorized in long format, including dot files | |
alias la="ls -Gla" | |
# List only directories |
<?php | |
error_reporting( error_reporting() & ~E_NOTICE ); // evil | |
// config | |
$enable_jsonp = false; | |
$enable_native = false; | |
$valid_url_regex = '/.*/'; | |
// ############################################################################ |