This file contains hidden or 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
import sys,os | |
def CheckSDLLib(context): | |
""" | |
On Mac OS X, SDL seems to use the same ugly trick | |
it uses on Windows (redefining main() with SDLmain). | |
This wrecks CheckLibWithHeader() who creates a very simple | |
main(), which unfortunately won't match the prototype in SDL_main.h, | |
thus causing the check to fail. Boo! | |
No idea why it actually worked on Windows, though. |
This file contains hidden or 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
for i in `find /var/www -name wp-admin -type d` ; do unset host ; unset dir ; host=$(echo $i | cut -d '/' -f4) && echo -n ${host:?NOHOST} && dir=$(echo $i | sed 's/^\/var\/www\/[^/]\+\/htdocs\(\/[^/]*\)\/\?wp-admin/\1/') && echo ${dir:?NODIR} && sudo webapp-config -U -h ${host} -d $([[ ${dir} = "/" ]] && echo "/") ${dir#/} wordpress 3.0.5 ; if [ $? -ne 0 ] ; then logger -s -- "Webapp-Upgrade FAILED: $host -> $dir" ; fi ; done |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Toggle CPU performance in a binary fashion. | |
# Alexandre Gauthier 2011-2012 | |
# | |
# Done out of disgust at how the example shell script in one of these | |
# "language-du-jour is better than a shell script" talks. | |
# | |
# Requirements --> | |
# Toggle the sysctl value of hw.setperf between '0' and '100'. | |
# Talk implied little error checking was done in shell scripts, which |
This file contains hidden or 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
Forums are 100% metamoderated | |
There are no privileged users or roles. | |
Votes are kept secret as well as their values, at all times. | |
You create one indentity as you login. | |
Authentication through SSO (openID/Facebook/Twitter...) | |
Login is done entirely through OpenID and requires no user data. | |
Each login must be /unique/. | |
All posts are anonymous but they affect mana | |
You get a new avatar for each unique thread you post in | |
Avatars only exist in the context of a thread. |
This file contains hidden or 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
from web.core import Controller | |
class RootController(Controller): | |
def index(self): | |
return 'Hello world!' | |
if __name__ == '__main__': | |
import logging | |
from paste import httpserver | |
from web.core import Application |
This file contains hidden or 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
14:38 <%mr_daemon> I really want to put all my (rather terrible) programming skills in Python right now, even if that means giving up Java momentarily. | |
14:39 <%mr_daemon> Because I fucking love Python, and I don't get to use it nearly enough to develop great skills | |
14:40 <@KniPhone> Python is so kawaii. | |
14:40 <@KniPhone> EVERYTHING SHOULD BE PYTHON | |
14:40 <@KniPhone> EVEN REALITY | |
14:41 <%mr_daemon> Well it's not suitable for some things | |
14:41 <%mr_daemon> but with ardeo I will be trying to blatantly ignore that | |
14:41 <@KniPhone> SUITABLE FOR EVERYTHING | |
14:41 <@KniPhone> :( | |
14:43 <%mr_daemon> It has a GIL |
This file contains hidden or 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
# $DOTFILESREPOS should be defined by now. | |
# Let's still make an extra effort because it is most useful. | |
if [-z "$DOTFILES"] ; then | |
# ZOMG env var not found. I suspect a failing .boostrap.rc | |
# or some similar horror. Let's manually load the cache. | |
echo -n "PROFILE: WARNING DOTFILES not exported?" 1>&2 | |
if [ -f "$HOME/.bootstrap.rc.cache" ] ; then | |
. "$HOME/.bootstrap.rc.cache" | |
# Check if cache contained proper value |
This file contains hidden or 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
#!/bin/bash | |
#------------------------------------------------------------------------------ | |
# startx-ssh-nested | |
# | |
# Remote connect to 'kitsune.underwares.org' in a nested X server (Xephyr), | |
# tunelling everything through ssh. It's no NX but in a pinch, it will work. | |
# | |
# Copyright (C) 2011-2012, Alexandre Gauthier <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or 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
# Dee's tmux configuration file | |
# start window indexing at one instead of zero | |
set -g base-index 1 | |
# Bell in any window results in term bell | |
set -g bell-action any | |
# Home as default path | |
set -g default-path ~/ |
This file contains hidden or 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
for i in `find /var/www -name wp-admin -type d` ; do unset host ; unset dir ; host=$(echo $i | cut -d '/' -f4) && echo -n ${host:?NOHOST} && dir=$(echo $i | sed 's/^\/var\/www\/[^/]\+\/htdocs\(\/[^/]*\)\/\?wp-admin/\1/') && echo ${dir:?NODIR} && sudo webapp-config -U -h ${host} -d $([[ ${dir} = "/" ]] && echo "/") ${dir#/} wordpress 3.0.5 ; if [ $? -ne 0 ] ; then logger -s -- "Webapp-Upgrade FAILED: $host -> $dir" ; fi ; done |