Skip to content

Instantly share code, notes, and snippets.

View Xe's full-sized avatar
πŸ˜‚
h

Xe Iaso Xe

πŸ˜‚
h
View GitHub Profile
[4:40:15 AM] danrew501: hi
[4:40:17 AM] Xena: Hi
[4:40:34 AM] Xena: what is so important that you have to fragment my logs by talking on skype?
[4:40:58 AM] danrew501: so can we chat about your servers?
[4:41:06 AM] Xena: okay
[4:41:10 AM] Xena: what do you want to know?
[4:41:17 AM] danrew501: can i help you run them
[4:41:23 AM] danrew501: and make them a boss network for you and me to run
[4:41:35 AM] Xena: what kind of network?
[4:41:41 AM] danrew501: a boss network
@Xe
Xe / config.json
Created July 10, 2014 18:57
example config file
{
"autoload": ["tetra/main"],
"services": [
{
"nick": "Tetra",
"user": "tetra",
"host": "yolo-swag.com",
"gecos": "Tetra administrative client",
"name": "tetra"
}
@Xe
Xe / config.go
Created July 10, 2014 18:39
config parser
package tetra
import (
"encoding/json"
"io/ioutil"
)
type ServerConfig struct {
Name string `json:"name"`
Gecos string `json:"gecos"`
package tetra
import (
"bufio"
"errors"
"github.com/Xe/Tetra/1459"
"github.com/Xe/Tetra/modes"
"log"
"net"
"net/textproto"
@Xe
Xe / -
Created June 30, 2014 17:14
script derpibooru.lua 2014/06/30 10:13:29 id: 566369
script derpibooru.lua 2014/06/30 10:13:29 url: http://derpiboo.ru/566369.json?nocomments
script derpibooru.lua 2014/06/30 10:13:32 json: 1
2014/06/30 10:13:32 Lua error derpibooru.lua: &lua.LuaError{code:5, message:"scripts/derpibooru.lua:37: attempt to index local 'info' (a number value)", stackTrace:[]lua.LuaStackEntry{lua.LuaStackEntry{Name:"", Source:"=[C]", ShortSource:"[C]", CurrentLine:-1}, lua.LuaStackEntry{Name:"", Source:"@scripts/derpibooru.lua", ShortSource:"scripts/derpibooru.lua", CurrentLine:37}}}
╔════════════════════════ ΰ³‹αƒ¦β˜ƒαƒ¦ΰ³‹ ════════════════════════╗
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Repost this if~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ you are a beautiful strong independent airplane ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ who dont need no hair ~ ~ ~ ~ ~ ~ ~ ~ ~
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• ΰ³‹αƒ¦β˜ƒαƒ¦ΰ³‹ ════════════════════════╝
@Xe
Xe / -
Created June 24, 2014 14:33
### Keybase proof
I hereby claim:
* I am xe on github.
* I am xena (https://keybase.io/xena) on keybase.
* I have a public key whose fingerprint is 2E5C BE74 C16D ED81 6351 E7CE B58E EB12 46DF 6D21
To claim this, I am signing this object:
ZMM
MMMM
ZMMMMMr
WMW MMMMMMZ
MMM MMMMMM
XMM MMMMMMM
MMMM SMMM@MMM can you see all of me?
MMMM MMM@WMMM walk into my mystery
MMMMM MM@@MMX step inside and hold on
MMMMM iMMBWMM for dear life
@Xe
Xe / -
Created April 3, 2014 17:38
rarity input > evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
Select the device event number [0-11]: 0
evtest: Permission denied
You do not have access to /dev/input/event0. Try running as root instead.
rarity input > sudo !!
rarity input > sudo evtest
No device specified, trying to scan all of /dev/input/event*
@Xe
Xe / tor
Created January 21, 2014 14:46
#! /bin/bash
### BEGIN INIT INFO
# Provides: tor
# Required-Start: $local_fs $remote_fs $network $named $time
# Required-Stop: $local_fs $remote_fs $network $named $time
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6