Skip to content

Instantly share code, notes, and snippets.

View codingJWilliams's full-sized avatar
💭
playing gam3s

Jay Williams codingJWilliams

💭
playing gam3s
View GitHub Profile
@codingJWilliams
codingJWilliams / ha_motion_automation.yaml
Created January 19, 2024 15:18
ha_motion_automation
blueprint:
name: HA Motion Automation
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwi+NpNZen3JbPR9sss7hEwaK6momaZIJgOQOimvit2HO6mm3TXfQzfQsx20kKLR0h5rv8Oc3RvDFbfOf7/iTE47QMw7215MrKNZR2SE0D7RxgL4Gclg+JwrjJyMCWQHvnP4d9JPFRmJQmfRudxYdC4uY1yCkwkf9yAhrKzyk0XsLZKulVg1NIhdZId4wdhcnkJiD1MiewfZkTZHhYr6/f25rRJjAIgYsAADVY+iOftk+sm4xDLWNxcTbXWKjDFKU5xQyybQrHyyHs9u8bgxGi/chkwHPN8wlntn8OPdbtsOIJKcC7dmW3+1Li4IiVmMwFD69HGSGcwhgF8g5xGTfh jay@LAPTOP04

Image Transcription: Meme


[Paul Teutul Jr, who is clean shaven and wearing a cap, shouts at Paul Teutul Sr, an ageing man with a grey moustache and grey hair, sits in his chair]


1

@codingJWilliams
codingJWilliams / fake_error_1.log
Created March 4, 2018 17:52
Fake errors for r/TranscribersOfReddit - forked
Error encountered: (if you see this in prod then you messed up)
fatal error: Index out of range
2017-10-23 10:00:27.613055-0400 swift[3254:4035293] fatal error: Index out of range
Execution interrupted. Enter code to recover and continue.
Enter LLDB commands to investigate (type :help for assistance.)
Process 3254 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
frame #0: 0x00000001011fddd0 libswiftCore.dylib`function signature specialization <preserving fragile attribute, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage(Swift.StaticString, Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 96
libswiftCore.dylib`function signature specialization <preserving fragile attribute, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage(Swift.StaticString, Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Sw

Keybase proof

I hereby claim:

  • I am codingjwilliams on github.
  • I am jaywilliams (https://keybase.io/jaywilliams) on keybase.
  • I have a public key ASDuyzjQTfxZcKf9sWvuDo0d2Vq-Q1AzsdNXuoK0KfTvSwo

To claim this, I am signing this object:

<script>
function exploit(){
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
window.requestFileSystem(window.TEMPORARY, 1024*1024, function(fs) {
fs.root.getFile('%appdata%\\Roaming\\test.txt', {create: true}, function(fileEntry) { // test.bin is filename
fileEntry.createWriter(function(fileWriter) {
var arr = new Uint8Array(3); // data length
arr[0] = 97; // byte data; these are codes for 'abc'