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
@Byteflux
Byteflux / uuidconvert.py
Last active August 29, 2015 13:59
python uuidconvert.py <worldpath>
import sys
import os
import math
import urllib2
import json
import time
import shutil
import uuid
from nbt import nbt # pip install nbt
@roblabla
roblabla / glpc.sh
Last active August 29, 2015 13:56
Screen Startup File
#!/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
@vemacs
vemacs / wemuxcord.md
Last active January 31, 2020 19:21
Simple guide for using wemux for BungeeCord

I really should script a wrapper or something over this, but it's so simple, there's no real point.

  1. 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
    
  2. Create a separate minecraft user if you care, and add their home dir to a group called mcadmin:

@corin12355
corin12355 / Drop.sh
Last active January 29, 2021 19:40
#!/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
@vemacs
vemacs / Tutorial.md
Last active July 29, 2022 10:00
Instructions for setting up a Spigot server using mark2 on a fresh Ubuntu Server 14.04 LTS install.

This guide is outdated

Please check out the official installation guide here: https://github.com/mark2devel/mark2/blob/master/INSTALL.md

Prerequisites

  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 10 minutes of time
@Aricg
Aricg / node_debian_init.sh
Last active December 14, 2015 04:59 — forked from peterhost/node_debian_init.sh
Init file for hastebin server (assuming installed to /home/hastebin/haste-server )
#!/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
@johntyree
johntyree / getBlockLists.sh
Last active June 4, 2024 12:30
Make one large blocklist from the bluetack lists on iblocklist.com
#!/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 '^#'
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 9, 2024 10:41
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname