Skip to content

Instantly share code, notes, and snippets.

View andrewsomething's full-sized avatar

Andrew Starr-Bochicchio andrewsomething

View GitHub Profile
@andrewsomething
andrewsomething / headerHack.qml
Created March 1, 2014 18:06
An example of the problem coloring a header...
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
MainView {
id: mainView
width: units.gu(40)
height: units.gu(60)
$ git push deploy
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n git-receive-pack 'nodejs' ]]
+ export -n SSH_ORIGINAL_COMMAND
+ /usr/local/bin/dokku git-receive-pack ''\''nodejs'\'''
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n '' ]]
+ case "$1" in
@andrewsomething
andrewsomething / echoHttpRequest.js
Last active August 29, 2015 14:21 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
hook.debug("Debug messages are sent to the debug console");
hook.debug(hook.params);
hook.debug(hook.req.path);
hook.debug(hook.req.method);
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: unicorn initscript
# Description: unicorn
### END INIT INFO
/* Debian Package Search
* Andrew Starr-Bochicchio <andrewsomething@ubuntu.com>
* MIT/X11 License
*/
CmdUtils.CreateCommand({
name: "debian-packages",
icon: "http://www.debian.org/favicon.ico",
homepage: "http://packages.debian.org/",
author: { name: "Andrew Starr-Bochicchio", email: "andrewsomething@ubuntu.com"},
/* Ubuntu Man Page Search
* Andrew Starr-Bochicchio <andrewsomething@ubuntu.com>
* MIT/X11 License
*/
CmdUtils.CreateCommand({
name: "ubuntu-man",
icon: "http://www.ubuntu.com/files/favicon-ubuntu.ico",
homepage: "http://manpages.ubuntu.com/",
author: { name: "Andrew Starr-Bochicchio", email: "andrewsomething@ubuntu.com"},
/* Launchpad Ubuntu Package Search
* Andrew Starr-Bochicchio <andrewsomething@ubuntu.com>
* MIT/X11 License
*/
CmdUtils.CreateCommand({
name: "lp-packages",
icon: "https://launchpadlibrarian.net/16114928/gem-sm.png",
/* homepage: "http://packages.qa.debian.org/common/index.html", */
author: { name: "Andrew Starr-Bochicchio", email: "andrewsomething@ubuntu.com"},
/* Launchpad Team and People Search
* Andrew Starr-Bochicchio <andrewsomething@ubuntu.com>
* MIT/X11 License
*/
CmdUtils.CreateCommand({
name: "lp-team-and-people",
icon: "https://launchpadlibrarian.net/16114928/gem-sm.png",
/* homepage: "http://packages.qa.debian.org/common/index.html", */
author: { name: "Andrew Starr-Bochicchio", email: "andrewsomething@ubuntu.com"},
/* Launchpad Ubuntu Bug Search
* Andrew Starr-Bochicchio <andrewsomething@ubuntu.com>
* MIT/X11 License
*/
CmdUtils.CreateCommand({
name: "lp-ubuntu-bug",
icon: "https://launchpadlibrarian.net/16114928/gem-sm.png",
/* homepage: "http://packages.qa.debian.org/common/index.html", */
author: { name: "Andrew Starr-Bochicchio", email: "andrewsomething@ubuntu.com"},