Skip to content

Instantly share code, notes, and snippets.

# Maintainer: Yochai Gal <yochaigal@gmail.com>
pkgname=supermeatboy
pkgver=06072012
pkgrel=5
pkgdesc="Super Meat Boy is a tough as nails platformer where you play as an animated cube of meat."
url="http://www.supermeatboy.com/"
license=('custom')
arch=('i686' 'x86_64')
_groups=("humble-indie-bundle4" "humble-indie-bundle5" "games")
depends=('openal' 'sdl')
@zendeavor
zendeavor / PKGBUILD
Created June 9, 2012 21:03
supermeatboy
# Maintainer: zendeavor <j.s.mcgee115@gmail.com>
# Assistance from: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Yochai Gal <yochaigal@gmail.com>
# Contributor: Yann Kaiser <kaiser.yann@gmail.com>
pkgname=supermeatboy
pkgver=20120607
_pkgver=06072012
pkgrel=10
pkgdesc="Super Meat Boy is a game where you play as a boy without skin whose girlfriend who is made of bandages gets kidnapped by a fetus in a tuxedo wearing a top hat and a monocle."
@zendeavor
zendeavor / humblepie.sh
Created June 11, 2012 09:15
HIB manager script for Archlinux
#!/usr/bin/env bash
#_humblebundletorrent=""
[[ -f PKGBUILD ]] || {
echo "This script requires the game's PKGBUILD to function."
echo "Please extract the tarball for the desired game and run this script again."
}
. PKGBUILD
_archive="source[0]%%:*"
@zendeavor
zendeavor / jpgpath
Created July 4, 2012 06:59
structure
## just a small sample of the structure
## the toplevel (relatively) is 2012/
## inside is {008..057} (and two more, 06 and 07 which lack a leading zero)
## and each numbered directory includes thousands of jpegs
## this example is perfectly representative of the entire structure
## there are no deeper directories
|-- 2012
|-- 032
| |-- 9d9cd5432a791c0ef10e6a7067003ee7.jpeg
| |-- 9d9dd483cfd7e31aff0e6a706700e4bd.jpeg
@zendeavor
zendeavor / fixsql
Created July 6, 2012 04:46
fix this damn thing
#!/bin/bash
## usage: ./script broken_sql_file path_to_images_toplevel
## `./script /foo/bar/omg_broken_imgpaths.sql /baz/quux/images/`
## a line number is optional as final argument to pick from
## the middle of the file instead of always starting over
shopt -s extglob
shopt -s nocasematch
files_path="$1"
broken="$2"
@zendeavor
zendeavor / arraytest.sh
Created July 6, 2012 19:54
funky array test
#!/bin/bash
while read -d '' -r files; do
img="${files#*2012/}"
case "$img" in
*+(jpe+(g))*)
set -x
img_name="${img##*/}"
img_name="${img_name%.*}"
echo "$img"
jpeg_dir[$img_name]=("${img}")
@zendeavor
zendeavor / gist:6017303
Last active December 19, 2015 20:59 — forked from trq/gist:6017160
# I have a command "opm" which takes, for example argument like:
# opm lfs-base/gcc-4.2 configure
#
# The first argument represents a build script in the format of <category>/<package>-<version>
#
# These build scripts are stored within /var/opm/opms/ in a structure similar to:
# .
# |-- lfs-base
# | |-- autoconf
# | | |-- 2.69.opm
@zendeavor
zendeavor / gist:6129678
Created August 1, 2013 08:52
ksh command sub quoted
$ echo $KSH_VERSION; echo "$(find . -maxdepth 1 -type d)"
Version AJM 93u+ 2012-08-01
.
./.ssh
./.config
./.weechat
./.vim
./.cache
./.mozilla
./.gnupg
RUBIES=()
${ZSH_VERSION+setopt nullglob}
for dir in "$PREFIX"/rubies/* "$HOME"/.rubies/*; do
|-------[[ -d "$dir"/bin ]] && RUBIES+=("$dir")
done
${ZSH_VERSION+setopt nonullglob}
#!/bin/sh
## The contents of this file are subject to the Mozilla Public License
## Version 1.1 (the "License"); you may not use this file except in
## compliance with the License. You may obtain a copy of the License
## at http://www.mozilla.org/MPL/
##
## Software distributed under the License is distributed on an "AS IS"
## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
## the License for the specific language governing rights and
## limitations under the License.