Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mcilloni on github.
  • I am mcilloni (https://keybase.io/mcilloni) on keybase.
  • I have a public key whose fingerprint is 4939 24AC B372 5960 FC76 F622 3081 C1F5 7C11 BEB1

To claim this, I am signing this object:

#!/usr/bin/env fish
function usage
echo "Usage: gcc-alias [on|off]"
end
if test (count $argv) -ne 1
usage
exit 1
end
@mcilloni
mcilloni / purge.fish
Created December 15, 2014 15:37
Removes comics sans from PDF files inside the current directory, replacing it with Helvetica.
#!/usr/bin/env fish
set OUTDIR "$PWD/out"
and mkdir -p $OUTDIR
function decomicsansify -d 'Removes that horrible crap'
grep -Rl ComicSansMS | while read TOPURGE
echo Purging $TOPURGE
sed -i s/ComicSansMS/Helvetica/g $TOPURGE
end
@mcilloni
mcilloni / musl-clang
Last active August 29, 2015 14:02
My musl-clang wrapper script. Change my paths with your paths if needed.
#!/usr/bin/env bash
containsElement () {
local e
for e in "${@:1}"; do [[ "$e" == "$2" ]] && return 0; done
return 1
}
PARAMS="-nostdinc -isystem /usr/musl/include/ "
if containsElement @ '-c' || containsElement @ '-S'; then
@mcilloni
mcilloni / list.helm
Last active August 29, 2015 14:00
Helm linked list sample (see http://github.com/mcilloni/first-step )
# This file is part of First Step.
#
# First Step is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# First Step is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License