Skip to content

Instantly share code, notes, and snippets.

View zifnab06's full-sized avatar
🏳️‍🌈

Tom Powell zifnab06

🏳️‍🌈
View GitHub Profile
*CapsLock::
Send {Blind}{Ctrl Down}
cDown := A_TickCount
Return
*CapsLock up::
If ((A_TickCount-cDown)<100) ; Modify press time as needed (milliseconds)
Send {Blind}{Ctrl Up}{Esc}
Else
Send {Blind}{Ctrl Up}
@zifnab06
zifnab06 / switch_default_branch.py
Created January 12, 2017 04:50 — forked from fourkbomb/switch_default_branch.py
python script using requests to change the default branch for all repos owned by a user/organisation
#!/usr/bin/python
from __future__ import print_function
import requests
BRANCH = 'cm-14.1'
REPO_OWNER = 'orgs/CyanogenMod'
USERNAME = 'your github username'
# generate this here: https://github.com/settings/tokens
# this script only needs the 'repo' scope
@zifnab06
zifnab06 / data.json
Last active December 3, 2016 06:12
cyanogenmod ota spec
{"method": "get_all_builds", "params": {"device": "mako", "channels": ["nightly"], "source_incremental": "some-string-its-irrelephant"}}
FROM ubuntu:16.04
MAINTAINER Tom Powell <zifnab@zifnab06.net>
RUN apt-get update && \
apt-get install apt-transport-https ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D &&
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list && \

Keybase proof

I hereby claim:

  • I am zifnab06 on github.
  • I am zifnab06 (https://keybase.io/zifnab06) on keybase.
  • I have a public key whose fingerprint is 6F3A 003F 719B CE3E EFCF 1B8C 2ECB A08F B5F5 19F5

To claim this, I am signing this object:

// ==UserScript==
// @name Amazon Item Shortener
// @version 1.1b
// @date 2013/05/29
// @description Make links smaller in Amazon
// @creator Omeryl
// @license WTFPL; http://www.wtfpl.net/
// @include http://*.amazon.com/*
// @include https://*.amazon.com/*
// @namespace http://userscripts.org/scripts/show/168947
@zifnab06
zifnab06 / gist:6277325
Last active December 21, 2015 08:19
Make end portal go to a different location.
@EventHandler
public void onPlayerLeaveEnedEvent(PlayerTeleportEvent event){
World world = Bukkit.getServer().getWorld("world");
Location l = new Location(world, x, y, z);
if(event.getFrom().getWorld().getEnvironment() == Environment.THE_END){
event.setTo(loc);
}
}
@zifnab06
zifnab06 / gist:6076652
Created July 25, 2013 03:12
ModMode Crash
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 7/24/13 8:49 PM
Description: Deserializing Message
java.lang.ClassCastException: com.google.gson.JsonPrimitive cannot be cast to com.google.gson.JsonObject
at cw.a(SourceFile:14)
at cw.deserialize(SourceFile:10)
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)