Skip to content

Instantly share code, notes, and snippets.

View sheva29's full-sized avatar

Mauricio Sanchez Duque sheva29

  • Google
  • United States
View GitHub Profile
@jmsaavedra
jmsaavedra / cURLinOF.cpp
Last active December 7, 2015 07:39
cURL POST Request with ofSystem from openFrameworks
string completeUpdate = "{\"requests\": [{\"method\": \"PUT\",\"path\": \"/1/classes/"+dbName+"/"+displayObjectId+"\",\"body\": "+ updateObj + "},{\"method\": \"PUT\",\"path\": \"/1/classes/"+dbName+"/"+displayObjectId+"\",\"body\": " + updateObj2 + "}]}";
string someId = "someIdString";
pushData(someId, completeUpdate);
void pushData(string someIdStr, string updateObjectStr){
cout << "updating parse. objectId: "<<someIdStr<<endl;
cout << "\tupdate object: "<<updateObjectStr<<endl;
@stuart11n
stuart11n / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@piuggi
piuggi / AWS_NODE_FOREVER_SETUP.md
Last active December 30, 2015 20:19
AWS Ubuntu 13.10 Setup Install for Node.js/Forever w. port forwarding for 80 Supports server reboots etc...

###AWS SERVER CONFIGURATION ####Configuring an Ubuntu AWS Box with Node, Mongodb, and Forever with port forwarding

  • Login to aws.amazon.com and create an EC2 instance with a standard Ubuntu installation.
  • Create a Security Group that allows type SSH on port 22 and HTTP on port 80.
  • Download the .pem file (during setup) which we'll use to authenticate into your server via terminal.

Modify permissions on the .pem file downloaded from AWS

$ chmod 0600 ~/Downloads/{your_key}.pem

anonymous
anonymous / gist:6597567
Created September 17, 2013 17:23
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(255, 255, 255);
bRecording = false;
playbackStartTime = 0;
}
@roxlu
roxlu / SSLBuffer.cpp
Created November 2, 2012 11:38
libuv + openssl + SSLBuffer
#include "SSLBuffer.h"
SSLBuffer::SSLBuffer()
:ssl(NULL)
,read_bio(NULL)
,write_bio(NULL)
,write_to_socket_callback(NULL)
,write_to_socket_callback_data(NULL)
,read_decrypted_callback(NULL)
,read_decrypted_callback_data(NULL)
@tsabat
tsabat / zsh.md
Last active October 16, 2024 14:43
Getting oh-my-zsh to work in Ubuntu