Skip to content

Instantly share code, notes, and snippets.

View cygmris's full-sized avatar

Chris cygmris

  • ankeris
  • Global
View GitHub Profile
# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
mkdir -p ~/sources/ && \
# Compile against OpenSSL to enable NPN
@josch
josch / multibootiso.sh
Created March 7, 2014 14:04
create a disk image for a usb stick which combines all *.iso files found in the current directory into a multiboot image
#!/bin/sh
set -e
mkdir -p isomount
mkdir -p extmount
mkdir -p mainmount
cleanup() {
sudo umount isomount
#!/usr/bin/env bash
# Assume compute node has singe IP
# Plese confirm your /etc/hosts
LOCALIP=192.168.1.12
HOSTNAME=compute1
# Test installatiom model works
function test()
@jjanardh
jjanardh / gist:27394f71b33f14650b81
Last active April 1, 2017 19:22
Cannot ping floating IP neutron with GRE, ML2
Neutron Services:
root@controller-1:/etc/neutron# neutron agent-list
+--------------------------------------+--------------------+--------------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+--------------+-------+----------------+
| 084a9d2b-14d7-471f-911d-91facb33f695 | Open vSwitch agent | compute-1 | :-) | True |
| 164be455-8f4a-4316-aa2c-a2fe7da5e951 | Open vSwitch agent | controller-1 | :-) | True |
| 2a88780b-874e-47de-ba0c-72d2b981c144 | Metering agent | controller-1 | :-) | True |
| 441ed1f3-5c3e-4aa8-afe4-c562b25372b2 | Loadbalancer agent | controller-1 | :-) | True |
| 49cd36ab-4556-425c-ae55-5293447dfebc | Metadata agent | controller-1 | :-) | True |
@shichao-an
shichao-an / build_mysql.sh
Last active January 22, 2023 16:05
Build and install MySQL 5.1 from source on Ubuntu 14.04
#!/bin/bash
# Run as root
set -e
apt-get update
apt-get install -y build-essential
apt-get install -y libncurses5-dev
useradd mysql
@frgaudet
frgaudet / openstack-delete-instance.sh
Last active November 28, 2023 15:27
Delete instance from database
#!/bin/bash
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@Earnestly
Earnestly / makepkg_overview.rst
Last active October 13, 2025 00:41
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@manoj23
manoj23 / ubuntu-on-archlinux-using-lxc.md
Last active January 26, 2024 01:22
Install Ubuntu containers on Archlinux using LXC

Install Ubuntu containers on Archlinux using LXC

Install the lxc and the debootstrap packages:

# pacman -Sy lxc debootstrap 

Install an Ubuntu container

I will install Ubuntu 16. Therfore, I will use the xenial release.

@pv8
pv8 / fix-venv.sh
Last active September 1, 2022 03:33
Fix virtualenv symlinks after upgrading python with Homebrew and running brew cleanup
#!/usr/bin/env bash
#
# Fix virtualenv symlinks after upgrading python with Homebrew and then running
# `cleanup`.
#
# After upgrading Python using Homebrew and then running `brew cleanup` one can
# get this message while trying to run python:
# dyld: Library not loaded: @executable_path/../.Python
# Referenced from: /Users/pablo/.venv/my-app/bin/python
# Reason: image not found
@kalxas
kalxas / README
Created July 23, 2016 00:15 — forked from gdamjan/README
Customize ubuntu live image
# first, get the iso from http://releases.ubuntu.com/
# make working dir hierarchy in /tmp (you'll need enough ram for this)
sudo mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project}
sudo mount -o loop ~/Downloads/ubuntu-15.10-desktop-amd64.iso /tmp/custom/iso
sudo mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash
sudo mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive
# customize the live fs with systemd-nspawn (a better chroot)
sudo systemd-nspawn --bind-ro=/etc/resolv.conf:/run/resolvconf/resolv.conf --setenv=RUNLEVEL=1 -D /tmp/custom/newlive