Skip to content

Instantly share code, notes, and snippets.

View jmsaavedra's full-sized avatar

Joe Saavedra jmsaavedra

View GitHub Profile
@jmsaavedra
jmsaavedra / chromium.md
Last active May 1, 2019 20:15
install chromium on raspbian jessie

install chromium on raspbian jessie

get these chromium debs (THEY ARE ALSO IN THIS FOLDER):

wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_45.0.2454.85-0ubuntu0.15.04.1.1181_all.deb
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
wget https://dl.dropboxusercontent.com/u/87113035/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
@jmsaavedra
jmsaavedra / info.md
Last active November 6, 2015 21:09
startup script resources for ubuntu

adding an init.d script:

  1. look at /etc/init.d/skeleton for the script template
  2. after creating your own, chmod a+x myscript
  3. sudo mv myscript /etc/init.d
  4. update-rc.d myscript.....tba...

OR

...tba...

@jmsaavedra
jmsaavedra / simpleserial.ino
Created October 3, 2015 22:18
Teensy Serial Controller
/******
* Teensy connected to Powerswitch Tail 2
*/
#define PST_1 3 //powerswitch tail pin 1
#define PST_2 4 //powerswitch tail pin 2
#define LED 13 //teensy 3.0 on-board LED
void setup() {
Serial.begin(9600);
import java.io.*;
import java.util.*;
/**
made this work.
- joe
@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;
@jmsaavedra
jmsaavedra / ffmpeg_install.md
Last active February 29, 2024 09:36
Install FFmpeg on a Linux Box

Install FFmpeg via CLI on Linux box

These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.

  • SSH into your instance and become root
@jmsaavedra
jmsaavedra / mongo-cli-reference.md
Last active January 24, 2017 01:12
mongodb cli quick reference + setup guide

###mongodb quick CLI reference

db backup and restore

from any directory on host machine, export entire db

$ mongodump -db myDatabaseName #OSX
$ mongodump --db myDatabaseName -o C:\Users\someuser\Desktop #win
@jmsaavedra
jmsaavedra / .gitignore
Last active June 1, 2022 10:09
gitignore template
###################################
# general ignore patterns
###################################
build/
obj/
*.o
Debug*/
Release*/
*.mode*
@jmsaavedra
jmsaavedra / rPi-SD-imaging.md
Last active July 24, 2017 23:10
raspberry Pi SD card formatting and image copying

SD CARD IMAGE COPY AND RESTORE


great for RaspberryPi disk imaging and copying.

LOCATE AND UNMOUNT DISK

insert SD card into computer. to see all volumes mounted to machine:

$ diskutil list
@jmsaavedra
jmsaavedra / _openFrameworks data to arduino over serial.ino
Last active August 29, 2015 14:01
Serial control of Arduino. After kick-off message is sent from OF and a response is received from Arduino, OF continually updates Arduino with 3 bytes of data via a call and response driven by Arduino.
int bytesReceived[3]; //incoming bytes
void setup() {
pinMode(13, OUTPUT); //LED on 13
pinMode(12, OUTPUT); //LED on 12
Serial.begin(9600);
}
void loop()