Skip to content

Instantly share code, notes, and snippets.

View therealromster's full-sized avatar

therealromster

View GitHub Profile
@therealromster
therealromster / gist:30df800881c32b316a9d
Created December 5, 2014 02:11
firefox version sort
$ for url in $(lsurl.py ftp://ftp.mozilla.org/pub/firefox/releases/ | egrep '/[3-9]{1}[0-9]+[0-9.]+$' | xargs); do lsurl.py --common-ext $url/source/; done | filter-tool.py --show-ranking --show-failed --print-sorted
ftp://ftp.mozilla.org/pub/firefox/releases/34.0.5/source/firefox-34.0.5.source.tar.bz2 firefox 34.0.5
ftp://ftp.mozilla.org/pub/firefox/releases/34.0/source/firefox-34.0.source.tar.bz2 firefox 34.0
ftp://ftp.mozilla.org/pub/firefox/releases/33.1.1/source/firefox-33.1.1.source.tar.bz2 firefox 33.1.1
ftp://ftp.mozilla.org/pub/firefox/releases/33.1/source/firefox-33.1.source.tar.bz2 firefox 33.1
ftp://ftp.mozilla.org/pub/firefox/releases/33.0.3/source/firefox-33.0.3.source.tar.bz2 firefox 33.0.3
ftp://ftp.mozilla.org/pub/firefox/releases/33.0.2/source/firefox-33.0.2.source.tar.bz2 firefox 33.0.2
ftp://ftp.mozilla.org/pub/firefox/releases/33.0.1/source/firefox-33.0.1.source.tar.bz2 firefox 33.0.1
ftp://ftp.mozilla.org/pub/firefox/releases/33.0/source/firefox-33.0.source.tar.bz2 firefox 33.0
@therealromster
therealromster / gist:e30c9e9fcd1c6a3aafd7
Created December 13, 2014 11:29
version sort generate ffmpeg
version=#exec lsurl.py --common-ext http://ffmpeg.org/releases/ | filter-tool.py --show-ranking --show-failed --print-sorted --head 1 | awk 'NF {print $3}'
$ ./generate
# [filter-tool] ffmpeg: omitted 324 more line(s) due to --head
# [filter-tool] failed lines are:
# [filter-tool] http://ffmpeg.org/releases/ffmpeg-snapshot-git.tar.bz2
# [filter-tool] http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
# [filter-tool] Matching rules by popularity:
$ docker run -i -t crux
Unable to find image 'crux:latest' locally
crux:latest: The image you are pulling has been verified
511136ea3c5a: Pull complete
e1c4fee8ca32: Pull complete
7a73a3cc03b3: Pull complete
Status: Downloaded newer image for crux:latest
setup mount namespace mount system mounting mqueue into /var/lib/docker/devicemapper/mnt/94a49153176c22d5880f9ad930813a16a1c84a694676d6d96096f3123fd4bbac/rootfs/dev/mqueue no such deviceFATA[0561] Error response from daemon: Cannot start container 94a49153176c22d5880f9ad930813a16a1c84a694676d6d96096f3123fd4bbac: setup mount namespace mount system mounting mqueue into /var/lib/docker/devicemapper/mnt/94a49153176c22d5880f9ad930813a16a1c84a694676d6d96096f3123fd4bbac/rootfs/dev/mqueue no such device
@therealromster
therealromster / gist:fc250082c60e0eac2b67
Created January 12, 2015 01:42
CRUX distfile download on non-crux server
sudo ports -u
cd /usr/ports
for p in core opt xorg contrib compat-32 romster; do
cd /usr/ports/$p
pkg-url > /tmp/$p.list
cd -
done
scp /tmp/{core,opt,xorg,contrib,compat-32,romster}.list host:~/public_html/...
(gdb) run info --installed
Starting program: /usr/ports/metagear/pkg info --installed
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
acl
2.2.52-1
[Inferior 1 (process 14352) exited normally]
--- opt/samba/Pkgfile 2015-01-28 11:04:16.660329714 +0000
+++ opt.new/samba/Pkgfile 2015-01-28 11:02:54.826332075 +0000
@@ -2,7 +2,7 @@
# URL: http://www.samba.org
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Packager: Juergen Daubert, jue at crux dot nu
-# Depends on: ncurses openssl readline zlib libcap acl libaio popt p5-parse-yapp krb5 ldb ntdb iniparser subunit py-subunit
+# Depends on: iniparser krb5 ldb libaio libcap ntdb p5-parse-yapp py-subunit subunit
# Optional: cups
=======> ERROR: Footprint mismatch found:
MISSING -rwxr-xr-x root/root usr/bin/bluez-agent
MISSING -rwxr-xr-x root/root usr/bin/bluez-attest
MISSING -rwxr-xr-x root/root usr/bin/bluez-avtest
MISSING -rwxr-xr-x root/root usr/bin/bluez-btiotest
MISSING -rwxr-xr-x root/root usr/bin/bluez-gaptest
MISSING -rwxr-xr-x root/root usr/bin/bluez-hstest
MISSING -rwxr-xr-x root/root usr/bin/bluez-ipctest
MISSING -rwxr-xr-x root/root usr/bin/bluez-lmptest
MISSING -rwxr-xr-x root/root usr/bin/bluez-mpris-player
# finddeps bluez
eudev (core)
glibc (core)
libpcre (core)
libusb (core)
libusb-compat (core)
ncurses (core)
readline (core)
alsa-lib (opt)
dbus (opt)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| romster |
| test |
+--------------------+
3 rows in set (0.31 sec)
@therealromster
therealromster / gist:d664291b8e684611eb7d
Created February 9, 2015 07:44
quick code snippet to list ports i maintain from deptree foo in crux.
$ for p in `prt-get quickdep wine`; do if [ -n "`prt-get info $p | egrep 'Maintainer:.*Danny Rawlins'`" ]; then echo $p; fi; done
elfutils
libxslt
prelink
freeglut
wine
$ for p in `prt-get quickdep skype`; do if [ -n "`prt-get info $p | egrep 'Maintainer:.*Danny Rawlins'`" ]; then echo $p; fi; done
libvisual
orc