This file contains hidden or 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
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
This file contains hidden or 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
module Helpers | |
def help | |
puts 'helpful!' | |
end | |
end | |
class Foo | |
def get_help | |
self.extend Helpers |
This file contains hidden or 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
# aptitude is incompatible with a terminal in solarized dark. | |
# So we need to tweak aptitude's color style. | |
# Put the following lines in `/etc/apt.conf` or `~/.aptitude/config`. | |
Aptitude::UI::Styles { | |
Default { | |
bg default; | |
}; | |
DepBroken { | |
fg white; |
This file contains hidden or 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
default[:attr] = 'FOO' |
This file contains hidden or 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
<!doctype html> | |
<body> | |
<script> | |
(function () { | |
'use strict'; | |
var currentColor, colors, style, FORWARD, BACK; | |
FORWARD = 1; |
This file contains hidden or 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
(function () { | |
var script=document.createElement('script'); | |
script.src='http://code.jquery.com/jquery-1.11.1.min.js'; | |
script.onload = function () { | |
setInterval(function () { | |
jQuery('body').load(location.href, 'body'); | |
}, 60000); | |
}; | |
document.body.appendChild(script); | |
}()); |
This file contains hidden or 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/python | |
# -*- coding: utf-8 -*- | |
"""Solarized theme for pantheon-terminal | |
see http://ethanschoonover.com/solarized | |
""" | |
import posixpath | |
import sys | |
from gi.repository import Gio |
This file contains hidden or 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
function kill_Terminal() { | |
osascript -e " | |
try -- I don't care if everything fails | |
try -- So we can ignore when the timeout fails | |
with timeout of 0.1 seconds -- So we don't block on the modal | |
tell application \"Terminal\" to quit | |
end timeout | |
end try | |
tell application \"System Events\" to click UI element \"Close\" of sheet 1 of window 1 of application process \"Terminal\" |
This file contains hidden or 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
#!/bin/sh | |
readonly empty_dir=$(mktemp -d) | |
readonly target="$1" | |
rm -rf $empty_dir | |
mkdir $empty_dir | |
rsync --recursive --delete $empty_dir/ "$target"/ | |
rmdir $empty_dir "$target" |