Skip to content

Instantly share code, notes, and snippets.

View rbellamy's full-sized avatar

Richard Bellamy rbellamy

View GitHub Profile
@rbellamy
rbellamy / gist:3730750
Created September 16, 2012 02:05
Installing Arch Linux with LUKS system encryption under LVM and Bios-GPT with Grub2
Installing Arch Linux with LUKS system encryption under LVM and Bios-GPT with Grub2
Basic notes for memory recall
Originally written by Earnestly (#archlinux on Freenode)
+--------+---------------+----------------------------+-------------------------+
| Mount | Size | Description | Device |
+--------+---------------+----------------------------+-------------------------+
| - | 2M | 0xEF02 BIOS Boot Partition | /dev/sdX1 |
+--------+---------------+----------------------------+-------------------------+
| /boot | 150M | Kernel & Grub | /dev/sdX2 |
@rbellamy
rbellamy / aergo
Last active December 17, 2015 17:29 — forked from THemming/gist:2173037
#!/bin/bash
# chkconfig: 345 20 80
# description: Play start/shutdown script - used by aergo-server
# processname: aergo
#
# Instalation:
# copy file to /etc/init.d
# chmod +x /etc/init.d/aergo
# chkconfig --add /etc/init.d/aergo
# chkconfig aergo on
# Install OpenJDK 1.7
sudo yum install java-1.7.0-openjdk
# Check if the default java version is set to sun jdk
java -version
# If not then lets create one more alternative for Java OpenJDK 1.7
alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java 20000
alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java 20000
tasks:
thedownload:
rss: http://feedhere
series: &serieslist
- showa
- showb
- showc
thesort:
find:
path: '/my/shows'
2 x 500G SSDs
btrfs raid1
__active => mount to /var/lib/btrfs-arch
__active/ROOT => mount to /
__active/home => mount to /home
__snapshots
5 x 600G 10k SAS
btrfs raid10
/*
http://www.javaworld.com/article/2071275/core-java/when-runtime-exec---won-t.html?page=2
*/
import java.util.*;
import java.io.*;
class StreamGobbler extends Thread
{
InputStream is;
String type;
@rbellamy
rbellamy / pacman-names.sh
Last active August 29, 2015 14:01
Just return the installed package names - used to send a list to pacman for action.
pacman -Qs $1 | awk 'NR % 2 != 0 { print $1 }' | sed 's/local\///'
2014-07-28 12:41:56
rbellamy@eanna i ~ % cd Development
2014-07-28 12:42:32
rbellamy@eanna i ~/Development master %
@rbellamy
rbellamy / gist:1b14c7936b8550c6d61e
Last active August 29, 2015 14:08
rst2man2 works with rst file and python2
rbellamy@lamassu i ~/.vim/bundle/powerline % python2 /usr/bin/rst2man2.py CONTRIBUTING.rst
.\" Man page generated from reStructuredText.
.
.TH HOW TO CONTRIBUTE "" "" ""
.SH NAME
How to contribute \-
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
@rbellamy
rbellamy / show-keybindings.sh
Created March 30, 2015 03:53
Show gnome-shell keybindings
for k in `gsettings list-keys org.gnome.desktop.wm.keybindings`; do echo $k = `gsettings get org.gnome.desktop.wm.keybindings $k`; done