Skip to content

Instantly share code, notes, and snippets.

View michaelowens's full-sized avatar

Michael Owens michaelowens

View GitHub Profile
@michaelowens
michaelowens / twitch-kick-followers.user.js
Last active June 20, 2023 04:02
Show streamers live on kick in your Twitch sidebar
// ==UserScript==
// @name Twitch Kick Followers
// @namespace Violentmonkey Scripts
// @description Keep track of Kick streams.
// @run-at document-start
// @match *://twitch.tv/*
// @match *://www.twitch.tv/*
// @version 0.0.0
// @author xikeon
/**
DataStream reads scalars, arrays and structs of data from an ArrayBuffer.
It's like a file-like DataView on steroids.
@param {ArrayBuffer} arrayBuffer ArrayBuffer to read from.
@param {?Number} byteOffset Offset from arrayBuffer beginning for the DataStream.
@param {?Boolean} endianness DataStream.BIG_ENDIAN or DataStream.LITTLE_ENDIAN (the default).
*/
export function DataStream(arrayBuffer, byteOffset, endianness) {
this._byteOffset = byteOffset || 0;
@michaelowens
michaelowens / wifi2eth.sh
Created August 8, 2021 14:48
Share Wifi (or VPN tunnel) through eth
#!/bin/bash
# Share Wifi (or VPN tunnel) through eth
ip_address="192.168.2.1"
netmask="255.255.255.0"
dhcp_range_start="192.168.2.2"
dhcp_range_end="192.168.2.255"
dhcp_time="12h"
dns_server="1.1.1.1"

Keybase proof

I hereby claim:

  • I am michaelowens on github.
  • I am michaelowens (https://keybase.io/michaelowens) on keybase.
  • I have a public key ASDFiEqwvs1iYWVrHF8qm2IYXeIqPgu9NKqZ5m9NNChcvwo

To claim this, I am signing this object:

@michaelowens
michaelowens / README.md
Last active March 20, 2020 07:18
jQTpl - A simple jQuery template engine/mini framework.

jQTpl

jQTpl - A simple jQuery template engine/mini framework.

I made this to easily be able to add UI elements, with 2-way binding, to websites using tampermonkey scripts. Feel free to do whatever you want.

@michaelowens
michaelowens / purge_channel.js
Last active August 11, 2016 07:47
Delete all messages in discord channel, the lazy way using mee6.xyz (add bot + enable moderation + enable !clear). When all messages are gone you can either refresh or run `stop_purge = true` in dev tools.
var stop_purge = false;
(function(){
// Go to the channel you want to purge completely (in browser, discordapp.com)
// Open your chrome dev tools (ctrl+shift+i), go to the Network tab.
// Send a message and it should show activity in the network pane. Click on the request you made, the name should be "messages"
// Click on the request, copy the "Request URL" and paste it in between these quotes:
var requestURL = ''
// scroll down to "Request Headers" and grab the key behind "authorization:" and paste it inside these quotes:
var authToken = ''
@michaelowens
michaelowens / pokevision.user.js
Last active July 27, 2016 11:04
Remove 30 second wait for pokevision
// ==UserScript==
// @name PokeVision - No wait
// @namespace http://tampermonkey.net/
// @version 0.2
// @updateURL https://gist.github.com/michaelowens/6ffff66be16b8c77ca28eda6f59f7436/raw/pokevision.user.js
// @description No waiting 30 seconds before scanning again
// @author Xikeon
// @match http*://pokevision.com/*
// @match http*://www.pokevision.com/*
// @grant none
@michaelowens
michaelowens / README.md
Last active September 25, 2022 14:49
Chat commands for Twitch : Pyramid generator, rainbow messages, brainpower, and more to come
import BaseModule from './base'
import Commands from '../models/command'
import Database from '../models/database'
import Log from '../models/log'
import Chat from '../models/chat'
import {RateLimiter} from 'limiter'
import seedrandom from 'seedrandom'
import {ModuleSetting} from '../models/module'
export const SETTINGS = {
@michaelowens
michaelowens / keybase.md
Created September 28, 2015 08:18
Keybase proof

Keybase proof

I hereby claim:

  • I am michaelowens on github.
  • I am michaelowens (https://keybase.io/michaelowens) on keybase.
  • I have a public key whose fingerprint is 47A3 E05E F7BF CDC8 B79B 3D9F AF4C BFB3 A9BC 87FA

To claim this, I am signing this object: