Skip to content

Instantly share code, notes, and snippets.

View wybiral's full-sized avatar

davy wybiral wybiral

View GitHub Profile
@wybiral
wybiral / crash.go
Last active February 22, 2018 16:24
crash
// The basic strategy is to send an endless number of iframes with data URIs
// This causes a flood of download modals that crashes most desktop clients
//
// Currently running demo at: https://fan-pages.herokuapp.com
//
// NOTE: This server has received more traffic than expected so sometimes it
// doesn't serve the HTML fast enough. For the full effect run this Go server
// on a dedicated machine somewhere.
//
// PS: Save your work before you open it ;)
@wybiral
wybiral / hookah-example.go
Created June 27, 2018 14:23
Real-time processing of CertStream API using hookah
package main
import (
"encoding/json"
"io"
"log"
"github.com/wybiral/hookah"
)
google-chrome "https://google.com"
@wybiral
wybiral / LoraDemo.js
Created October 11, 2018 23:38
This is an example of using Espruino JS to control a REYAX LoRa module.
/*
This is an example of using Espruino JS to control a REYAX LoRa module.
It listens for "on" and "off" messages to change and LED and
sends "on" and "off" messages by pressing the button.
Watch the video here: https://youtu.be/IStuUv9eAmE
*/
const RYLR = require('https://github.com/wybiral/espruino-modules/blob/master/RYLR.js');
// Touch pin cutoff value
#define CUTOFF 20
// Amount of time held before touch fires event (ms)
#define DURATION 100
// Touch state (0=none, 1=touched+waiting, 2=touched+sent)
int state;
int start;
import serial, webbrowser
with serial.Serial('/dev/ttyUSB0', 115200) as s:
while True:
line = s.readline()
webbrowser.open_new('https://www.youtube.com/c/DavyBot')
import json
import sys
for line in sys.stdin:
# remove newline
line = line.rstrip()
# parse JSON
item = json.loads(line)
# get title
title = item.get('title', '')

Keybase proof

I hereby claim:

  • I am wybiral on github.
  • I am davywtf (https://keybase.io/davywtf) on keybase.
  • I have a public key whose fingerprint is D41D 42D1 F652 3ED3 EF5A CE8D 91A2 22E9 E3D9 0405

To claim this, I am signing this object:

@wybiral
wybiral / lolwtf.go
Last active May 6, 2019 21:45
noscript animation using streamed CSS
package main
import (
"encoding/hex"
"fmt"
"math/rand"
"net/http"
"time"
)
@wybiral
wybiral / hai-mark.go
Last active May 6, 2019 21:47
Remotely trigger another browser to crash (without JavaScript)
// Send infinite data-URL iframes (with /aim and /fire to remotely trigger)
package main
import (
"encoding/base64"
"math/rand"
"net/http"
"sync"
)