Skip to content

Instantly share code, notes, and snippets.

View Leopere's full-sized avatar
💭
I'm sending you a message from the past and this is it.

Leopere Leopere

💭
I'm sending you a message from the past and this is it.
View GitHub Profile

This is a guide for the recommended method of installing Ruby.

Learn more about Ruby.

Ruby 1.8.7

RHEL 6.4 currenly only supports ruby 1.8.7 in the repositories which has been completely dropped. Therefore it's recommended to manage ruby outside of the yum package management and build completely from source.

Install libyaml from source

#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin # modify if you need
DAEMON_ARGS="/home/hastebin/haste-server/server.js" # path to your node.js server/app
DESC="node.js pastebin server" # whatever fancy description you like
NODEUSER=hastebin:hastebin # USER who OWNS the daemon process (no matter whoever runs the init script)
LOCAL_VAR_RUN=/var/run # in case the init script is run by non-root user, you need to
NAME=node # name of the node.js executable
DAEMON=/usr/local/bin/$NAME # this SHOULD POINT TO where your node executable is

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to:

@Leopere
Leopere / _service.md
Last active August 29, 2015 13:56 — forked from naholyr/_service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@Leopere
Leopere / glpc-install.sh
Created February 28, 2014 07:22
Install GoLilyPadConnect
#!/bin/bash
########################################################
## This installs a user for Go Lily Pad Connect[GLPC] ##
## Then it downloads and installs GLPP ##
## TODO: Write and set up an init.d script ##
########################################################
adduser --disabled-password -gecos "" glpc
#su glpc
echo User glpc created.
mkdir /home/glpc/.ssh/
@Leopere
Leopere / glpp-install.sh
Created February 28, 2014 07:24
Install GoLilyPadConnect
#!/bin/bash
######################################################
## This installs a user for Go Lily Pad Proxy[GLPP] ##
## Then it downloads and installs GLPP ##
## TODO: Write and set up an init.d script ##
######################################################
adduser --disabled-password -gecos "" glpp
echo User glpp created.
mkdir /home/glpp/.ssh/
@Leopere
Leopere / glpc.sh
Created February 28, 2014 07:25 — forked from roblabla/glpc.sh
#!/bin/bash
# /etc/init.d/mcl
### BEGIN INIT INFO
# Provides: minecraft
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
@Leopere
Leopere / README.MD
Last active August 29, 2015 13:56
A LSB compliant init.d script for starting a GoLilyPad-Proxy/Connect

One day maybe I'll write more to this but for now this is a standard LSB script for creating a GoLilyPad service as a daemon allowing you to either use this for GoLilyPad Connect Or GoLilyPad Proxy.

Planned: Self Installing/Uninstalling function of some kind.

Related Files (Not required but related): GoLilyPad-Connect installation script (Does not include setting up this LSB Script) https://gist.github.com/chamunks/9266765 GoLilyPad-Proxy installation script (Does not include setting up this LSB Script) https://gist.github.com/chamunks/9266783

@Leopere
Leopere / kwruby-gitlab.sh
Last active August 29, 2015 14:09
KwRuby very rough bash script for demo'ing the installation from source process.
#!/bin/bash
## Source for this script was from https://github.com/gitlabhq/gitlabhq/blob/7-4-stable/doc/install/installation.md#initialize-database-and-activate-advanced-features
clear
echo "First step is we need to update our apt cache and install upgrades."
echo "apt-get update -y && apt-get upgrade -y && apt-get autoremove"
apt-get update -y && apt-get upgrade -y && apt-get autoremove
read
## Install required Packages needed for compiling ruby.
clear
echo "Next we need to install dependencies for compiling ruby and extensions "
@Leopere
Leopere / gist:0b3a6abfcbc8add38d89
Created November 21, 2014 16:59
Athenus config update
#!/bin/bash
#
# Settings file for minecraft-init
# ================================
#
# Make a copy of this file named config
# and edit the variables to your needs.
#
### ChamCode
# Name of this server instance