This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fixture = new ArrayObject( array( | |
'a', | |
'b', | |
'c', | |
) ); | |
unset( $fixture[1] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"http" | |
"regexp" | |
/*"io"*/ | |
"log" | |
"fcgi" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"http" | |
"regexp" | |
/*"io"*/ | |
"log" | |
"fcgi" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"http" | |
"http/fcgi" | |
"log" | |
) | |
func main() { | |
handler, err := fcgi.Handler([]fcgi.Dialer{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"http" | |
"regexp" | |
"strings" | |
"log" | |
"fmt" | |
"fcgi" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
OlderNewer