For the Mac [some possible needed tools? try without]
brew update
brew install wget
brew install curl
Setup some directory structure
mkdir minecraft
#!/bin/bash | |
# Backup script for minecraft server. Uses duplicity(1). | |
. /etc/minecraft/config | |
. /etc/minecraft/backup.cfg | |
BACKUP_URL="file://${BACKUP_TARGET}" | |
CONSOLE="${RUN}/console.in" |
Simple Jesus Tutorial. | |
Goto BlockLiquid.java | |
Search for: public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) | |
The return statement should be null | |
Replace it with an if statement and if it's not true, set it to null. |
Copied from my old source. | |
//put this before everything | |
float speed = 1.25F; | |
//if the hack is enabled | |
mc.thePlayer.capabilities.isFlying = false; | |
mc.thePlayer.isInWeb = false; //have to change web to static, easy to do. |
#!/usr/bin/env python3 | |
""" | |
Simple script that implements the minecraft protocol | |
to create a basic chat client for said game. | |
No encryption, no online mode, no parsing of chat messages. | |
I tried to make it as extendable as possible, so hack away. | |
PEP8 Note: Ignored E302 (2 newlines between functions) | |
""" |
For the Mac [some possible needed tools? try without]
brew update
brew install wget
brew install curl
Setup some directory structure
mkdir minecraft
WARNING: If you're reading this in 2021 or later, you're likely better served by reading:
(This gist was created in 2013 and targeted the legacy GOPATH mode.)
$ ssh -A vm
$ git config --global url."[email protected]:".insteadOf "https://github.com/"
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" |
Passing parameters when starting an Activity from http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android
Intent intent = new Intent(getBaseContext(), NameOfActivity.class);
intent.putExtra("PARAMNAME", param);
startActivity(intent);