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
#ifndef _GNU_SOURCE | |
# define _GNU_SOURCE | |
#endif | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
/* x86 | |
#if HAVE_MMX || if HAVE_SSE || if HAVE_AVX2 | |
# include <xmmintrin.h> |
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 <grepwood@sucs.org> | |
* 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 */ | |
}; |
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 | |
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 | |
# 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 | |
# 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
# 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
#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
#!/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
#!/usr/bin/perl -w | |
# Tough skin and sharp criticism ahead | |
use strict; | |
use warnings; | |
# Dependencies | |
use File::Slurp; | |
use Getopt::Std; | |
require RPC::XML; | |
require RPC::XML::Client; |
OlderNewer