Acquire an Intel Compute Stick with Atom CPU and 2GB of RAM, 32GB of storage.
The product code I got is BOXSTCK1A32WFC.
You'll also need:
import bleach | |
def strip_html(html_str): | |
""" | |
a wrapper for bleach.clean() that strips ALL tags from the input | |
""" | |
tags = [] | |
attr = {} | |
styles = [] | |
strip = True |
# Goes through a git projects history and changes the name on commits | |
# I needed this after changing my name, and coming out as transgender | |
# in order to have my name show up correctly to the public. | |
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_NAME" = "Existing Dead Name" ]; | |
then | |
GIT_AUTHOR_NAME="Authentic Name"; | |
GIT_AUTHOR_EMAIL="your@email.com"; | |
git commit-tree "$@"; |
" Toggle spellchecking | |
function! ToggleSpellCheck() | |
set spell! | |
if &spell | |
echo "Spellcheck ON" | |
else | |
echo "Spellcheck OFF" | |
endif | |
endfunction |
gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub
copy public key and set as a deploy key on github e.g https://github.com///settings/keys
sudo: required #is required to use docker service in travis | |
language: php #can be any language, just php for example | |
services: | |
- docker # required, but travis uses older version of docker :( | |
install: | |
- echo "install nothing!" # put your normal pre-testing installs here |
git ls-files | grep '\.swp$' | xargs git rm |
#!/usr/bin/env python3 | |
from itertools import accumulate | |
from bisect import bisect | |
from random import randrange | |
from unicodedata import name as unicode_name | |
# Set the unicode version. | |
# Your system may not support Unicode 7.0 charecters just yet! So hipster. | |
UNICODE_VERSION = 6 |
Since 2008 or 2009 I work on Apple hardware and OS: back then I grew tired of Linux desktop (which is going to be MASSIVE NEXT YEAR, at least since 2001), and switched to something that Just Works. Six years later, it less and less Just Works, started turning into spyware and nagware, and doesn't need much less maintenance than Linux desktop — at least for my work, which is system administration and software development, probably it is better for the mythical End User person. Work needed to get software I need running is not less obscure than work I'd need to do on Linux or othe Unix-like system. I am finding myself turning away from GUI programs that I used to appreciate, and most of the time I use OSX to just run a terminal, Firefox, and Emacs. GUI that used to be nice and unintrusive, got annoying. Either I came full circle in the last 15 years of my computer usage, or the OSX experience degraded in last 5 years. Again, this is from a sysadmin/developer ki
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh