Skip to content

Instantly share code, notes, and snippets.

View kalw's full-sized avatar

Regis A. Despres kalw

View GitHub Profile
@Lixivial
Lixivial / confluence_export.sh
Created March 3, 2010 20:05
shell script to output all Confluence spaces to PDF (and HTML) and place them on a share.
#!/bin/bash
# set -x
# Jesse Pearson
# Shell script to output all Confluence Spaces to PDF and optionally
# push them to a SMB or some other share.
#
# Dependencies:
# wget
#
# Optional dependencies:
@andoriyu
andoriyu / README
Created September 30, 2011 05:29
rc.d script for unicorn (FreeBSD)
unicorn_profiles="dev prod"
unicorn_dev_enable="yes"
unicorn_dev_user="devuser"
unicorn_dev_listen="/tmp/unicorn.dev.socket"
unicorn_dev_dir="/usr/local/www/dev"
unicorn_dev_config="/usr/local/www/dev/config.ru"
unicorn_dev_env="development"
unicorn_dev_flags="" # any additional flags
unicorn_dev_rails="YES" # For rails
@johnl
johnl / powerdns.conf
Created June 8, 2012 17:29
xip.io implementation with powerdns_pipe in ruby
launch=pipe
pipe-command=/path/to/xipio-pipe.rb
pipe-timeout=200
pipe-regex=^.*.ip.ipq.co;.*$
@willurd
willurd / web-servers.md
Last active July 23, 2024 17:12
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@loisaidasam
loisaidasam / random_word.sh
Created August 5, 2013 14:37
Command line random word generator
#!/bin/bash
DICT="/usr/share/dict/words"
NUM_WORDS=$(wc -l $DICT | awk -F " " '{print $1}')
NUM_DIGITS=${#NUM_WORDS}
while true
do
NUM=""
@nmuldoon
nmuldoon / watch-space-blog.html
Created December 30, 2014 21:21
Watch Space Blog - User Macro for Confluence
<!--
Author: Vikas Sharma, https://twitter.com/VikasSharma
This user macro allows a user to embed a watch space blog button within a blog post on Confluence.
At Twitter we use this to encourage folks to watch the blog of the space they are on.
-->
<button id="twtr-watch-space-blog" class="aui-button">Watch the $space.getName() Blog</button>
<script>
AJS.toInit(function(){
AJS.$('#twtr-watch-space-blog').on('click', function(){
@gwarf
gwarf / MacOSX_terraform.md
Last active September 6, 2023 16:44
Using terraform in Mac OS X to manage KVM-backed VMs.

Using Terraform on MacOS X to manage KVM-backed VMs

Installing

Terraform

brew install terraform
@max-i-mil
max-i-mil / linux-vms-on-apple-m1-with-networking.md
Last active July 5, 2024 16:15
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software