Skip to content

Instantly share code, notes, and snippets.

copying AND pasting

Michael Rhing celly

copying AND pasting
View GitHub Profile
celly /
Last active Nov 30, 2015
My Edison Cheat sheet.

I accidently ran an 'opkg upgrade' and it destroyed my intel edison. If you still have wifi, or a console, these are the steps needed to restore it:

mkdir /update
mkfs.vfat -F32 -I /dev/mmcblk0p9
mount -t vfat /dev/mmcblk0p9 /update/
cd /update
unzip -d .
celly / imatic.js
Last active Feb 25, 2016
SainSmart iMatic with RJ45 Interface Node JS Snippet
View imatic.js
# NodeJs code for controlling
# SainSmart iMatic with RJ45 Interface
var net = require("net");
var client = new net.Socket();
client.connect(30000, '', function() {
console.log('connected to iMatic!');
celly /
Created Nov 1, 2016 — forked from pirafrank/
install the PHP version you want on Raspbian. Tested with 5.5 and 5.6. It may work for PHP 7.x, too.
# credits:
# type here the specific php 5.x version you want to install
### SCRIPT ###
celly / gist:37b67b0475a2a41009f81537e19ea5c2
Last active Apr 13, 2019
Launch dual screen kiosk mode osx
View gist:37b67b0475a2a41009f81537e19ea5c2
# /bin/bash
# conferences-program-wall
mkdir ~/Desktop/usr1
mkdir ~/Desktop/usr2
/Applications/Google\\ Chrome --window-position=1,1 --kiosk --user-data-dir=~/Desktop/usr1 http:// &
/Applications/Google\\ Chrome --window-position=1900,1 --kiosk --user-data-dir=~/Desktop/usr2 http:// &
celly / gist:c4ea2ebc2957059c138e
Created Jan 11, 2016
Printrbot Simple Metal start gcode
View gist:c4ea2ebc2957059c138e
Found in this post:
Use this to reset, center, and auto-extrudea small bit before printing.
G90 ; Explicitly force absolute positioning in case it was not reset previously.
G28 ; Home all axes.
G29 ; Auto-level the bed.
G0 X0 Y0 Z0.15 F9000 ; Move to the front-left part of the bed.
M109 S{print_temperature} ; Set and wait for extruder temperature.
G92 E0 ; Zero the extruder.
celly / gist:1591cf9305734812baad
Last active May 23, 2020
Personal Deny list for Pi-Hole
View gist:1591cf9305734812baad
# link:
# Add to you /usr/local/bin/ file under sources=
# samsung 'smart tv'