application:about
application:show-preferences
application:show-settings
application:quit
application:hide
application:hide-other-applications
#!/bin/bash | |
# Set $skeleton to desired path and rename the file to e.g. closet.sh | |
# Set $path to desired target directory to raise the skeleton | |
# Usage: closet project-name | |
name=$1 | |
path=~/repos/$name | |
skeleton=~/repos/sshow-node-module-skeleton | |
if [ "$1" == "--current" ]; then |
["red", "pink", "purple", "deep-purple", "indigo", "blue", "light-blue", "cyan", "teal", "green", "light-green", "lime", "yellow", "amber", "orange", "deep-orange", "brown", "grey", "blue-grey"] |
angular.module('ngApp') | |
.directive('soundCloudPlayer', function () { | |
return { | |
restrict: 'E', | |
template: '<iframe width="100%" height="465" scrolling="no" frameborder="no"></iframe>', | |
link: function (scope, element, attrs) { | |
var iframe = element.find('iframe'); | |
var settings = [ | |
'buying=false', | |
'liking=false', |
#!/bin/bash | |
# | |
# Set brightness of intel backlight | |
# Usage: | |
# setbrightness | |
# Print current brightness | |
# setbrightness <level> | |
# Set brightness to <level> 1-10 | |
# setbrightness less | |
# Set brightness to current level - 1 |
#!/bin/bash | |
# Get zero-padded hex string from date format | |
# Usage: f <format> | |
function f { | |
printf %02X $(date +$1) | |
} | |
h=$(f %-H) | |
m=$(f %-M) |
'use strict'; | |
const _ = require('underscore'); | |
function Task(fn) { | |
this.fn = fn; | |
} | |
function Worker(interval, tasks) { | |
this.interval = interval; |
'use strict'; | |
module.exports.jsonResponseObject = function jsonResponseObject(err, data) { | |
return { | |
meta: { | |
status: err ? (err.status || 500) : 200, | |
message: err ? (err.message || 'Error') : 'OK' | |
}, | |
response: data || {} | |
}; |
module.exports = { | |
'rules': { | |
'indent': [ | |
2, | |
2 | |
], | |
'quotes': [ | |
2, | |
'single' | |
], |
#! /bin/sh - | |
# | |
# Install OpenVPN connections for all available | |
# regions to NetworkManager | |
# | |
# Important: | |
# This is a modified version of the official Ubuntu script PrivateInternetAccess.com | |
# released at https://www.privateinternetaccess.com/installer/install_ubuntu.sh | |
# Automatic installation of python and openvpn has been removed, and needs to be | |
# installed manually before installation. |