start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
#!/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 | |
Please check out the official installation guide here: https://github.com/mark2devel/mark2/blob/master/INSTALL.md
vswap
OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server#!/bin/bash | |
url='http://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv' | |
iptables -F TOR_NODES | |
iptables -I TOR_NODES -j RETURN | |
for node in `wget -q --no-check-certificate -O - $url | sort | uniq`; do | |
iptables -I TOR_NODES -s $node -j DROP | |
done |
I really should script a wrapper or something over this, but it's so simple, there's no real point.
Install wemux (install git if your distro doesn't have it):
sudo apt-get install git tmux
sudo git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
sudo ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
sudo cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
sudo sed -i -e s/change_this/minecraft/g /usr/local/etc/wemux.conf
Create a separate minecraft
user if you care, and add their home dir to a group called mcadmin
:
#!/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 |
import sys | |
import os | |
import math | |
import urllib2 | |
import json | |
import time | |
import shutil | |
import uuid | |
from nbt import nbt # pip install nbt |
This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.
Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.
Like this:
{
"id": ,
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/tools | |
# install all sdk packages |