Skip to content

Instantly share code, notes, and snippets.

View eklitzke's full-sized avatar

Evan Klitzke eklitzke

View GitHub Profile
@giovtorres
giovtorres / virt-install-centos
Last active March 15, 2023 09:57
Install CentOS cloud images on KVM using cloud-init
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.**
## **This updated version has more options and less hardcoded variables.**
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
@goern
goern / gist:d21e5f9bee733a4f30c7
Last active October 31, 2017 08:52
Atomic Host demo on Google Compute Engine (GCE)

Overview

Basically four steps:

  1. install SDK and initialize a new project via console
  2. upload and generate a new GCE image for your project
  3. instantiate a new instance on GCE using the image
  4. follow a known path

install SDK and initialize a new project via console

  • Sign up for Google Compute Engine
@pascalpoitras
pascalpoitras / config.md
Last active April 8, 2024 18:58
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


#!/bin/bash -eEx
if ! which gpg-agent; then
sudo apt-get install gnupg-agent
fi
if ! which pull-lp-source; then
sudo apt-get install ubuntu-dev-tools
fi
gpg-agent || eval `gpg-agent --daemon`
@quanticle
quanticle / gist:5148943
Created March 13, 2013 02:33
synx's awesome speech
21:16 < synx> look
21:16 < synx> I don't want to be "that guy", but this is the real world and good code doesnt' mean shit.
21:16 < synx> We have a product to ship in 18 weeks and you are arguing with me over whether this functinoality should be exposed via an interface or an abstract class??
21:17 < synx> Until there is a deliverable, I don't give a fuck if it's exposed via a fucking socket on a machien in Malaysia!
21:17 < synx> Get it THE FUCK DONE
@thwarted
thwarted / screen-swap-x.diff
Created August 10, 2010 07:36
simplistic screen swap-x patch
diff -ur screen-4.0.3/display.c screen-4.0.3-swap-x/display.c
--- screen-4.0.3/display.c 2003-12-05 05:45:41.000000000 -0800
+++ screen-4.0.3-swap-x/display.c 2010-08-09 23:59:07.465303854 -0700
@@ -33,6 +33,8 @@
#include "extern.h"
#include "braille.h"
+int swap_x = 1;
+
static int CountChars __P((int));