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
IFS=" | |
" | |
for I in `file ~/.config/chromium/Default/*|grep SQL|cut -f1 -d:`; do echo '.dump' | sqlite3 $I > ${I}.sql && rm $I && sqlite3 $I < ${I}.sql && rm ${I}.sql ; done |
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
openssl genrsa -out domain.com.key 2048 | |
openssl req -new -keydomain.com.key.key -out domain.com.csr |
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
import os | |
import re | |
from fabric.api import lcd, hide, local, puts | |
CONTRIB_DIR = 'gallery-contrib' | |
GALLERY_REPO = 'git://github.com/gallery/gallery3.git' | |
GALLERY_CONTRIB_REPO = 'git://github.com/gallery/gallery3-contrib.git' | |
DATABASE_PREFIX = 'gallery_' |
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
ServerName localhost |
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
BIN=agile_create-repo agile_update-mirrors | |
PREFIX=/usr/local | |
install: | |
@install -v $(BIN) $(PREFIX)/bin | |
uninstall: | |
@for bin in $(BIN); do \ | |
rm -fv $(PREFIX)/bin/$$bin; \ | |
done; |
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
net.ipv4.ip_forward=1 | |
net.ipv4.conf.eth0.proxy_arp=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
#!/bin/sh | |
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' |
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
DEBUG ::2011-03-15 10:45:37::utils.py:60::TNArchipelVirtualMachine.set_automatic_libvirt_description (10540f28-4ee8-11e0-b5c4-001851944646@labo.tld/hypervisor)::generated XML desc is : <domain type="openvz"><name>test-openvz</name><uuid>10540f28-4ee8-11e0-b5c4-001851944646</uuid><memory>0</memory><currentMemory>0</currentMemory><vcpu>1</vcpu><os><type arch="x86_64">exe</type><boot dev="hd" /></os><on_poweroff>destroy</on_poweroff><on_reboot>restart</on_reboot><on_crash>restart</on_crash><features /><devices /><description>10540f28-4ee8-11e0-b5c4-001851944646@labo.tld::::rn29FU9s00wHRa0419L7rZTtFg6aT3HZ</description></domain> | |
ERROR ::2011-03-15 10:45:37::utils.py:141::<archipel.archipelVirtualMachine.TNArchipelVirtualMachine object at 0x2121e90>.iq_define: exception raised is : internal error Could not exec /usr/sbin/vzctl |
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
INFO ::2011-03-14 14:26:55::utils.py:62::TNArchipelHypervisor.initialize_modules (hypervisor@labo.tld/arthur)::PLUGIN: loaded plugin action_scheduler | |
INFO ::2011-03-14 14:26:56::utils.py:62::TNArchipelHypervisor.connect_libvirt (hypervisor@labo.tld/arthur)::connected to libvirt uri openvz:///system | |
ERROR ::2011-03-14 14:26:56::utils.py:66::TNArchipelHypervisor.__init__ (hypervisor@labo.tld/arthur)::we are sorry. but your hypervisor doesn't support libvirt virConnectDomainEventRegisterAny. And this really bad. I'm sooo sorry |
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
/* | |
* Copyright (c) 2010 Jérémy Subtil. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright | |
* notice, this list of conditions and the following disclaimer in the |
NewerOlder