Author: | Mark Biggers <[email protected]> |
---|---|
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 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/sh | |
VNC_SERVER=/usr/bin/x11vnc | |
VNC_DISPLAY=:0 | |
LOG_FILE=/tmp/x11vnc-run.log | |
case "$1" in | |
start|restart) | |
killall ${VNC_SERVER} |
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
## better, working "shell-recipe" for installing a tagged | |
## Ansible release, from Git source | |
## https://github.com/ansible/ansible/tags | |
sudo aptitude install python-yaml python-jinja2 python-paramiko | |
cd ~/git/Python | |
tag_name='v1.9.4-1' | |
git clone git://github.com/ansible/ansible.git --recursive |
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
## -*- makefile -*- | |
## [email protected], Mark Biggers | |
## GNU Makefile for docker-compose build & run of a Python or other Project | |
## | |
## REFs: | |
## https://docs.docker.com/compose/reference/ | |
## https://github.com/docker/compose/releases | |
## |
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 phusion/baseimage:0.9.18 | |
MAINTAINER [email protected] | |
ENV PYTHONUNBUFFERED 1 | |
# ...put your own build instructions here... | |
RUN apt-get update --no-install-recommends && \ | |
apt-get install -y --no-install-recommends \ |
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/python | |
# encoding: utf-8 | |
from __future__ import with_statement | |
import os | |
import sys | |
import datetime | |
from fabric.api import cd, run, prefix, task, env, get, roles | |
from fabric.colors import yellow, green | |
from contextlib import contextmanager as _contextmanager |
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 fabric.api import * | |
from fabric.context_managers import cd | |
from fabric.operations import local as lrun, sudo | |
from fabric.contrib.files import sed | |
from fabric.utils import warn | |
from local_fabfile import root, prod, lh, SERVER_IP | |
def virtualenv(command, run_directory=''): | |
if run_directory == '': |
Reference: http://stackoverflow.com/a/11593308
I have two branches A and B and, I want to merge branch A's single file with Branch B's corresponding file. How can I do that?
I have two branches A
[master] and B
with the same files but a
different programming interface in some files. Now the methods of file f,
which is independent of the interface differences in the two branches, were
changed in branch B
, but the change is important for both branches. Thus,
I need to merge just file f
of branch B
into file f
of branch
Author: | Mark Biggers <[email protected] |
---|---|
Description: | Install & configuration of OpenNebula (ONE) 4.x on openSUSE 12.3 |
Ref: | SDB:Cloud OpenNebula: <http://en.opensuse.org/SDB:Cloud_OpenNebula> |
Ref: | ONE Installing the Software: <http://opennebula.org/documentation:rel4.2:ignc#opensuse_platform_notes> |
Ref: | KVM driver, KVM configuration: <http://opennebula.org/documentation:archives:rel4.0:kvmg#kvm_configuration> |
Ref: | ONE Rel 4.2 packages, for openSUSE: <http://download.opensuse.org/repositories/Cloud:/OpenNebula:/Testing/openSUSE_12.3/> |
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 python | |
from __future__ import print_function | |
from pprint import pprint | |
# install into a virtual-env: pip install sh | |
# | |
# References: | |
# http://amoffat.github.com/sh | |
# | |
# Inspired by: |