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
$ git branch -r --merged \ | |
| awk -F'[ \t/]+' '{ if (NF == 3 && $2 = "origin" && $3 != "master" ) print $3}' \ | |
| xargs git push origin --delete |
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
import org.bowlerframework.view.squery.{Component,MarkupContainer} | |
class SqueryWidgetPage(component: MarkupContainer) extends Component{ | |
$(".tabs-container").contents = component.render | |
} |
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
get("/widgets/new/squery")((request, response) => { | |
renderWith(new SqueryWidgetPage(new NewWidgetForm),Widget(0, null, null, null)) | |
}) |
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
# graphite-web install is hardcoded in setup.cfg to /opt/graphite | |
sudo mkdir /opt/graphite | |
sudo chown brad.users /opt/graphite | |
# run under python2.7 virtualenv | |
virtualenv --python=python2.7 ~/ve/graphite | |
source ~/ve/graphite/bin/activate | |
# install the necessary python packages (simplejson is for flot graphs) | |
pip install graphite-web carbon whisper django django-tagging uwsgi simplejson |
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 | |
set -e | |
EXECUTABLE=mprime | |
ARCH=$(getconf LONG_BIT) | |
get_url() { | |
echo "ftp://mersenne.org/gimps/$1" |
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
# /etc/udev/rules.d/10-ir-remote.rules | |
SUBSYSTEM=="input",ATTRS{idVendor}=="05a4",ATTRS{idProduct}=="9881",IMPORT{program}="input_id %p" | |
SUBSYSTEM=="input",ATTRS{idVendor}=="05a4",ATTRS{idProduct}=="9881",ENV{ID_INPUT_KEYBOARD}=="1",SYMLINK="input/ortek_ir_kbd" | |
SUBSYSTEM=="input",ATTRS{idVendor}=="05a4",ATTRS{idProduct}=="9881",ENV{ID_INPUT_MOUSE}=="1",SYMLINK="input/ortek_ir_mouse" |
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
#!/home/brad/ve/lights/bin/python | |
import pylights, sched, time | |
from astral import Astral | |
from datetime import datetime | |
from dateutil.relativedelta import relativedelta | |
from pytz import timezone | |
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
(defpallet | |
:services | |
{:myapp-vagrant {:provider "node-list" | |
:node-list [ | |
["vagrant" "myapp" "127.0.0.1" :debian :is-64bit true :ssh-port 2222]] | |
:environment | |
{:user | |
{:username "vagrant" | |
:private-key-path "/home/brad/.gem/gems/vagrant-0.8.10/keys/vagrant" | |
:public-key-path "/home/brad/.gem/gems/vagrant-0.8.10/keys/vagrant.pub"}}}}) |
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/pg_upgradecluster 2012-02-13 10:23:56.000000000 -0500 | |
+++ /usr/bin/pg_upgradecluster.mod 2012-02-13 10:23:44.000000000 -0500 | |
@@ -270,6 +270,11 @@ | |
error 'could not get cluster collating locale' unless $old_lc_collate; | |
} | |
+$encoding = "UTF-8"; | |
+$lc_ctype = "en_US.UTF-8"; | |
+$lc_collate = "en_US.UTF-8"; | |
+ |
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 ?> | |
<a name="give"></a> | |
<form id="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> | |
<input type="hidden" name="cmd" value="_donations"/> | |
<input type="hidden" name="business" value="info@nuafrica.org"/> | |
<input type="hidden" name="lc" value="US"/> | |
<input type="hidden" name="amount" value=""/> | |
<input type="hidden" name="item_name" value="NuAfrica Donation"/> |
OlderNewer