Skip to content

Instantly share code, notes, and snippets.

View ohnx's full-sized avatar
💭
:shipit:

Mason ohnx

💭
:shipit:
View GitHub Profile
@ohnx
ohnx / README.md
Last active February 16, 2017 17:51
FakePlayers UUID and name

FakePlayers UUID and name for use in servers to OP them to bypass plugins liek GriefPrevention and Towny

mod player uuid player name notes
BuildCraft 77456a1f-b9f9-3f84-8863-ddef5b8e2209 [BuildCraft] UUID is the UUID.nameUUIDFromBytes("buildcraft.core".getBytes())
ComputerCraft 0d0c4ca0-4ff1-11e4-916c-0800200c9a66 ComputerCraft no [ and ] around the name
Draconic Evolution 5b5689b9-e43d-4282-a42a-dc916f3616b7 [Draconic-Evolution] Grinder
Ender IO 3baa66fa-a69a-11e4-89d3-123b93f75cba [EioKillera] Killer Joe
Thermal Expansion 5ae51d0b-e8bc-5a02-09f4-b5dbb05963da [CoFH] common for all CoFHLib mods?
@ohnx
ohnx / index.md
Created May 29, 2016 18:45
RC522
/*
 * --------------------------------------------------------------------------------------------------------------------
 * Example sketch/program showing how to read data from a PICC to serial.
 * --------------------------------------------------------------------------------------------------------------------
 * This is a MFRC522 library example; for further details and other examples see: https://github.com/miguelbalboa/rfid
 * 
 * Example sketch/program showing how to read data from a PICC (that is: a RFID Tag or Card) using a MFRC522 based RFID
 * Reader on the Arduino SPI interface.
 * 
@ohnx
ohnx / index.md
Last active February 6, 2022 22:26
CC41-a

intro

The cc41-a can be kind of hard to use, so I figured I'd make a blog post about it.

So, without further ado, here's a ohnx terribly explains™ post explaining how I got my CC41-a working (because after all, I am the center of the universe):

intro x2

First off, how do you know if you have a cc41-a?

  1. Power the CC41-a using 5V (assuming you have a breakout board, otherwise, I think you need to use 3.3V)
@ohnx
ohnx / app-deny.sh
Last active August 29, 2015 14:27
prevent apps from opening
#!/bin/bash
while true; do
#Office Apps
osascript -e 'tell application "System Events" to keystroke "q" using command down' &
var=$((`killall -v "Microsoft Word" | wc -l` + `killall -v "Microsoft PowerPoint" | wc -l` + `killall -v "Keynote" | wc -l` + `killall -v "Pages" | wc -l` + `killall -v "Numbers" | wc -l`))
#Misc Apps
var+=$((`killall -v iBooks | wc -l` + 0))
var+=$((`killall -v GarageBand | wc -l` + 0))
var+=$((`killall -v "App Store" | wc -l` + 0))
var+=$((`killall -v "iTunes" | wc -l` + 0))