Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
This file contains 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
# | |
group = core | |
admin-port = 13000 | |
smsbox-port = 13001 | |
admin-password = maw | |
status-password = maw | |
admin-allow-ip = "127.0.0.1" | |
log-level = 1 | |
box-allow-ip = "*.*.*.*" |
This file contains 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
class DailyFriendList < Sequel::Model | |
many_to_one :player | |
set_schema do | |
primary_key :id | |
foreign_key :player_id, :players | |
foreign_key :friend_id, :players | |
date :date | |
index [:player_id, :friend_id, :date], :unique => true | |
end | |
This file contains 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
# The YUM package is too old for use with ruby-sqlite3, use the autoconf package from www.sqlite.org | |
cd /opt | |
wget http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz | |
tar xvzf sqlite-autoconf-3070701.tar.gz | |
ln -s /opt/sqlite-autoconf-3070701 /opt/sqlite3 | |
cd /opt/sqlite3 | |
./configure --prefix=/opt/sqlite3 | |
make | |
make install | |
# Shared library will be installed in /usr/local/lib. |
This file contains 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
require 'rubygems' | |
require 'eventmachine' | |
require 'em-http' # gem install em-http-request | |
require 'yajl' # gem install yajl-ruby | |
class String | |
def bold | |
"\033[1m#{self}\033[0m" | |
end | |
end |
This file contains 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 | |
if setxkbmap -print|grep -q us; then | |
setxkbmap -layout el | |
else | |
setxkbmap -layout us | |
fi |
This file contains 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 -f | |
# Configure wmii | |
wmiiscript=wmiirc # For wmii.sh | |
. wmii.sh | |
# Configuration Variables | |
MODKEY=Mod4 | |
UP=k | |
DOWN=j |
This file contains 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
MODKEY=Mod4 | |
WMII_NORMCOLORS='#888888 #222222 #333333' | |
WMII_FOCUSCOLORS='#ffffff #285577 #4C7899' | |
WMII_BACKGROUND='#333333' | |
WMII_TERM="urxvt" |
This file contains 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
! XTerm settings: | |
XTerm*faceName: Bitstream Vera Sans Mono | |
XTerm*faceSize: 10 | |
XTermfont: xft:Bitstream Vera Sans Mono:pixelsize=14 | |
XTerm*background: #000010 | |
XTerm*foreground: #ffffff | |
XTerm*cursorColor: magenta | |
XTerm*color0: #000000 | |
XTerm*color1: #9e1828 |
This file contains 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
sinatra | |
haml |