Skip to content

Instantly share code, notes, and snippets.

View Xe's full-sized avatar
😂
h

Xe Iaso Xe

😂
h
View GitHub Profile

General or Things PonyChat Can Fix

  • RFC 1459 (plus IRCv3 caps) gateway (allow existing IRC clients/bots to be seamlessly connect to Matrix instead of elemental-ircd)
    • Underway as Project Morpheus
    • Client scripts to use some of the newer features
    • Have it emulate unrealircd
  • Comprehensive migration documentation for people wanting to use the new thing
    • Blogposts!
  • How common irc-isms translate to Matrix-isms
from util import hook
import requests, re
@hook.command
def printerfact(inp, say=None):
r = requests.get('https://catfacts-api.appspot.com/api/facts?number=1')
fact = r.json()['facts'][0]
regex = re.compile(re.escape("cat"), re.IGNORECASE)
return regex.sub("printer", fact)
----------[4.907]
~tasfyn-partyv= a private conversation makes me think of trust graphs
~tasfyn-partyv= should we obey an order we get over the network?
~tasfyn-partyv= appliances shouldn't decide this on their own
----------[4.910]
~tasfyn-partyv= they need a system service that maps sender to trust
~tasfyn-partyv= where trust level is, say, 0 == enemy, 3 == absolute
~tasfyn-partyv= also for security, we need an installation bit
~tasfyn-partyv= which is roughly: trusted or untrusted appliance
~tasfyn-partyv= when an untrusted appliance acts, its actions are
@Xe
Xe / dark-compact.css
Last active September 17, 2015 22:23 — forked from acous/dark-compact.css
early dark theme for Shout irc
body {
background: #333;
color: #CCC;
font: 16px Lato, sans-serif;
margin: 0;
}
#main {
background: #222;
border-radius: 0px;
bottom: 0px;
@Xe
Xe / frag32.py
Last active September 6, 2015 14:48 — forked from ryancdotorg/frag32.py
A FAT32 fragmenter, because I am a horrible person.
#!/usr/bin/env python
import random
import struct
import sys
# Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833
def ppNum(num):
return "%s (%s)" % (hex(num), num)
@Xe
Xe / Main.hs
Last active September 1, 2015 03:14
{-# LANGUAGE OverloadedStrings #-}
import System.IO.Streams (InputStream, OutputStream, stdout)
import qualified System.IO.Streams as Streams
import qualified Data.ByteString as S
import Network.Http.Client
main :: IO ()
main = do

No, You Really Can’t

By User701213-Oracle on Aug 10, 2015

Note: this was removed from Oracle's site. I thought this was so humorous that I had to share it here.

I have been doing a lot of writing recently. Some of my writing has been with my sister, with whom I write murder mysteries using the nom-de-plume Maddi Davidson. Recently, we’ve been working on short stories, developing a lot of fun new ideas for dispatching people (literarily speaking, though I think about practical applications occasionally when someone tailgates me).

Writing mysteries is a lot more fun than the other type of writing I’ve been doing. Recently, I have seen a large-ish uptick in customers reverse engineering our code to attempt to find security vulnerabilities in it. This is why I’ve been writing a lot of letters to customers that start with "hi, howzit, aloha" but end with "please comply with your license agreement and stop reverse engineering our code, already."

diff --git a/bandb/Makefile.am b/bandb/Makefile.am
index 65a7dbe..955afc1 100644
--- a/bandb/Makefile.am
+++ b/bandb/Makefile.am
@@ -8,7 +8,3 @@ bin_PROGRAMS = bandb bantool
bandb_SOURCES = bandb.c \
rsdb_snprintf.c \
rsdb_sqlite3.c
-
-bantool_SOURCES = bantool.c \
@Xe
Xe / -
Created June 13, 2015 18:51
* 100% 1) src/gotest: go build -o=../../bin/gotest .
*** tup errors ***
tup error: Missing input dependency - a file was read from, and was not specified as an input link for the command. This is an issue because the file was created from another command, and without the input link the commands may execute out of order. You should add this file as an input, since it is possible this could randomly break in the future.
- [126] src/gotest/.gitignore
*** Command ID=125 ran successfully, but tup failed to save the dependencies.
*** tup: 1 job failed.
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.001s] Reading in new environment variables...
[ tup ] [0.001s] No Tupfiles to parse.
[ tup ] [0.001s] No files to delete.
@Xe
Xe / -
Created June 13, 2015 18:50
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.001s] Reading in new environment variables...
[ tup ] [0.001s] No Tupfiles to parse.
[ tup ] [0.001s] No files to delete.
[ tup ] [0.002s] Executing Commands...