Skip to content

Instantly share code, notes, and snippets.

View 0xdevalias's full-sized avatar
👀
Open to opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to opportunities
View GitHub Profile
@0xdevalias
0xdevalias / nyaan.md
Last active December 3, 2015 11:33
Nyaan cat js console hacks for dogedraw.com

Dogedraw, now with more Nyaan!

Paste these functions into the js console on https://dogedraw.firebaseapp.com and run them to nyaan nyaan nyaan..

Developed at http://hs.hact.io 2015!!

function clearScreen(w, h, color) {
  var pixelDataRef = new Firebase('https://dogedraw.firebaseio.com/pixels');
  for (var i = 0; i < h; i++) {
@0xdevalias
0xdevalias / jquery-release-notes.md
Last active July 18, 2022 08:01 — forked from teppeis/jquery-release-notes.md
jQuery Release Notes

Keybase proof

I hereby claim:

  • I am 0xdevalias on github.
  • I am devalias (https://keybase.io/devalias) on keybase.
  • I have a public key whose fingerprint is 4064 5864 7390 BD36 E415 7974 482E 543A 4FE7 484B

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1HdsXwLpYZXGGzerkoDSacA5Dinj7MSeAR https://explorer.blockstack.org/address/1HdsXwLpYZXGGzerkoDSacA5Dinj7MSeAR
@0xdevalias
0xdevalias / Gopkg.toml
Created July 17, 2018 01:48
Golang application state pattern boilerplate/reference code
[prune]
go-tests = true
unused-packages = true
[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.0.5"
[[constraint]]
name = "github.com/pkg/errors"
@0xdevalias
0xdevalias / README.md
Last active March 10, 2019 05:48
Implementing Redux style reducers/actions/middleware with React Hooks

I wanted to play around with React hooks, and I like patterns from Redux, so I figured.. why not combine them?

This implementes a Proof of Concept (PoC) 'local state' using hooks/reducers, but also has the ability to use Redux middleware (eg. thunks, sagas, etc)

@0xdevalias
0xdevalias / unofficial-viome-api-endpoints-data-export-backup.md
Last active August 13, 2024 02:26
(unofficial) Guide to Viome API Endpoints, Data Export and Backup

(unofficial) Guide to Viome API Endpoints, Data Export and Backup

Since Viome doesn't appear to offer us a way to export our data aside from as a PDF, I was inspired to have a look if I could see it any other way.


The CEO says that they don't release the raw data:

@0xdevalias
0xdevalias / 1-poc-socketio-invokeai-automatic1111.js
Last active December 10, 2022 04:27
PoC socketio server to stub the InvokeAI API, and later rewrite it to talk to the automatic1111 API
// Ref:
// This is based on the socketio events defined in the following file:
// https://github.com/invoke-ai/InvokeAI/blob/55132f64631a57ffa785c9d919c677dd2eba5d28/frontend/src/app/socketio/emitters.ts
//
// Most of this code was generated using ChatGPT (https://chat.openai.com/chat), from the following prompt:
// "Given the following code, create a basic socketio server that could handle all of the event types and parameters passed to it:"
// I then pasted the full contents of the file above.
//
// It needed to tweak one of the handlers, so I told it this:
// "The runPostprocessing event has 2 different types of parameters that are sent to it, we should handle both:
@0xdevalias
0xdevalias / gmail-css-selectors-etc.md
Last active August 26, 2025 05:31
CSS Selectors for Gmail Things
@0xdevalias
0xdevalias / lastpass-cli-tricks.md
Last active April 17, 2026 20:05
Tricks to export data in useful formats using the Lastpass CLI (and a few notes/references on Bitwarden)