Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import java.util.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
#!/bin/bash | |
set -euxo pipefail | |
cd "$(dirname "$0")" | |
target="${1:-hockeypuck}" | |
interactive="${2:-}" | |
container=${target}-builder | |
volume=/root/HOST |
module Abilities | |
def self.ability_for(user) | |
if user.admin? | |
AdminAbility.new(user) | |
else user | |
MemberAbility.new(user) | |
else | |
GuestAbility.new | |
end | |
end |
# See https://github.com/bbatsov/rubocop | |
# Add this to the top of your .rubocop.yml: | |
# inherit_from: | |
# - https://gist.githubusercontent.com/infertux/cdd2ccc6e0a0cd94f458/raw | |
# AllCops | |
AllCops: | |
TargetRubyVersion: 2.3 |
#!/bin/bash -eu | |
cd /var/lib/collectd/rrd/$HOST | |
for f in $(find -name *.rrd); do | |
echo "rrdtool dump $f" | |
rrdtool dump $f > ${f%.rrd}.xml | |
done | |
rsync -avz --exclude *.rrd /var/lib/collectd/rrd/$HOST/ $COLLECTD_HOST:/var/lib/collectd/rrd/$HOST/ |
(2 * 2 * 5 * 7 * 37 * 149 * 5417 * 148781 * 51939996061871).to_s(16).scan(/../).map { |x| x.hex.chr }.join |