Skip to content

Instantly share code, notes, and snippets.

View rbellamy's full-sized avatar

Richard Bellamy rbellamy

  • Ford Pro
  • Cotati, CA
View GitHub Profile
2014-07-28 12:41:56
rbellamy@eanna i ~ % cd Development
2014-07-28 12:42:32
rbellamy@eanna i ~/Development master %
@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\///'
/*
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;
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
tasks:
thedownload:
rss: http://feedhere
series: &serieslist
- showa
- showb
- showc
thesort:
find:
path: '/my/shows'
# 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
@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
@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 |