Skip to content

Instantly share code, notes, and snippets.

View Jxck-S's full-sized avatar
🏠
Working from home

Jack Sweeney Jxck-S

🏠
Working from home
  • Student
  • Orlando Florida
View GitHub Profile
@Jxck-S
Jxck-S / fix.sh
Created January 24, 2020 00:52
fix perms
echo '
chmod -R 755 /bin /boot /dev /etc/ /home /lib /lib64 \
/media /mnt /opt /run /sbin /srv /usr /var
chmod -R 777 /initrd.img /vmlinuz
chmod -R 1777 /tmp
chmod -R 555 /sys
chmod -R 555 /proc
chmod -R 700 /root
@Jxck-S
Jxck-S / outlet_accessory.js
Created September 3, 2018 19:22
outlet_accessory.js
// HomeKit types required
var request = require('request');
var types = require("./types.js");
var exports = module.exports = {};
exports.accessory = {
displayName: 'Weaved SmartPlug',
username: "C2:32:3F:EG:AE:F1",
pincode: "031-45-154",
services: [{
@Jxck-S
Jxck-S / Dash_accessory.js
Last active September 2, 2018 15:11
Dash_accessory.js
//START CONFIG
var dashMAC = "38:f7:3d:e3:98:46"; //enter your Amazon Dash Button mac ID here
var accessoryName = 'Gatorade Dash'; //enter what you want your Amazon Dash to be called in HomeKit
var uuidNAME = 'GADash'; //enter a singleword name here (use for UUID)
//END CONFIG
var Accessory = require('../').Accessory;
var Service = require('../').Service;
var Characteristic = require('../').Characteristic;
@Jxck-S
Jxck-S / read_sensor_colored.py
Last active August 6, 2017 20:34 — forked from legotheboss/read_sensor.py
Python Script to Read Garage Sensor
from time import sleep
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12, GPIO.IN)
while True:
if (GPIO.input(12) == True):
print('\x1b[1;37;42m' + 'Garage Door Closed' + '\x1b[0m')
else:
print('\x1b[1;37;43m' + 'Garage Door Open' + '\x1b[0m')