Skip to content

Instantly share code, notes, and snippets.

View claytongulick's full-sized avatar

Clayton Gulick claytongulick

View GitHub Profile
@RichardBronosky
RichardBronosky / raspberrypi-initial-setup.service
Created March 4, 2018 19:53
Use standard Linux run-parts utility to run *.sh in /boot/per-boot.d/ and /boot/per-once.d/
[Unit]
Description=Run user provided scripts on boot
ConditionPathExists=/usr/lib/raspi-ini/run-parts.sh
Before=dhcpcd.service # Need to put more thought into when
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/raspi-ini/run-parts.sh
@jppommet
jppommet / int2ip.js
Last active December 26, 2023 13:44
javascript conversion from ip address to long integer and vice versa
function int2ip (ipInt) {
return ( (ipInt>>>24) +'.' + (ipInt>>16 & 255) +'.' + (ipInt>>8 & 255) +'.' + (ipInt & 255) );
}
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",