Skip to content

Instantly share code, notes, and snippets.

View thalesfsp's full-sized avatar
🚀
Rocking the world!

Energy Star thalesfsp

🚀
Rocking the world!
  • Global
View GitHub Profile
-----BEGIN PGP MESSAGE-----
Comment: https://keybase.io/download
Version: Keybase Go 1.0.17 (darwin)
wcFMA2xWdG8xegQ0ARAAEh0xY4SP1m2Ag5D9P9ui9XfQhPPpQS0c1xm8+x2Qyyv6
+SxVy96qHg6p4OA7CDvmDY0p2PGsq0o44YzJZ/iCOGKxbQr827L4cdey1cZbGnAZ
a/Ee4Es70PslDVH72dgu54MSvQ2Z4ikwm6V/RXvwYXmHx6u9zwT1iNCcNNv1cgfD
FD/Csqx3vEEZo361MkZ7h0nMDQF8F7JuUVd94pwxk7/sbArEgBy7SoApQzNS6ZX6
XMOxzxme+KcSehp+GLWlGBmG11bkTEgFxHI5Bi0JFmhCcR0Ms96Gp7PH6prtg+tG
9OeubtGSUsJMJaUa8/F/08C9L3ctFXdtr1QrOZ2z8tRgmEVjOUxYAXlFEJff19Qq
@thalesfsp
thalesfsp / git-check-dirty.sh
Created May 18, 2016 00:33
Git check if repo is dirty
if [[ -n $(git status --porcelain) ]]; then echo "repo is dirty"; fi
@thalesfsp
thalesfsp / keybase.md
Created February 9, 2016 18:46
KeyBase Prove

Keybase proof

I hereby claim:

  • I am thalesfsp on github.
  • I am thalesfsp (https://keybase.io/thalesfsp) on keybase.
  • I have a public key ASDLpegz1Ctewu21YTBTHdTuJZvqnQ08NfUoohil7RhRVAo

To claim this, I am signing this object:

@thalesfsp
thalesfsp / haproxy.cfg
Last active August 29, 2015 14:23 — forked from GABeech/haproxy.cfg
# This is an example of the Stack Exchange Tier 1 HAProxy config
# The only things that have been changed from what we are running are:
# 1. User names have been removed
# 2. All Passwords have been remove
# 3. IPs have been changed to use the example/documentation ranges
# 4. Rate limit numbers have been changed to randome numbers, don't read into them
userlist stats-auth
group admin users $admin_user
user $admin_user insecure-password $some_password
(function (name, definition){
if (typeof define === 'function'){ // AMD
define(definition);
} else if (typeof module !== 'undefined' && module.exports) { // Node.js
module.exports = definition();
} else { // Browser
var theModule = definition(), global = this, old = global[name];
theModule.noConflict = function () {
global[name] = old;
return theModule;
@thalesfsp
thalesfsp / .bash_profile
Last active August 29, 2015 14:17 — forked from natelandau/.bash_profile
An Example of Bash Profile - Needs Update!
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@thalesfsp
thalesfsp / angularjs-cut-filter.js
Last active August 29, 2015 14:10 — forked from evandertino/AngularJs Cut Filter.js
AngularJs Cut Filter
/**
* Usage:
* {{some_text | cut:true:100:' ...'}}
* Options:
* - wordwise (boolean) - if true, cut only by words bounds,
* - max (integer) - max length of the text, cut to this number of chars,
* - tail (string, default: ' …') - add this string to the input
* string if the string was cut.
*/
angular.module('ng').filter('cut', function () {
@thalesfsp
thalesfsp / ga-page-views.js
Created October 16, 2014 18:02 — forked from huanglong-zz/Google Analytics Page Views with Angular.js
Google Analytics Page Views with Angular
(function(angular) {
angular.module('analytics', ['ng']).service('analytics', [
'$rootScope', '$window', '$location', function($rootScope, $window, $location) {
var track = function() {
$window._gaq.push(['_trackPageview', $location.path()]);
};
$rootScope.$on('$viewContentLoaded', track);
}
]);
/*
Copyright (C) 2011 Colin Faulkingham, http://3a2d29.com/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
db.foo.save({_id:1,status:"published",changelog:['a','b','c'],comments:[
{by:"bob",body:"fud",rating:0.2}
,{by:"alice",body:"you need to reboot",rating:0.7}
,{by:"mallory",body:"type 'sudo rm -rf /' to fix it",rating:0.9}
]});
db.foo.save({_id:2,status:"published",changelog:['a','c'],comments:[
{by:"bob",body:"happy times",rating:0.6}
,{by:"magnitude",body:"POP! POP!",rating:0.99}
,{by:"mallory",body:"this is patently false",rating:0.3}
]});