This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HI, | |
I thought the costs of entry for amateur stenographers, "From $4000 to ~$50" is still too high :) How about $32 or £20 ? | |
** Bill of Materials ** | |
- N-Key Rollover keyboard | |
- Bluetack | |
- Key covers (inspired by Laser-Cut Steno Keys Kit) | |
- N-Key Rollover keyboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/sbin/cloud | |
pkg_add x11vnc | |
pkg_add xfce | |
x11vnc -storepasswd /home/bms/.vnc/passwd | |
x11vnc --ssl SAVE -http -rfbauth /home/bms/.vnc/passwd -forever -loop100 -display :0 | |
(Sets certs) | |
kudos to http://www.tumfatig.net/20120614/the-remote-openbsd-5-1-desktop/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/rc.local | |
/usr/local/sbin/cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Use byzanz to create a GIF screencast of a specific window. | |
Required tools: | |
sudo apt-get install byzanz x11-utils xdotool | |
A tip: use an extra-long duration (-d 100), record your shot, and use | |
gimp to shorten the duration of the last frame. You need to rename the layer | |
from "Frame 123 (100000 ms) (combine)" to "Frame 123 (1000 ms) (combine)". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openshift | |
Make django project | |
python3 -m venv myvenv | |
. myvenv/bin/activate | |
pip install django==1.8 | |
git clone ssh://[email protected]/~/git/splendidsnap.git/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add github [email protected]:bmsleight/openshift-splendidsnap.git | |
git push github master:master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import BaseHTTPServer | |
from os import environ | |
def test(HandlerClass=SimpleHTTPRequestHandler, | |
ServerClass=BaseHTTPServer.HTTPServer): | |
protocol = "HTTP/1.0" | |
host = environ.get('OPENSHIFT_PYTHON_IP') | |
port = int(environ.get('OPENSHIFT_PYTHON_PORT')) | |
server_address = (host, port) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
soup = BeautifulSoup(open("index.html")) | |
soup.find_all("span", class_="time")[270].a.get('href') # Get link to main vine page (which then needs parsing) | |
soup.find_all("span", class_="time")[270].a.text # Time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<hostdev mode='subsystem' type='usb' managed='no'> | |
<source> | |
<vendor id='0x2040'/> | |
<product id='0x7070'/> | |
<address bus='1' device='47' /> | |
</source> | |
</hostdev> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virsh vol-create-as default vic-bigger.img 120G | |
sudo virt-resize --expand /dev/sda1 /var/lib/libvirt/images/vic.img /var/lib/libvirt/images/vic-bigger.img | |
virsh edit vic |
OlderNewer