This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jnr.posix.*; | |
import jnr.constants.platform.*; | |
import java.io.*; | |
public class Fun { | |
public static void main(String[] args) throws Segfault { | |
throw new Segfault(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 ./commands/microwave.py | |
108 ./helpers/command.py | |
115 ./commands/weather.py | |
117 ./commands/quote.py | |
139 ./helpers/server.py | |
221 ./bot.py | |
222 ./commands/vote.py | |
235 ./helpers/control.py | |
459 ./handler.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
set -o pipefail | |
TOPDIR=`pwd` | |
BUILD=`/usr/share/gnuconfig/config.guess` | |
HOST=$1 | |
TARGET=$2 | |
HOST_DIR=$TOPDIR/$HOST | |
TARGET_DIR=$TOPDIR/$TARGET | |
CROSS_DIR=$TOPDIR/cross-$HOST-$TARGET | |
export HOSTARCH=`echo $HOST | sed 's/-.*//'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
set -o pipefail | |
TOPDIR=`pwd` | |
BUILD=`/usr/share/gnuconfig/config.guess` | |
TARGET=$1 | |
DIR=$TOPDIR/$TARGET | |
export ARCH=`echo $TARGET | sed 's/-.*//'` | |
if test -z $TARGET; then | |
echo "Error: must specify target" | |
echo "Usage: ./cross.sh alpha-linux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIRROR="distfiles.gentoo.org" | |
ISO=`wget -q -O - http://$MIRROR/releases/amd64/autobuilds/latest-iso.txt | grep -v \# | sed "s#/.*##"` | |
wget -N http://$MIRROR/releases/amd64/autobuilds/$ISO/install-amd64-minimal-$ISO.iso | |
7z e -y install-amd64-minimal-$ISO.iso image.squashfs isolinux/gentoo isolinux/gentoo.igz | |
read -p "Enter block device to format (blank to skip): " DEV | |
if ! test -z $DEV; then | |
[ `id -u` != 0 ] && echo "must be root" && exit | |
dd if=/dev/zero of=/dev/$DEV bs=512 count=1 | |
parted /dev/$DEV mklabel msdos | |
parted /dev/$DEV mkpart primary 0% 100% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
dbname="msbob" | |
sqlite3 db.sqlite .dump >dump | |
sed -i -e "/PRAGMA/d" -e "/sqlite_sequence/d" -e "s/INTEGER PRIMARY KEY AUTOINCREMENT/SERIAL PRIMARY KEY/g" dump | |
dropdb --if-exists $dbname | |
createdb -O ircbot $dbname | |
cat dump | psql -U ircbot -q $dbname | |
rm dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import gssapi | |
import ldap3 | |
from ldap3.protocol.sasl.sasl import send_sasl_negotiation, abort_sasl_negotiation | |
NO_SECURITY_LAYER = 1 | |
INTEGRITY_PROTECTION = 2 | |
CONFIDENTIALITY_PROTECTION = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import ldap3 | |
if __name__ == '__main__': | |
import ssl | |
# ssl.CERT_REQUIRED | |
tls = ldap3.Tls(validate=ssl.CERT_NONE, version=ssl.PROTOCOL_TLSv1_2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import sys | |
import time | |
from configparser import ConfigParser | |
from irc.client import SimpleIRCClient | |
class IrcClient(SimpleIRCClient): | |
def __init__(self, nick, config): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'read -s -n 1 -t 5 -p "Press any key to exit" && exit | |
/stage1.sh |& tee log | |
chroot /mnt/gentoo /stage2.sh |& tee -a log | |
mv log /mnt/gentoo | |
rm /mnt/gentoo/stage2.sh | |
init 0' >> etc/local.d/auto.start | |
chmod +x etc/local.d/auto.start | |
cp mnt/cdrom/stage*.sh . |
OlderNewer