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
# first you need a new empty branch; let's call it `newroot` | |
git checkout --orphan newroot | |
git rm -rf . | |
# then you apply the same steps | |
git commit --allow-empty -m 'root commit' | |
git rebase --onto newroot --root master | |
git branch -d newroot |
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
#! /usr/bin/env python | |
from __future__ import print_function | |
# Try to import via python2 imports, if not possible them import Python3 | |
# versions of modules. | |
try: | |
from HTMLParser import HTMLParser | |
from urllib2 import urlopen | |
from urlparse import urljoin | |
except ImportError as e: | |
from html.parser import HTMLParser |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
Header set Access-Control-Allow-Origin "*" | |
ServerName whereis.example.com | |
# Proxy settings | |
ProxyRequests Off | |
<Proxy *> |
### Arch Linux Installation Notes | |
### UEFI GPT LVM on LUKS (single drive) | |
### | |
### These are my personal notes to install Arch. Its not a script, but step by step instructions. If using | |
### please be aware that every step should be considered before applying, to personalize your | |
### installations appropriately. | |
### | |
# boot to arch linux boot prompt |
<script> | |
var checkboxes = []; | |
function getCheckboxStates() { return checkboxes.map(bx => !!bx.checked); }; | |
function saveCheckboxStates() { | |
localStorage['boxStates'] = JSON.stringify(getCheckboxStates()); | |
} | |
// Add a checkbox in front of every list item, save reference to each | |
[].slice.call(document.getElementsByTagName('li')).forEach((li, index) => { | |
var chkbx = document.createElement('input'); |