Skip to content

Instantly share code, notes, and snippets.

View cesalazar's full-sized avatar
👾
404 - Status not found

Carlos E. Salazar cesalazar

👾
404 - Status not found
View GitHub Profile
@Domon
Domon / build-fire-app.sh
Created November 12, 2012 11:09
How to build Fire.app on Mac OS X.
# Clone Fire.app
git clone git://github.com/handlino/FireApp.git
# (IMPORTANT) Update git submodules
cd FireApp
git submodule init
git submodule update
# Switch to JRuby (I'm using 1.6.7.2.)
rvm use jruby
@slagdang
slagdang / enable_trim.sh
Last active December 10, 2015 19:58 — forked from woods/enable_trim.sh
This script will enable TRIM support for 3rd Party SSDs on Mountain Lion and later. It will enable TRIM for ALL 3rd Party SSDs, so if you have two SSDs in your system, best be sure both support TRIM before running this. It is unclear if this patch also enables TRIM for rotational media, I'd have to look at the Darwin source to find that out.
#!/bin/bash
#
# Enable TRIM support for 3rd Party SSDs. Works for Mountain Lion, should work on earlier OSes too.
# Tested on 10.8.2, 10.8.3, 10.8.5, 10.9.0-10.9.5, 10.10.0-10.10.1, 10.10.4
#
# Run this script at your own risk, whether on 10.10 or earlier.
#
# This script works on MacOS 10.10-10.10.1 (Yosemite) but it has significant system security repercussions.
# To use it you must disable kext signing on your machine. This makes it easier for
# malware to infect your machine by disabling the feature which would detect unsigned
@can3p
can3p / restart_bluetooth.sh
Created March 17, 2016 08:38 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@ahmadawais
ahmadawais / gulpfile.js
Last active June 6, 2018 11:49
Gulp: Browser Sync Task
/**
* Browser Sync
*
* Asynchronous browser syncing of assets across multiple devices!! Watches for changes to js, image and php files
* Although, I think this is redundant, since we have a watch task that does this already.
*/
gulp.task('browser-sync', function() {
var files = [
'**/*.php',
'**/*.{png,jpg,gif}'
@jfensign
jfensign / index.js
Created April 9, 2012 00:24
NodeJS User Registration and Authentication
//index.js
var express = require('express'),
app = module.exports = express.createServer(),
mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/nodeAuth');
//configure app
app.configure(function() {
app.set('views', __dirname + '/views');
@jsjohnst
jsjohnst / gist:68455
Created February 22, 2009 12:47
Bash profile options for color and vi mode
# useful general .bash_profile tweaks for color loving VI fans
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;36'
export CLICOLOR=1
alias ls='ls -G'
export LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rb=90'
export COLOR_NC='\e[0m' # No Color
export COLOR_WHITE='\e[1;37m'
export COLOR_BLACK='\e[0;30m'
@ccabanero
ccabanero / AWS - Notes for installing Apache - PostgreSQL - PostGIS - PHP (LAPPP) on an AWS EC2 Ubuntu 12.04.2 Server for development.
Last active September 23, 2021 05:32
AWS - Notes for installing Apache - PostgreSQL - PostGIS - PHP (LAPPP) on an AWS EC2 Ubuntu 12.04.2 Server for development.
-------------------------------------------------------------------------------------------------------------------------------
DESCRIPTION:
Notes for installing Apache - PostgreSQL - PostGIS - PHP (LAPPP) on an AWS EC2 Ubuntu 16.x Server for development.
-------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------
PART 1: Stand Up an Ubuntu 16.x server on AWS EC2
---------------------------------------------------------
@timohausmann
timohausmann / facebook_graph_api_2.pde
Created January 20, 2014 19:32
Another Facebook Graph API Example for Processing
/**
* In this example, we will request your first name and your profile picture from Facebook.
* We will store the acquired information in these variables:
*/
String name;
int mutualfriends_amount;
int likes_amount;
/**
* You need an Access Token to perform requests to the Facebook Graph API.
@matthewpoer
matthewpoer / SugarCRM_Rest_v4_1.md
Created June 4, 2014 20:27
This document is intended to provide a language-neutral guide of using the SugarCRM Rest API v4_1 by displaying the HTTP POSTs used to send and request data. I believe that these POSTs are the best way to understand how these API calls work, since some information is carried in the POST and some as JSON-encoded arrays.

SugarCRM REST API (v4_1)

This document is intended to provide a language-neutral guide of using the SugarCRM Rest API v4_1 by displaying the HTTP POSTs used to send and request data. I believe that these POSTs are the best way to understand how these API calls work, since some information is carried in the POST and some as JSON-encoded arrays.

Please also note that SugarCRM offers a newer version of it's REST API, dubbed

"============================================================================
" statusline
"============================================================================
let g:currentmode={
\ 'n' : 'N ',