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/perl -w | |
# deps | |
use strict; | |
use warnings; | |
use Getopt::Std; | |
require RPC::XML; | |
require RPC::XML::Client; | |
use File::Slurp; | |
my $satisfied = 0; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
/* If you're using Windows, OSX, or OpenVZ, it's recommended you get grepline | |
* You can find it here https://github.com/grepwood/grepline */ |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <SDL2/SDL.h> | |
#include <dataio/BigEndian.h> | |
#include <acm/libacm.h> | |
/* Written circa 2014 by [email protected] */ | |
/* This program will utilize libacm and some string logic |
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
# Copyright 1999-2014 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.15-r4.ebuild,v 1.12 2014/05/15 16:15:03 ulm Exp $ | |
EAPI=5 | |
inherit autotools flag-o-matic multilib toolchain-funcs eutils | |
DESCRIPTION="Simple Direct Media Layer" | |
HOMEPAGE="http://www.libsdl.org/" | |
SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz" |
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 | |
# This script depends on another script that compiles a patched Linux kernel | |
# If in doubt, just | |
# mkdir -p /home/ftp/ps3 | |
# curl https://sucs.org/~grepwood/ps3/linux/kernels/tycho-3.15.10.tar.xz > /home/ftp/ps3/tycho-latest.tar.xz | |
JOB_PID=$$ | |
curl https://www.debian.org/CD/netinst/ > index.html.$JOB_PID | |
ISO_URL=`grep powerpc index.html.$JOB_PID | grep -v torrent | sed 's/\">powerpc.*//' | sed 's/.*href=\"//'` | |
rm -f index.html.$JOB_PID | |
ISO_FILE=`echo $ISO_URL | sed 's/.*\/iso-cd\///'` |
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 | |
# rbenv system wide installation script | |
# Forked from https://gist.github.com/jpfuentes2/2002954 | |
JOB_PID=$$ | |
# Installs rbenv system wide on CentOS 5/6 and Debian, also allows single user installs. | |
if command -v yum >/dev/null 2>&1; then | |
DISTRO="Redhat" | |
elif command -v aptitude >/dev/null 2>&1; then |
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 | |
CURRENT_KERNEL=`uname -r` | |
OLD_KERNELS=`ls /usr/src/ -l | grep -v ">"| awk '{print $9}' | grep linux | grep -v $CURRENT_KERNEL | sed -r 's/^.{6}//'` | |
AMOUNT_OF_OLD_KERNELS=`ls /usr/src/ -l | grep -v ">" | awk '{print $9}' | grep linux | grep -v $CURRENT_KERNEL | wc -l` | |
echo "Amount of kernels to get rid of: $AMOUNT_OF_OLD_KERNELS" | |
for (( COUNTER=0; COUNTER<$AMOUNT_OF_OLD_KERNELS; COUNTER++ )) | |
do | |
HEAD=$((COUNTER+1)) | |
DIR=`ls /usr/src/ -l | grep -v ">" | awk '{print $9}' | grep linux | grep -v $CURRENT_KERNEL | head -n$HEAD | tail -n1` | |
echo -ne "Fetching package name of kernel #$HEAD... " |
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 | |
USER=`whoami` | |
if [ "$USER" != "root" ]; then | |
echo "Must be run as root or sudo." | |
else | |
cd /var/qmail | |
service smtp stop | |
# service send stop | |
ENTIRE_DATE=`date -R` | |
YEAR=`echo $ENTIRE_DATE | awk '{print $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
#!/bin/bash | |
# Hi I am grepwood, this is OpenTTD, and this - is Jackass | |
# Before we begin proper, let's define ourselves some functions because we like to keep it simple | |
function compile { | |
DESIRED_VERSION=$1 | |
TARBALL_FILE="openttd-$DESIRED_VERSION-source.tar.xz" # XZ, because we like our bandwidth | |
TARBALL_LINK="http://binaries.openttd.org/releases/$DESIRED_VERSION/$TARBALL_FILE" | |
COMPILE_OPTIONS="--prefix-dir=/usr/local --enable-profiling --enable-lto --enable-dedicated --with-liblzma --without-liblzo2 --with-threads" | |
CFLAGS="-march=native -O2 -pipe" | |
OBS=`cat /proc/cpuinfo | grep vendor_id | wc -l` |
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
/* Written by Michael Dec <[email protected]> | |
* Language detection of Morrowind gamedata | |
*/ | |
structure LDesc_struct | |
{ | |
unsigned char code; /* Fingers crossed Morrowind wasn't translated to more than 255 languages */ | |
char desc[32]; /* 32 bytes in the .esm that indicate what language this is */ | |
}; |