Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FunWithMonads
{
static class Program
{
@j0057
j0057 / build-cinnamon
Created January 29, 2014 07:20
builds cinnamon from source
#!/bin/bash -ex
# build everything or just what's on the command line
if [ $# -eq 0 ]; then
PKGS="cjs cinnamon-desktop cinnamon-translations cinnamon-session cinnamon-settings-daemon cinnamon-control-center muffin Cinnamon nemo cinnamon-screensaver"
else
PKGS="$*"
fi
for x in $PKGS; do
#!/bin/bash -x
PKG=$HOME/pypkg27
[ ! -d $PKG ] && mkdir $PKG
pip install --no-use-wheel --download $PKG $*
pip wheel --no-index --find-links=$PKG --wheel-dir=$PKG $*
@j0057
j0057 / ansible.cfg
Last active December 19, 2019 16:44
Ansible notification for each role
[defaults]
hostfile = ./hosts
@j0057
j0057 / .vimrc
Last active March 23, 2016 10:01
vimrc-in-a-tweet
:set hid ts=4 sw=4 et ls=2 is hls ml nu nowrap wmnu t_Co=16|:colo murphy|:syn on " #vimrc
@j0057
j0057 / convert.py
Last active March 31, 2016 20:27
Convert .cap to .capx in Capella
import os, os.path
import sys
SOURCE_DIR = r'c:\users\joost\documents\capella\voorbeelden'
# a few useful functions
output = lambda s, t='': messageBox(t, str(s))
change_ext = lambda fn, ext: os.path.splitext(fn)[0] + ext
copy_mtime = lambda src, tgt: os.utime(tgt, os.stat(src)[7:9])
@j0057
j0057 / menno-vs-joost.pgn
Created June 7, 2016 11:47
menno-vs-joost.pgn
[Event "Menno vs Joost"]
[Site "Cyberspace"]
[Date "2016"]
[White "Dokter, Menno"]
[Black "Molenaar, Joost"]
1.e4 d5 2.exd5 Qxd5 3.Nc3 Qa5 4.d4 e6 5.Bd3 Nf6 6.Nf3 Nd5 7.Bd2 Bb4 8.O-O Nxc3 9.bxc3 Bxc3 10.Rb1 Bxd2 11.Qxd2 Qd5 12.c4 Qd7 13.c5 b6 14.Qc3 Bb7 15.Ne5 Qd5
*
@j0057
j0057 / .gitignore
Last active August 15, 2017 20:18
folds.py
*.swp
*.o
*.hi
*.txt
rwh??
@j0057
j0057 / .gitignore
Created October 19, 2017 16:55
pi camera
*.swp
@j0057
j0057 / airvpn
Created March 3, 2018 21:03
airvpn.org api tool
#!/bin/bash
...