Skip to content

Instantly share code, notes, and snippets.

View RickyVaughn2's full-sized avatar
👾
KATN

Ricky Vaughn RickyVaughn2

👾
KATN
View GitHub Profile
@RickyVaughn2
RickyVaughn2 / aws-sns-example.js
Created June 5, 2019 18:03 — forked from tmarshall/aws-sns-example.js
aws-sdk sns example, in Node.js
var AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
});
var sns = new AWS.SNS();
@RickyVaughn2
RickyVaughn2 / dev.sh
Created February 4, 2018 00:17 — forked from rosswd/dev.sh
Dev setup guide for Raspberry Pi. Python, Virtualenv, Git and Terminal.
# Change the Terminal Font
sudo vi /etc/default/console-setup
# set FONTFACE="Terminus"
# set FONTSIZE="16x32"
# Useful apt commands
sudo apt-get install -s git # simulate
apt-cache show git # package info
apt-cache show git | grep '^Size' # size only
apt-get install [package] --no-install-recommends --show-progress # don't install recommended packages
@RickyVaughn2
RickyVaughn2 / app_mqtt_mysql.js
Created January 8, 2018 18:31 — forked from smching/app_mqtt_mysql.js
Node.js application: Store messages from Mosquitto MQTT broker into SQL Database
var mqtt = require('mqtt');
var Topic = '#'; //subscribe to all topics
var Broker_URL = 'mqtt://192.168.1.123';
var Database_URL = '192.168.1.123';
var options = {
clientId: 'MyMQTT',
port: 1883,
//username: 'mqtt_user',
//password: 'mqtt_password',
@RickyVaughn2
RickyVaughn2 / tmux-cheatsheet.markdown
Created December 15, 2017 17:20 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname