Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kroq-gar78
kroq-gar78 / keybase.md
Created December 26, 2020 00:34
Keybase proof

Keybase proof

I hereby claim:

  • I am kroq-gar78 on github.
  • I am avaidya (https://keybase.io/avaidya) on keybase.
  • I have a public key ASBjT7Re0_em3xNpbzHLiYWlMTDcPWR86if_oNmtFFAn8wo

To claim this, I am signing this object:

@kroq-gar78
kroq-gar78 / get-package-urls.sh
Created December 9, 2013 16:47
Get package URLs from a list of packages from a certain Ubuntu/Debian repository. Used for a manual method of apt-mirroring (apt-cacher-ng)
#!/bin/sh
# retrieves all package URLs for i386 and amd64 architectures
PKGLIST=$1 # lists can be found at http://us.archive.ubuntu.com/ubuntu/indices/
OUTFILE=$2
# get all URLs for i386
#for i in `cat $PKGLIST|awk '{print $1}'|sed -e 's/$/:i386/'`
for i in `cat $PKGLIST|awk '{print $1}'`
@kroq-gar78
kroq-gar78 / teswiki-dup-refs.sh
Last active December 17, 2015 12:19
Duplicate references finder for Wikis from an input file
#!/bin/bash
cat $1 | sed -r "s/^ +↑ //g;s/[0-9]+\.[0-9]+\ //g;s/\ +$//g" | perl -ne 'print if $SEEN{$_}++'
@kroq-gar78
kroq-gar78 / teswiki-stub-megascript.sh
Last active December 11, 2015 19:08
The Elder Scrolls Wiki stub Megaswitch maker
#!/bin/bash -eu
# This script should generate the Megaswitch for the banner message and
# categories [[Template:Stub]] on the Elder Scrolls Wiki (http://elderscrolls.wikia.com/Template:Stub)
#
# Currently, it's at Template:TestTemplate (for testing, duh.)
cat="[[Category:"
stub="Stub]]"
stubs="Stubs]]"
@kroq-gar78
kroq-gar78 / build-gimp-git.sh
Created April 22, 2012 17:02 — forked from strycore/build-gimp-git.sh
Gimp git installer script for Ubuntu
#!/bin/bash
# Resources
# http://www.gimpusers.com/tutorials/compiling-gimp-for-ubuntu
# http://ubuntuforums.org/showthread.php?p=11818979
#
sudo apt-get build-dep gimp
sudo apt-get install libjpeg62-dev libopenexr-dev librsvg2-dev libtiff4-dev
mkdir gimp_build && cd gimp_build