Skip to content

Instantly share code, notes, and snippets.

View clintberry's full-sized avatar

Clint Berry clintberry

View GitHub Profile
@clintberry
clintberry / osx-for-hackers.sh
Created March 11, 2019 15:36 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx

Keybase proof

I hereby claim:

  • I am clintberry on github.
  • I am clintonb11 (https://keybase.io/clintonb11) on keybase.
  • I have a public key ASDqjyTzUsNNLDXuoDVSyPy0h8isboVoL7VeGnlFapPeNwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am clintberry on github.
  • I am clintonb11 (https://keybase.io/clintonb11) on keybase.
  • I have a public key whose fingerprint is C13B 48AB B921 9E10 EE41 EEB3 742A EBF0 1E76 E388

To claim this, I am signing this object:

CONTROLLER
angular.module('mean.properties').controller('PropertiesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Properties','PropertiesByUser',
function($scope, $stateParams, $location, Authentication, Properties, PropertiesByUser) {
$scope.authentication = Authentication;
$scope.create = function() {
var property = new Properties({
businessName: this.businessName,
content: this.content,
@clintberry
clintberry / gist:6420200
Created September 3, 2013 06:12
Websocket service with pending functions until websocket opened.
'use strict';
angular.module('guiApp')
.service('Websocket', function Websocket($q, $rootScope, PubSub) {
var Service = {}; // Object to return for the service
var callbacks = {}; // Keep all pending requests here until they get responses
var currentCallbackId = 0; // Create a unique callback ID to map requests to responses
var ws = null; // Initialize our websocket variable
var connectStatus = false; // Is the websocket connected?
@clintberry
clintberry / gist:5811856
Created June 19, 2013 05:24
using callbacks instead of promises for angular websocket service
angular.module('MyApp').factory('MyService', ['$q', function($q) {
// We return this object to anything injecting our service
var Service = {};
// Keep all pending requests here until they get responses
var callbacks = {};
// Create a unique callback ID to map requests to responses
var currentCallbackId = 0;
// Create our websocket object with the address to the websocket
var ws = new WebSocket("ws://localhost:8000/socket/");
@clintberry
clintberry / gist:2254914
Created March 30, 2012 20:54
Vagrant Chef Attributes
config.vm.provision :chef_solo do |chef|
chef.json = {
:mysql => {
:server_root_password => 'blahblah'
},
:nodejs => {
:version => '0.6.14',
:dir => '/usr/local',
:npm => '1.1.13'
}
@clintberry
clintberry / gist:1763042
Created February 7, 2012 23:47
Redmine Git Hosting Error on Chiliproject v2.5.0
[ pid=31635 thr=-604247848 file=utils.rb:176 time=2012-02-07 16:26:37.372 ]: *** Exception ActiveRecord::StatementInvalid in application (Mysql::Error: Got a packet bigger than 'max_allowed_packet' bytes: INSERT INTO `git_caches` (`command_output`, `created_at`, `command`, `proj_identifier`, `updated_at`) VALUES(x'636f6d6d697420393733663164366336656563373037356264636533653633363134633633316562643835343861380a417574686f723a2020202020436c696e74204265727279203c636265727279406d656469636f6e6e6563742e6e65743e0a417574686f72446174653a20323031322d30312d31392031313a30393a3134202d303730300a436f6d6d69743a2020202020436c696e74204265727279203c636265727279406d656469636f6e6e6563742e6e65743e0a436f6d6d6974446174653a20323031322d30312d31392031313a30393a3134202d303730300a0a20202020496e697469616c697a696e67206d794d656469436f6e6e656374207265706f7369746f72790a0a3a3030303030302031303036343420303030303030302e2e2e20653639646532392e2e2e204109726561646d652e7478740a0a636f6d6d697420653534363461306264306638643638356434306461303330393139336361