Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
expbackoff() { | |
# Exponential backoff: retries a command upon failure, scaling up the delay between retries. | |
# Example: "expbackoff my_command --with --some --args --maybe" | |
local MAX_RETRIES=${EXPBACKOFF_MAX_RETRIES:-8} # Max number of retries | |
local BASE=${EXPBACKOFF_BASE:-1} # Base value for backoff calculation | |
local MAX=${EXPBACKOFF_MAX:-300} # Max value for backoff calculation | |
local FAILURES=0 | |
while ! "$@"; do | |
FAILURES=$(( $FAILURES + 1 )) | |
if (( $FAILURES > $MAX_RETRIES )); then |
I hereby claim:
To claim this, I am signing this object:
$ dpkg -S /usr/sbin/tcpd | |
tcpd: /usr/sbin/tcpd | |
$ (cd /; md5sum -c /var/lib/dpkg/info/tcpd.md5sums) | |
usr/sbin/safe_finger: OK | |
usr/sbin/tcpd: OK | |
usr/sbin/tcpdchk: OK | |
usr/sbin/tcpdmatch: OK | |
usr/sbin/try-from: OK | |
usr/share/man/man8/safe_finger.8.gz: OK | |
usr/share/man/man8/tcpd.8.gz: OK |
curl -s -I -H "Pragma: akamai-x-cache-on" http://images.apple.com/ipad/images/product_title.png | grep X-Cache: |
#!/bin/bash | |
set -e | |
ARG_ONE=${1:-ONE} | |
ARG_TWO=${2:-TWO} | |
ARG_THREE=${3:-THREE} | |
echo "1:${ARG_ONE} - 2:${ARG_TWO} - 3:${ARG_THREE}" |
#!/bin/bash | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |
#!/bin/bash | |
# | |
# yoga-auto-rotate -- ghetto-style tablet mode, with keyboard and all. | |
# | |
# Simple little script that will detect an orientation change for a | |
# Lenovo Yoga 13 (very hackily) and adjust the active display's | |
# orientation and disable/enable the touchpad as necessary. | |
# | |
# The Yoga 13 will emit keycode `e03e` at one second intervals | |
# when the screen is flipped into tablet mode. Since this keycode |
Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
Example: -F"":operation=delete"" | |
Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
Install a bundle | |
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
#!/usr/bin/env ruby | |
progress = 'Progress [' | |
1000.times do |i| | |
# i is number from 0-999 | |
j = i + 1 | |
# add 1 percent every 10 times | |
if j % 10 == 0 |