Skip to content

Instantly share code, notes, and snippets.

View davisonio's full-sized avatar
🚀
Focusing

Craig Davison davisonio

🚀
Focusing
View GitHub Profile
@davisonio
davisonio / github-merge.sh
Last active February 5, 2016 18:32
Merge a GitHub PR without a merge commt
git checkout master
curl http://github.com/user/repo/pull/1.patch | git am
git push origin master
@davisonio
davisonio / github-records.md
Last active February 5, 2016 18:31
Records of achievement on GitHub. - outdated

GitHub Records

Records of achievement on GitHub.

Largest Repository

The largest known repository on GitHub is located at: zhongfu/st and was created by zhongfu.

It appears to be a large collection of PDF files and in total the repository is over 22000000KB (22GB) in size.

<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@davisonio
davisonio / mod_debug.lua
Last active August 29, 2015 14:26 — forked from rubenwardy/mod_debug.lua
Craft recipe checker for Minetest
-- Written by rubenwardy, WTFPL
-- To use:
-- * Save as mod_debug.lua in builtin/game
-- * add dofile(gamepath.."mod_debug.lua") to the last line of builtin/game/init.lua
-- OR
-- * Install as a mod. Needs to be run before any other mod.
local mod = {}
mod.recipes = {}
mod.aliases = {}
@davisonio
davisonio / shitty-capture-the-flag-game.java
Last active August 29, 2015 14:08
Really shitty capture the flag game in Java.
import sun.audio.*;
import java.awt.*;
import java.util.Random;
import java.awt.event.*;
import java.io.*;
public class CaptureTheFlag extends Frame implements KeyListener
@davisonio
davisonio / fix-chatlog-bug.lua
Last active August 29, 2015 14:06
Fixes chatlog bug on minetest server.
f:write(os.date("(%m/%d/%y %X) [")..name.."]: "..msg.."\n")
@davisonio
davisonio / minetest-error.txt
Last active August 29, 2015 14:06
Dunno, sorry weird pointer problem when I was digging glass quickly.
17:48:31: ACTION[ServerThread]: CraigyDavi digs default:glass at (84,-2,242)
In thread 2ca8:
j:\games\minetest\minetest\src\util/pointer.h:279: SharedBuffer<unsigned char>::drop: Assertion '(*refcount) > 0' failed.
Debug stacks:
17:48:31: ACTION[ServerThread]: CraigyDavi digs default:glass at (83,-1,243)
DEBUG STACK FOR THREAD 11d0:
#0 EmergeThread::Thread
(Leftover data: #1 ServerMap::loadBlock)
(Leftover data: #2 ServerMap::loadBlock)
@davisonio
davisonio / freenode-spam.txt
Last active August 29, 2015 14:04
Someone did some spam on #freenode @freenode.net
Aug 01 17:20:53 <bsd__> rip
Aug 01 17:20:58 <tt> screwsss: then maybe you should just let things lie for a while
Aug 01 17:21:01 * AKMVACI (~VAA11K@135.Red-83-61-4.staticIP.rima-tde.net) has joined
Aug 01 17:21:01 <AKMVACI> ST7QPD ~~ Something's wrong... but I don't know what... Wondering how, with all the things I've got. Life is good, but the pain don't stop, cos I'm holding on, til I give it up. ~~ LVX1A2
Aug 01 17:21:01 <AKMVACI> ATQJWM ~~ Something's wrong... but I don't know what... Wondering how, with all the things I've got. Life is good, but the pain don't stop, cos I'm holding on, til I give it up. ~~ RQ5FA8
Aug 01 17:21:01 <AKMVACI> M3D1L4 ~~ Something's wrong... but I don't know what... Wondering how, with all the things I've got. Life is good, but the pain don't stop, cos I'm holding on, til I give it up. ~~ 56HTSX
Aug 01 17:21:01 <AKMVACI> RK93GT ~~ Something's wrong... but I don't know what... Wondering how, with all the things I've got. Life is good, but the pain don't stop, cos I'm holding on
@davisonio
davisonio / stairsplus_example.lua
Last active August 29, 2015 14:04
Stairsplus example for minetest.
stairsplus:register_all("modname", "nodename", "modname:nodename", {
description = "Node Name",
tiles = {"modname_nodename.png"},
groups = {oddly_breakable_by_hand=1},
sounds = default.node_sound_defaults(),
})
@davisonio
davisonio / application-access.md
Last active August 29, 2015 14:03
When was the last time you checked what applications have access to your private data?