- Author
Mark Biggers <biggers@utsl.com>
- Description
How to rescue a Linux system (OpenSUSE 12.x)
- Ref
System Rescue CD docs: <http://www.sysresccd.org/Online-Manual-EN>
- Ref
chroot, explained: <http://en.wikipedia.org/wiki/Chroot>
- Ref
Change Root (prepare for rescue): <https://wiki.archlinux.org/index.php/Change_Root>
- Ref
OpenSUSE wiki, "Recover root password": <https://en.opensuse.org/SDB:Recover_root_password>
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
# -*- coding: utf-8 -*- | |
# django_pave.py - Run Django management commands with a Paver task. | |
# | |
# It’s simple really; just run `paver manage syncdb`, or | |
# `paver manage runserver`, or indeed any Django management command. You can | |
# also define Paver tasks which load the Django settings before execution. | |
# | |
# Copyright (c) 2009 Zachary Voase <zacharyvoase@me.com> | |
# | |
# Permission is hereby granted, free of charge, to any person |
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
# -*- coding: utf-8 -*- | |
""" | |
Example Usage | |
============= | |
The following commands can be run from the root directory of the Mercurial | |
repo. To run ``paver``, however, you'll need to do ``easy_install Paver``. | |
Most of the following commands accept other arguments; see ``command --help`` | |
for more information, or ``paver help`` for a list of all the valid commands. |
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
from __future__ import with_statement # python2.5 | |
""" | |
Project root holds virtual environment | |
""" | |
from fabric.api import * | |
import os.path | |
# globals | |
env.project_name = 'myproject' |
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
# easy_install boto fabric | |
# The only pre-req is having created a keypair via the amazon web interface | |
# | |
# Usage: | |
# fab geonode | |
from fabric.api import env, sudo, run, cd | |
import os, time, boto | |
import ConfigParser |
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
default: | |
args: | |
url: localhost | |
port: 8888 | |
address: 0.0.0.0 | |
partition: s | |
flags: | |
- use_sqlite | |
- high_replication | |
- allow_skipped_files |
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
from concurrent.futures import ThreadPoolExecutor | |
from functools import partial, wraps | |
import time | |
import tornado.ioloop | |
import tornado.web | |
EXECUTOR = ThreadPoolExecutor(max_workers=4) |
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 | |
# | |
# copied from https://gist.github.com/smoser/5823699 | |
# | |
set -e | |
[ -e "/usr/bin/apt-get.distrib" ] || | |
sudo dpkg-divert --local --rename --add /usr/bin/apt-get | |
sudo tee /usr/bin/apt-get >/dev/null <<"EOF" |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""pycache -- cache a python package from PyPI on S3. | |
A simple script to collect a cache of packages locally and sync them up to an S3 bucket, using directories as namespaces so that different projects can have different dependencies. | |
This is just about the simplest thing that could possibly work. | |
""" | |
import warnings | |
warnings.filterwarnings('ignore') |
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
#!/usr/bin/env python | |
"""pagerduty.py | |
Usage: | |
pagerduty.py trigger [options] <description> [<incident_key>] | |
pagerduty.py acknowledge [options] <description> <incident_key> | |
pagerduty.py resolve [options] <description> <incident_key> | |
Options: | |
-c --conf=FILE A path to a config file |
OlderNewer