Skip to content

Instantly share code, notes, and snippets.

View prologic's full-sized avatar
👋
Principal SRE, Founder of Yarn.social and Salty.im

James Mills prologic

👋
Principal SRE, Founder of Yarn.social and Salty.im
View GitHub Profile
bash-4.3# cat /boot/menu.lst
search --no-floppy --fs-uuid --set=root 8503f5d8-d5b3-4d06-8679-ee5ad2008c95
terminal_output gfxterm
set timeout=5
menuentry "CRUX" {
linux /boot/vmlinuz root=PARTUUID=8503f5d8-d5b3-4d06-8679-ee5ad2008c95 ro
}
bash-4.3# grub-install /dev/disk/by-id/usb-058f_6387_14100601008789-0\:0
bash-4.3# cat /boot/menu.lst
search --no-floppy --fs-uuid --set=root 8503f5d8-d5b3-4d06-8679-ee5ad2008c95
terminal_output gfxterm
set timeout=5
menuentry "CRUX" {
linux /boot/vmlinuz root=PARTUUID=8503f5d8-d5b3-4d06-8679-ee5ad2008c95 ro
}
bash-4.3# grub-install /dev/disk/by-id/usb-058f_6387_14100601008789-0\:0
@prologic
prologic / gist:80d885053e2e81e06023
Created January 18, 2015 01:39
created by github.com/tr3buchet/gister
bash-4.3# cat /etc/lilo.conf
#
# /etc/lilo.conf: lilo(8) configuration, see lilo.conf(5)
#
lba32
install=text
boot="/dev/disk/by-id/usb-058f_6387_14100601008789-0:0"
image=/boot/vmlinuz
label=CRUX
prologic@daisy
Sat Jan 17 18:53:51
~/var/iso
$ burncd crux-3.1-updated.iso
TOC Type: 1 = CD-ROM
scsidev: '/dev/cdrom'
devname: '/dev/cdrom'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
➜ ~ ls -lagd /var/lib/pip
drwxr-xr-x 5 1000 69632 Jan 12 08:30 /var/lib/pip
➜ ~ ls -lagd /var/lib/pip/http
drwxrwxr-x 10 1000 4096 Jan 12 09:07 /var/lib/pip/http
➜ ~ id
uid=500(vagrant) gid=500(vagrant) groups=500(vagrant),10(wheel),494(supervisor)
➜ ~ whoami
vagrant
➜ ~ touch /var/lib/pip/foo
➜ ~ ls -lagd /var/lib/pip/foo
@prologic
prologic / setup.sh
Created January 9, 2015 04:46
created by github.com/tr3buchet/gister
#!/bin/bash
# Upgrade pip
pip install -U pip
# Install wheel
pip install wheel
# Install virtualenvwrapper
pip install virtualenvwrapper
@prologic
prologic / setup.sh
Created January 9, 2015 04:45
created by github.com/tr3buchet/gister
#!/bin/bash
# Install supervisor
pip install supervisor
# Create configuration and log directories
mkdir -p /etc/supervisor.d /var/log/supervisor
# Copy default configuration
cp supervisord.conf /etc/
Traceback (most recent call last):
File "./hole.py", line 177, in <module>
main()
File "./hole.py", line 173, in main
App(parse_args()).run()
File "/home/prologic/.virtualenvs/hole/lib/python2.7/site-packages/circuits/core/components.py", line 125, in __init__
self.init(*args, **kwargs)
File "./hole.py", line 81, in init
self.createui()
File "./hole.py", line 101, in createui
@prologic
prologic / Accessing Session Data
Created December 29, 2014 03:57
Sessions with cgod (circuits Gopher Daemon)
(cgod)
prologic@daisy
Mon Dec 29 13:10:40
~/cgod
$ curl -q -o - gopher://arrow.shortcircuit.net.au/0/session+UQoqbbtpvikDPbVKCUDE3F
iSession ID: UQoqbbtpvikDPbVKCUDE3F null.host 0
i null.host 0
iSession Data: null.host 0
(cgod)
@prologic
prologic / gist:b564a197e8623cf70395
Created December 16, 2014 23:24
created by github.com/tr3buchet/gister
prologic@daisy
Wed Dec 17 09:25:39
~
$ echo "/1sandbox" | nc gopher.veroneau.net 70
3file not found fake (NULL) 0
.
prologic@daisy
Wed Dec 17 09:26:11
~