Skip to content

Instantly share code, notes, and snippets.

@capsulecorplab
capsulecorplab / taskmanagers.adoc
Last active July 7, 2019 17:21
a comparison of task management tools for power users
@RichardBronosky
RichardBronosky / touchid_sudo.sh
Last active June 21, 2024 12:00
Use TouchID for sudo on modern MacBook Pro machines
#!/bin/bash
# curl -sL https://gist.githubusercontent.com/RichardBronosky/31660eb4b0f0ba5e673b9bc3c9148a70/raw/touchid_sudo.sh | bash
# This script is ready to copy-paste in whole, or just the line above (without the leading #)
# Use TouchID for sudo on modern MacBook Pro machines
# This script adds a single line to the top of the PAM configuration for sudo
# See: https://apple.stackexchange.com/q/259093/41827 for more info.
touchid_sudo(){
@briandominick
briandominick / asciidoc-static.adoc
Last active June 25, 2024 14:26
Static Site Generators with AsciiDoc Support

There are 28 static site generators that support AsciiDoc sourcing.

@cloudnull
cloudnull / upgrade-2v11.sh
Last active August 29, 2015 14:19
wip upgrade script
#!/usr/bin/env bash
# Copyright 2015, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@klevenstein
klevenstein / openstack-for-rpc.md
Last active August 29, 2015 14:16
How to OpenStack for RPCers

OpenStack Docs for RPCers

Contributing to OpenStack is documented across a number of places, and very thoroughly documented on the OpenStack wiki. This page is an attempt to round up and simplify all the steps for a first-time RPC (or other Racker) OpenStack contributor.

Note: originally posted in a private rpcdocs repo; reposted here for the openstack-docs folks to look at, per meeting discussion on 2/26.

Software prerequisites

Before you dive in, you should ensure that you have the following software prerequisites established:

###Mac

RPC Repo Infrastructure

Date: 2013-09-05 09:51
tags:rackspace, lxc, rpc, openstack, cloud, ansible
category:*nix

This is a brief description on how / what the repo plays are providing and how the Rackspace Private Cloud repositories are being hosted.

/etc/network/interfaces
# Label msk-rpcaio1-mgmt
auto eth2
iface eth2 inet manual
up ip link set $IFACE up
down ip link set $IFACE down
auto br-mgmt
iface br-mgmt inet static
#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Make sure you have all dependencies:
# yum -y install libguestfs-tools virt-install
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@wilmoore
wilmoore / convert.sh
Created June 2, 2011 00:29
convert markdown to reStructured Text (Thanks Doctrine2) - https://github.com/doctrine/dbal-documentation/blob/master/convert.sh
#!/bin/bash
FILES=`find -iname *.txt -print`
for FILE in $FILES
do
# replace the + to # chars
sed -i -r 's/^([+]{4})\s/#### /' $FILE
sed -i -r 's/^([+]{3})\s/### /' $FILE
sed -i -r 's/^([+]{2})\s/## /' $FILE
sed -i -r 's/^([+]{1})\s/# /' $FILE
sed -i -r 's/(\[php\])/<?php/' $FILE