Skip to content

Instantly share code, notes, and snippets.

View jpic's full-sized avatar
💾
Searching for my Monkey Island II floppy disks

Yacht Shaver jpic

💾
Searching for my Monkey Island II floppy disks
View GitHub Profile
<?php
$fixture = new ArrayObject( array(
'a',
'b',
'c',
) );
unset( $fixture[1] );
package main
import (
"fmt"
"http"
"regexp"
/*"io"*/
"log"
"fcgi"
)
/*
Error:
serving on 0.0.0.0:80
Serving
panic: runtime error: invalid memory address or nil pointer dereference
panic PC=0xb74c6dcc
runtime.panic+0x97 /home/jpic/src/go/src/pkg/runtime/proc.c:1011
runtime.panic(0x0, 0x80d1b60)
package main
import (
"fmt"
"http"
"regexp"
/*"io"*/
"log"
"fcgi"
)
package main
import (
"http"
"http/fcgi"
"log"
)
func main() {
handler, err := fcgi.Handler([]fcgi.Dialer{
package main
import (
"http"
"regexp"
"strings"
"log"
"fmt"
"fcgi"
)
<?php
/*
Basically, it implements ArrayObject and reads yourRoot/cache/etc/*.php (lazily).
But when calling refresh(), it will parse all applications paths etc/*.ini,
taking priorities in account.
The section-level inheritance is trivial and implemented in parseIni(), so feel free to take that code.
*/
[root@paloma tmp]# tar xvf /var/cache/pacman/pkg/urbanterror-client-4.1-2-i686.pkg.tar.xz
.PKGINFO
opt/
opt/urbanterror/
usr/
usr/share/
usr/bin/
usr/bin/urbanterror
usr/share/applications/
usr/share/pixmaps/
@jpic
jpic / newarch
Created January 26, 2011 23:44
I use this script to install a fresh arch linux system on sda1 or sda2 from an existing arch linux system
# cat bin/newarch_rebuild.sh 14:21 ROOT@tina:~
#!/bin/bash
sdx="$1"
newroot="/$sdx"
#pacman="pacman --cachedir $newroot/var/cache/pacman/pkg -r $newroot"
pacman="pacman --noconfirm -r $newroot"
cd
umount $newroot/{proc,sys,dev,srv}
@task(ignore_result=True)
def lineup_popover_render_and_cache_all():
for id in Lineup.objects.values_list('id', flat=True):
lineup_popover_render_and_cache.delay(id)
@task(ignore_result=True)
def lineup_popover_render_and_cache(lineup_id):
lineup = Lineup.objects.get(pk=lineup_id)
# blablabla