Skip to content

Instantly share code, notes, and snippets.

View celly's full-sized avatar
🤡
copying AND pasting

Michael Rhing celly

🤡
copying AND pasting
View GitHub Profile
@celly
celly / fix_edison.md
Last active November 30, 2015 19:28
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
wget http://downloadmirror.intel.com/25384/eng/edison-iotdk-image-280915.zip
unzip edison-iotdk-image-280915.zip -d .
rm edison-iotdk-image-280915.zip
@celly
celly / imatic.js
Last active February 25, 2016 19:22
SainSmart iMatic with RJ45 Interface Node JS Snippet
#
# NodeJs code for controlling
# SainSmart iMatic with RJ45 Interface
#
var net = require("net");
var client = new net.Socket();
client.connect(30000, '192.168.1.4', function() {
console.log('connected to iMatic!');
});
@celly
celly / install_latest_php_raspberrypi.sh
Created November 1, 2016 13:26 — forked from pirafrank/install_latest_php_raspberrypi.sh
install the PHP version you want on Raspbian. Tested with 5.5 and 5.6. It may work for PHP 7.x, too.
#!/bin/bash
# credits: http://stackoverflow.com/questions/31280912/how-to-install-php-5-6-on-raspbian-wheezy
### VARIABLES ###
# type here the specific php 5.x version you want to install
PHP_VERSION="5.6.27"
### SCRIPT ###
@celly
celly / gist:37b67b0475a2a41009f81537e19ea5c2
Last active April 13, 2019 18:52
Launch dual screen kiosk mode osx
# /bin/bash
# conferences-program-wall
mkdir ~/Desktop/usr1
mkdir ~/Desktop/usr2
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --window-position=1,1 --kiosk --user-data-dir=~/Desktop/usr1 http:// &
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --window-position=1900,1 --kiosk --user-data-dir=~/Desktop/usr2 http:// &
@celly
celly / gist:c4ea2ebc2957059c138e
Created January 11, 2016 22:19
Printrbot Simple Metal start gcode
Found in this post: https://www.reddit.com/r/PrintrBot/comments/3jm8bc/start_gcode_does_not_extrudeandmove_but_the_code/
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
celly / gist:72d465e32533737f1338ee78385adb6e
Created April 14, 2022 14:05
Tailwind Font Cheat-Sheet
text-xs font-size: 0.75rem; /* 12px */ line-height: 1rem; /* 16px */
text-sm font-size: 0.875rem; /* 14px */ line-height: 1.25rem; /* 20px */
text-base font-size: 1rem; /* 16px */ line-height: 1.5rem; /* 24px */
text-lg font-size: 1.125rem; /* 18px */ line-height: 1.75rem; /* 28px */
text-xl font-size: 1.25rem; /* 20px */ line-height: 1.75rem; /* 28px */
text-2xl font-size: 1.5rem; /* 24px */ line-height: 2rem; /* 32px */
font-thin font-weight: 100;
font-extralight font-weight: 200;
font-light font-weight: 300;
@celly
celly / gist:1591cf9305734812baad
Last active February 26, 2024 10:30
Personal Deny list for Pi-Hole
#
# link: https://gist.githubusercontent.com/celly/1591cf9305734812baad/raw/
#
# Add to you /usr/local/bin/gravity.sh file under sources=
#
# samsung 'smart tv'
127.0.0.1 log-1.samsungacr.com
127.0.0.1 log-2.samsungacr.com
127.0.0.1 notice.samsungcloudsolution.com