Skip to content

Instantly share code, notes, and snippets.

View gammy's full-sized avatar

gammy gammy

  • Stockholm
View GitHub Profile
/cdrom/sol_9_905_sparc/s5 on /vol/dev/dsk/c0t2d0/sol_9_905_sparc/s5 read only/nosuid/intr/largefiles/xattr/onerror=panic/dev=16c0006 on Thu Jul 30 16:57:41 2015
/cdrom/sol_9_905_sparc/s4 on /vol/dev/dsk/c0t2d0/sol_9_905_sparc/s4 read only/nosuid/intr/largefiles/xattr/onerror=panic/dev=16c0005 on Thu Jul 30 16:57:41 2015
/cdrom/sol_9_905_sparc/s3 on /vol/dev/dsk/c0t2d0/sol_9_905_sparc/s3 read only/nosuid/intr/largefiles/xattr/onerror=panic/dev=16c0004 on Thu Jul 30 16:57:42 2015
/cdrom/sol_9_905_sparc/s2 on /vol/dev/dsk/c0t2d0/sol_9_905_sparc/s2 read only/nosuid/intr/largefiles/xattr/onerror=panic/dev=16c0003 on Thu Jul 30 16:57:42 2015
/cdrom/sol_9_905_sparc/s1 on /vol/dev/dsk/c0t2d0/sol_9_905_sparc/s1 read only/nosuid/intr/largefiles/xattr/onerror=panic/dev=16c0002 on Thu Jul 30 16:57:42 2015
/cdrom/sol_9_905_sparc/s0 on /vol/dev/dsk/c0t2d0/sol_9_905_sparc/s0 read only/nosuid/maplcase/noglobal/rr/traildot/dev=16c0001 on Thu Jul 30 16:57:43 2015
@gammy
gammy / gist:54c352e244ca20c8f172
Created July 21, 2015 12:29
Building Dillo on Solaris 9
This is hacky as fuck.
-------------------------------------------------------
Stuck on this:
gammy@charlie:~/packages/src/dillo/dillo-3.0.5$ readelf --symbol setenv_test.o | grep UND
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
8: 00000000 0 NOTYPE GLOBAL DEFAULT UND setenv
gammy@charlie:~/packages/src/dillo/dillo-3.0.5$
gammy@charlie:~/packages/src/dillo/dillo-3.0.5$ ./configure --prefix=/export/home/gammy/dillo_prefix/
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD-compatible install... /opt/csw/gnu//install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/csw/gnu//mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
@gammy
gammy / gist:1b1af3133de79dfe2a05
Last active August 29, 2015 14:25
Window dimensions, balcony
80x180 80x190 80x190 80x180 60x180 80x150
|--------|--------|--------|--------| |------| |--------|
|--------|--------|--------|--------| |------| |--------|
|--------|--------|--------|--------| |------| |--------|
|--------|--------|--------|--------| |------| |--------|
|--------|--------|--------|--------| |------| |--------|
|--------|--------|--------|--------| |------| |--------|
| | | | | | |
|--------|--------|--------|--------| |------|
Interesting key points of "agile" development methods
- Inspect and adapt
Incremental change -> Revision -> Repeat:
While the specification might be 'rigid', the implementation
plan is continually revised.
- Short "work cycles" allows for revisions of the original spec
without large amounts of time being invested in the wrong place
filename="foo"
sample_period=5s;
old_size=$(stat --format="%s" "$filename")
sleep "$sample_period"
new_size=$(stat --format="%s" "$filename")
if [ "$new_size" -ne "$old_size" ]; then
echo "Changed"
fi
#!/usr/bin/bash
in=$1
out=$2
steps=$3
if [ -z "$in" -o -z "$out" -o -z "$steps" ]; then
me=$(basename $0)
echo "Usage: $me <inputfile> <outputfile> <steps>" >&2
echo "Example: $me in.png out.gif 20" >&2
exit 1
@gammy
gammy / lasercode.pl
Created May 20, 2015 13:53
lasercode.pl
#!/usr/bin/perl
# lasercode, a single-user IRC proxy for transparently handling encrirc-like
# encryption.
# Authors: #laserboy
# Try to aim for backwards compatability in some fashion
# Think portability and reusability
# BUGS:
# - TOPIC is supported, but the server truncs the message to 160 chars
@gammy
gammy / gist:90ae410f5c6ff67daee1
Last active August 29, 2015 14:21
ABC80 Video / Power connector
(Cable-side, Female)
+---------+
-17V | A1 | B1 ( +17V
+9V | A2 | B2 | 0 (17V)
0 (9V) ( A3 | B3 | 0 (9V)
- | A4 | B4 | -
- | A5 | B5 | LF+AF
Sync | A6 | B6 ( Video
+---------+
class dog():
name = None
def __init__(self, name):
self.name = name
def bark(self):
return(self.name + ": arf arf!")
def puke(self):