Skip to content

Instantly share code, notes, and snippets.

View cskonopka's full-sized avatar
📺
stuck inside a television

Christopher Konopka cskonopka

📺
stuck inside a television
  • vondas-network
  • Boston, MA
  • Instagram cskonopka
View GitHub Profile
@cskonopka
cskonopka / gobrew.sh
Last active December 11, 2018 20:35
Install Homebrew/Install Go OSX
#!/bin/bash
# install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install Golang
brew install golang
@cskonopka
cskonopka / create-ssh-folder.sh
Created December 11, 2018 20:22
Create ssh folder when it doesn't exist on OSX
#!/bin/bash
mkdir -p ~/.ssh
@cskonopka
cskonopka / setup-ngrok.sh
Created December 11, 2018 20:24
Install ngrok, unzip and connect your authtoken
#!/bin/sh
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
unzip ngrok.zip
./ngrok authtoken [YOUR_TOKEN]
@cskonopka
cskonopka / boards.sh
Created December 12, 2018 20:33
Arduino-IDE Additional Boards
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
@cskonopka
cskonopka / twilioheadie.sh
Last active December 17, 2018 21:16
Twilio Headless Rpi Setup
#!/bin/sh
sudo apt-get install ppp usb-modeswitch
wget https://github.com/twilio/wireless-ppp-scripts/archive/master.zip
unzip master.zip
rm master.zip
cd wireless-ppp-scripts-master
sudo cp chatscripts/twilio /etc/chatscripts
sudo cp peers/twilio /etc/ppp/peers
@cskonopka
cskonopka / TwilioIoT-m2mServer.go
Created March 6, 2019 17:53
Basic example of how to receive M2M webhooks from a SIM using a Go server
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/tester", tester)
http.ListenAndServe(":9999", nil)
@cskonopka
cskonopka / TwilioIoT-Narrowband-Links.txt
Last active May 22, 2019 20:49
Twilio Narrowband links for T-Mobile NB-IoT hackathon
@cskonopka
cskonopka / shelljs-youtubedl.js
Created March 27, 2019 01:53
Example of how to rip audio and video files using youtube-dl and shelljs in Node.js
// Example of how to rip audio and video files using youtube-dl and shelljs in Node.js
var shell = require('shelljs');
function receiveREC(window) {
var newWAV = "MEDIA_URL";
var ripHaze = 'youtube-dl ' + newWAV;
if (shell.exec(ripHaze).code !== 0) {
shell.echo('Error: Git commit failed');
shell.exit(1);
}
@cskonopka
cskonopka / ffmpeg-overlay2audiofiles.sh
Last active April 17, 2019 21:10
ffmpeg: Overlay 2 audio files
#!/bin/bash
ffmpeg -y -i FILE1 -i FILE2 -filter_complex "[0:0][1:0] amix=inputs=2:duration=longest" -c:a libmp3lame OUTPUTFILE
@cskonopka
cskonopka / ffmpeg-sequentialMerge.go
Created April 17, 2019 22:09
Use ffmpeg to sequentially overlay a folder of audio files
package main
import (
"fmt"
"os/exec"
"strconv"
)
func main() {
countdown(4)