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| # wkhtmltopdf from: http://wkhtmltopdf.org/downloads.html | |
| FROM centos:7 | |
| MAINTAINER Eric Siegel <[email protected]> | |
| # Upgrade packages & repo | |
| RUN yum -y update | |
| # wkhtmltopdf's dependencies | |
| RUN yum -y install zlib fontconfig freetype libX11 libXext libXrender | |
| # Download x64 static build of wkhtmltox (with patched QT) | 
| #!/bin/sh | |
| ################################## | |
| # CONFIG | |
| COUCHDB_SERVER=${COUCHDB_SERVER:=$( which couchdb )} | |
| # if couchdb was not found under PATH, try a search on ~/.local/opt and /opt | |
| COUCHDB_SERVER=${COUCHDB_SERVER:=$( find ~/.local/opt /opt -name 'couchdb' -type f -executable -print -quit )} | |
| COUCHDB_BASEDIR=${COUCHDB_BASEDIR:="${COUCHDB_SERVER%/*}/.."} | |
| COUCHDB_HOME=${COUCHDB_HOME:="/tmp/couchdb"} | |
| COUCHDB_DB_DATA=${COUCHDB_DB_DATA:="${COUCHDB_HOME}/data"} | 
| # Vncserver service file for Debian or Ubuntu with systemd | |
| # | |
| # Install vncserver and tools | |
| # e.g. apt-get install tightvncserver autocutsel gksu | |
| # | |
| # 1. Copy this file to /etc/systemd/system/vncserver@:1.service | |
| # 2. Edit User= | |
| # e.g "User=paul" | |
| # 3. Edit the vncserver parameters appropriately in the ExecStart= line! | |
| # e.g. the -localhost option only allows connections from localhost (or via ssh tunnels) | 
| import java.io.*; | |
| import java.util.*; | |
| import java.security.cert.CertificateException; | |
| import java.security.KeyStoreException; | |
| import java.security.cert.X509Certificate; | |
| import java.security.KeyStore; | |
| import java.security.Provider; | |
| import java.security.Security; | |
| public class SmartCard { | 
| Key-Type: 1 | |
| Key-Length: 2048 | |
| Subkey-Type: 1 | |
| Subkey-Length: 2048 | |
| Name-Real: Root Superuser | |
| Name-Email: [email protected] | |
| Expire-Date: 0 | 
| <?php | |
| /* | |
| Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
| --------- | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <[email protected]> | 
| sudo fdisk -l # Find out your arrays (md0, md1, etc..) | |
| sudo mdadm --detail /dev/md0 # Query your arrays to find out what disks are contained using | |
| sudo umount /backup # unmount all partitions on that drive | |
| sudo mdadm --stop /dev/md0 # Shut down the array | |
| sudo mdadm --zero-superblock /dev/xvdc /dev/xvdd /dev/xvde # zero the superblock FOR EACH drive | 
| # The Script | |
| ```sh | |
| git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit •</a> %s</li> ' --reverse | grep "#changelog" | |
| ``` | |
| # A git alias for the command: | 
| FROM ubuntu | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade | |
| RUN apt-get install -y openssh-server supervisor | |
| ADD sshd.conf /etc/supervisor/conf.d/sshd.conf | |
| RUN mkdir -p /var/run/sshd | 
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