Skip to content

Instantly share code, notes, and snippets.

#Botdom
21:50:19 <Kyogo> ...and then you realized that, in reality, this is all a dream. deviantART doesn't exist, never has, and never will. And fella was simply the teddie bear you sleep with every night.
21:50:57 <Pickley> <,<
21:51:08 <Pickley> Is my 4000$ imaginary
21:51:14 <Pickley> It must be.
21:51:18 <Pickley> this is all a dream...
21:51:26 <HidekiRyuuzaki> HOLD IT
21:51:37 <HidekiRyuuzaki> If Da dosen't exist...explain the existence of this room!
21:51:43 <HidekiRyuuzaki> dA*
####################################################
# Ouroboros, the simple IRC bot! #
# #
# Author: Justin Eittreim #
# Contact: eittreim.justin@live.com #
# Web: http://DivinityArcane.deviantart.com/ #
# #
# Python version: 3.2 (May work in lower versions.)#
####################################################
@DivinityArcane
DivinityArcane / dAmnPacket.pm
Created November 2, 2012 02:20
Perl dAmnPacker parser.
# Perl dAmnPacket parser - Part of dAmnPearl
# Author: Justin Eittreim <eittreim.justin@live.com>
# Date: Wed Oct 31 2012 23:59
package dAmnPacket;
sub parse {
my $packet = $_[0];
my %self = ();
$self{command} = '';
@DivinityArcane
DivinityArcane / gist:3998896
Created November 2, 2012 05:25
dAmnPearl's tablump parser
sub tablumps {
my $string = $_[0];
# Dev links
$string =~ s/&dev\t([^\t])\t([^\t]+)\t/:dev$2:/g;
# Icons
$string =~ s/&avatar\t([^\t]+)\t([^\t]+)\t/:icon$1:/g;
# Abbr/Acronym
@DivinityArcane
DivinityArcane / bootsect.asm
Created December 12, 2012 06:16
A simple bootsector/OS.
; Simple NASM bootloader, or OS, if you please.
; Boots up and displays a black screen, and prints a message.
[ORG 0x7C00] ; Specify where to load the code.
msg: db 'Hello!' ; Define the msg.
len: equ $-msg ; Define the msg length.
; Create our "PRINT" function, which takes two arguments:
; 1: The message
#include <stdio.h>
size_t strlen(const char *__s);
char* strstr(const char *__haystack, const char *__needle);
char* strcpy(char* __dest, const char* __src);
char* strncpy(char* __dest, const char* __src, size_t __n);
void* malloc(size_t __size);
void* memcpy(void* __dest, const void* __src, size_t __n);
// This is supposed to be simple, no negative positions, etc.
@DivinityArcane
DivinityArcane / 8bit_adder.py
Last active December 10, 2015 11:09
Because why not.
_hex = {'0':0, '1':1, '2':2, '3':3, '4':4, '5':5,
'6':6, '7':7, '8':8, '9':9, 'A':10, 'B':11,
'C':12, 'D':13, 'E':14, 'F':15}
def bit(n1, n2):
if str(n1).upper() not in _hex:
raise ValueError('Invalid n1')
elif str(n2).upper() not in _hex:
raise ValueError('Invalid n2')
@DivinityArcane
DivinityArcane / httpd.php
Created February 5, 2013 07:01
For lulz and testing out crap. :D
<?php
class httpd
{
private $sock = null;
private function http_response($client, $code, $err)
{
socket_write($client, "HTTP/1.1 $code $err\r\nContent-type: text/plain\r\n\r\n");
}
@DivinityArcane
DivinityArcane / httpd.py
Last active December 12, 2015 04:18
Whoops.
''' Simple Python HTTPD (Webpage Server)
- Justin Eittreim <eittreim.justin@live.com>
- http://DivinityArcane.deviantart.com/
- :) '''
import sys
pyver = float(sys.version[:3])
from socket import socket, AF_INET, SOCK_STREAM
@DivinityArcane
DivinityArcane / bot.go
Last active December 12, 2015 07:08
Boredom.
// A very simple dAmn bot in Go
// - Justin Eittreim <eittreim.justin@live.com>
// - http://DivinityArcane.deviantart.com/
package main
import (
"fmt"
"net"
"runtime"