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
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist | |
killall NotificationCenter | |
#launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist |
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
check host node_web_app_<%= @application_name %> with address 127.0.0.1 | |
start program = "/bin/sh -c 'cd <%= @deploy[:deploy_to] %>/current; /usr/bin/env NODE_PATH=<%= @deploy[:deploy_to] %>/current/node_modules:<%= @deploy[:deploy_to] %>/current <% (node[:environment_variables] || {}).merge(@deploy[:environment_variables] || {}).each do |name,value| -%><%= name %>=<%= value %> <% end -%> /usr/local/bin/node <%= @monitored_script %>'" | |
stop program = "/usr/bin/pkill -f 'node <%= @monitored_script %>'" | |
if failed port 80 protocol HTTP | |
request / | |
with timeout 10 seconds | |
then restart<% %> | |
check host node_web_app_<%= @application_name %> with address 127.0.0.1 | |
start program = "/bin/sh -c 'cd <%= @deploy[:deploy_to] %>/current; /usr/bin/env NODE_PATH=<%= @deploy[:deploy_to] %>/current/node_modules:<%= @deploy[:deploy_to] %>/current NODE_ENV=production /usr/local/bin/node <%= @deploy[:deploy_to] %>/current/index.js &>> /var/log/node.log'" |
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
app = angular.module 'BlogExample', [] | |
# Simple controller that loads all blog posts | |
app.controller 'BlogCtrl', ['$scope', 'Blog', ($scope, Blog) -> | |
# Get all the blog posts | |
Blog.all().then (posts) -> | |
$scope.posts = posts | |
# Extend the $scope with our own properties, all in one big block | |
# I like this because it looks like declaring a class. |
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
# Name: EXIFmover.py | |
# Author: Brian Klug (@nerdtalker / brian@brianklug.org) | |
# Purpose: | |
# Move Files into directory based on EXIF data make and model | |
# Designed to un-clusterfuck the Dropbox camera upload directory which is a mess of every | |
# JPEG and PNG ever if you use it like I do on a bunch of phones, and thus totally unwieldy | |
# and full of images sorted by date or else nothing sometimes, dropbox seems nondeterminstic | |
# Moves files into /[Image Make]+[Image Model]/ eg /Camera Uploads/LGE Nexus 4/ |
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
# | |
# Initialize the stuff | |
# | |
# We build the status bar item menu | |
framework 'AppKit' | |
def setupMenu | |
menu = NSMenu.new | |
menu.initWithTitle 'Flipsicle' | |
mi = NSMenuItem.new |
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
var q = new Parse.Query(Parse.User); | |
q.find({ | |
success:function(items){ | |
console.log(items.length); | |
} | |
}); |
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
CACHE MANIFEST | |
CACHE: | |
index.html | |
index.css | |
index.js | |
cordova.js | |
NETWORK: |
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
angular.module('AuthModule', ['localStorage']).factory('AuthState', function(localStorage) { | |
'use strict'; | |
var state = { | |
isLoggedIn: localStorage.get('isLoggedIn') | |
}; | |
return { | |
isLoggedIn: isLoggedIn, | |
}; | |
}); | |
angular.module('controllers', ['AuthState']).factory('SomeCtrl', function($scope, state) { |
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
$http(method: 'DELETE', url: path + REST.ids(collection).join(','), params: params) | |
.success (data, status, headers, config) -> | |
console.log "#{Quests.name}.delete: OK" | |
.error (data, status, headers, config) -> | |
console.error "#{Quests.name}.delete: ERROR" |
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
{ | |
-errors: { | |
method: "" | |
url: "" | |
status: "" - errors: [-{ | |
type: "SystemError" | |
id: "500_1" | |
field: "Error" | |
message: "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" | |
}] |