Skip to content

Instantly share code, notes, and snippets.

View goude's full-sized avatar

Daniel Goude goude

View GitHub Profile
cd ~/.vim/bundle && rm -rf YouCompleteMe && git clone https://github.com/Valloric/YouCompleteMe.git && cd YouCompleteMe && git reset --hard 0de1c0c && git submodule update --init --recursive && ./install.py
toppen, fjäderhjälmar
är leken och fyra vart aldrig
fyra och två
Emmy
polle och te
polle och te
Emily
Hyaa
Hyaa
Hyaa
@goude
goude / gist:78293b5fe7f82f94134e20c695501b36
Created June 10, 2016 14:57
Turn on swap on small virtual machines (e.g. letsencrypt command 'x86_64-linux-gnu-gcc' failed with exit status 4)
Digitalocean, 512MB - need to turn on swap:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=524288
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Sources: https://community.letsencrypt.org/t/installation-via-letsencrypt-auto-fails-with-error-code-1/5919, http://stackoverflow.com/a/26762938
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://gist.githubusercontent.com/goude/a71dbb47995c1ae768bdfb963d1cbcf9/raw/cb83771ca99bf600adc02f032dda2c8b3d344793/line-variable.js"></script>
</head>
<body>
<div id="linevar"></div>
@goude
goude / index.html
Last active June 3, 2016 13:19
D3 Variable Width Lines (copy of http://bl.ocks.org/larskotthoff/1642835, currently not working)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="line-variable.js"></script>
</head>
<body>
<div id="linevar"></div>
@goude
goude / cntlm-setup-win-lin.md
Created February 5, 2016 11:59
Minimal setup instructions for cntlm (Windows/Linux)

Minimal setup instructions for cntlm (Windows/Linux)

Problem

λ git clone https://github.com/mbostock/d3.git
Cloning into 'd3'...
fatal: unable to access 'https://github.com/mbostock/d3.git/':
Failed to connect to github.com port 443: Connection refused

Solution

@goude
goude / uninstall_wacom_drivers_with_elevated_command_prompt.md
Created January 25, 2016 09:14
How do you uninstall Wacom tablet drivers from an elevated command prompt in Windows?
  • search for uninstallation command in the Registry
  • execute the uninstallation command in an elevated command prompt

Not tested: Wacom recommends that you also search your computer for tablet.dat and friends and manually delete these files.

@goude
goude / index.html
Last active August 29, 2015 14:19 — forked from WilliamQLiu/index.html
<!DOCTYPE html>
<html>
<head>
<!-- Load D3 from site -->
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<!-- CSS (Styling) -->
<style type="text/css">
/* Format X and Y Axis */
@goude
goude / proxy
Created October 11, 2014 16:00
VirtualBoxed Linux proxy configuration for host's cntlm
# http://stackoverflow.com/questions/1261975/addressing-localhost-from-a-virtualbox-virtual-machine
# /etc/apt/apt.conf.d/95proxies
Acquire::http::proxy "http://10.0.2.2:3128";
Acquire::ftp::proxy "http://10.0.2.2:3128";
Acquire::https::proxy "http://10.0.2.2:3128";
# setup environment variables using https://github.com/goude/yaprox
$ yaprox -q 10.0.2.2:3128
@goude
goude / motd
Last active August 29, 2015 14:07
motd
Ctrl-O / Ctrl-I - move in edit history (vim)
It's all in a day's work for Bicycle Repair Man.