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/bash | |
# Requires fpm v0.4.20 at least | |
# | |
# rm -rf carbon-latest* ceres-latest* graphite-web-latest* whisper-latest* *.deb;rm -rf /opt/graphite/;dpkg -r python-whisper python-graphite-web python-carbon python-ceres python-txamqp | |
# | |
# This script needs "fpm". If you dont have it, | |
# run "gem install fpm" | |
# Then simply execute this script and it will create packages and install them on your system. | |
# |
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
" Bookmark page with Pinboard.in | |
com -nargs=0 pinboard execute "open " + function(doc) { if(doc.getSelection){s=doc.getSelection();}else{s='';}; return 'https://pinboard.in/add?next=same&url='+encodeURIComponent(doc.location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(doc.title) }(content.document) | |
" Read page later with Instapaper.com | |
com! -nargs=0 readlater -javascript -desc 'Send current page to Instapaper' try { let doc = content.document; dactyl.assert(doc.body); doc.title = '(Saving...) ' + doc.title; doc.body.appendChild( DOM.fromJSON(["script", {type: "application/javascript", src: "http://www.instapaper.com/j/CJFRXrpfV0rU"}], doc)); } catch(e) { dactyl.echoerr('Please wait until the page has loaded.' + e); } | |
" Have more? :) |
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
#!/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 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
get("/widgets/new/squery")((request, response) => { | |
renderWith(new SqueryWidgetPage(new NewWidgetForm),Widget(0, null, null, null)) | |
}) |
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
import org.bowlerframework.view.squery.{Component,MarkupContainer} | |
class SqueryWidgetPage(component: MarkupContainer) extends Component{ | |
$(".tabs-container").contents = component.render | |
} |
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
$ git branch -r --merged \ | |
| awk -F'[ \t/]+' '{ if (NF == 3 && $2 = "origin" && $3 != "master" ) print $3}' \ | |
| xargs git push origin --delete |