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
-- either add to the clientkeys or add to rc.lua at the end | |
clientkeys = awful.util.table.join(clientkeys, | |
awful.key({ modkey, }, "s", function (c) c.ontop = not c.ontop end ), | |
awful.key({ modkey, }, "s", function (c) c.sticky = not c.sticky 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
<?php | |
/* | |
* Extended Doctrine Query class providing a few additional functions | |
* for wrapping your where clauses more efficiently | |
*/ | |
class Doctrine_Query_Extra extends Doctrine_Query | |
{ | |
protected $_startClause = false; | |
/** |
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
jQuery(document).ready(function($){ | |
$(document).ajaxError(function(e, xhr, settings, exception) { | |
//if the status of an ajax call is 401 reload the page | |
//depending on you requirements you can specify window.location = http://... | |
if(xhr.status == 401){ | |
window.location.reload() ; | |
} | |
}); | |
}); |
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
padsp /opt/java/jre/bin/java -Dslimserver=127.0.0.1 -Dskins=headless -jar SoftSqueeze.jar |
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
#arduino/hardware/arduino/bootloaders/lilypad | |
#these fuses are for the lilypad with atmega 168! for other chips see arduino/hardware/arduino/boards.txt | |
avrdude -c usbtiny -p m168 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xdd:m -U lfuse:w:0xe2:m -U efuse:w:0x00:m | |
avrdude -c usbtiny -p m168 -B 1 -V -D -U flash:w:LilyPadBOOT_168.hex:i | |
avrdude -c usbtiny -p m168 -B 5 -V -U lock:w:0x0F:m |
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
gvim() | |
{ | |
(unset GEM_PATH GEM_HOME; command gvim "$@") | |
} | |
vim() | |
{ | |
(unset GEM_PATH GEM_HOME; command vim "$@") | |
} |
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
# Disable menu bar transparency | |
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
# Show remaining battery time; hide percentage | |
defaults write com.apple.menuextra.battery ShowPercent -string "NO" | |
defaults write com.apple.menuextra.battery ShowTime -string "YES" | |
# Always show scrollbars | |
defaults write NSGlobalDomain AppleShowScrollBars -string "Always" |
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
# This Rack middleware helps solving the issue with some Rails versions which do not accept | |
# a '*/*;q=0.6' and their variants 'Accept' request header. This header is particularly used | |
# by Google Bot, and if Rails doesn't like it, it will return a 500 or 406 error to Google Bot, | |
# which is not the best way to get your pages indexed. | |
# | |
# References: | |
# - http://stackoverflow.com/questions/8881756/googlebot-receiving-missing-template-error-for-an-existing-template | |
# - https://github.com/rails/rails/issues/4127 | |
# | |
class GoogleBotAware |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'yaml' | |
YAML::ENGINE.yamler = 'psych' # or 'syck' for old parser | |
d = Dir["./**/*.yml"] | |
d.each do |file| | |
begin | |
puts "checking : #{file}" |
OlderNewer