Skip to content

Instantly share code, notes, and snippets.

View rummik's full-sized avatar
💤
Sleeping to escape reality

*Kim Zick rummik

💤
Sleeping to escape reality
View GitHub Profile
@rummik
rummik / .tmux.conf
Last active August 29, 2015 14:17
Old vs new dotfiles
# enable mouse support
set-option -g mouse-utf8 on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
# more logical window splits
unbind-key '%'
unbind-key '"'
bind-key '|' split-window -h -c "#{pane_current_path}"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="nick">rummik</div>
<div class="nick">IotaSamurai</div>
<div class="nick">foo</div>
@rummik
rummik / gist:18c14d08c473a83997f8
Created January 8, 2015 08:39
Automatically reconnect to a server and attach a Tmux session
autossh -t <host> tmux at
@rummik
rummik / google-play-music-dehighlight.user.js
Last active December 7, 2016 08:49
Fix those annoying flashing tabs when the song changes.
// ==UserScript==
// @name Google Play Music Dehighlight
// @namespace http://www.rummik.com/
// @version 1.0
// @description Disable tab highlights in Google Play Music on Chrome due to title change
// @author rummik
// @match https://play.google.com/music/listen*
// ==/UserScript==
Object.defineProperty(document, 'title', {
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
html {
background: #fff;
}
.download-pdf {
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import os
import sys
import uuid
from datetime import timedelta
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import sys
import uuid
from datetime import timedelta
from aspen.utils import utcnow
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import sys
# Pull in testing harness, but make it very quiet
try:
class DevNull:
def write(*a, **kw):
@rummik
rummik / rc.local
Last active February 17, 2016 06:30
#!/bin/sh -e
for home in /home/*; do
user=$(basename $home)
if [ -x $home/.rc.local ]; then
sudo -u $user $home/.rc.local &
fi
done
@rummik
rummik / xorg.conf
Created November 15, 2014 07:57
Sometimes you just want 1680x1050, and Nvidia just won't give it to you. This still requires an `xrandr -s 1680x1050` after login with nvidia-331...
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"