Skip to content

Instantly share code, notes, and snippets.

View Kholdfyre's full-sized avatar
🏠
Working from home

Bryan McKnight Kholdfyre

🏠
Working from home
View GitHub Profile
package amazigjj.longerdays;
import net.minecraftforge.common.config.Config;
import net.minecraftforge.common.config.ConfigManager;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import static amazigjj.longerdays.LongerDays.LongerDaysConfig.*;
Part 1: Installing MSYS2/MinGW-W64
Windows is a piece of shit so to make the projects and code interoperable between Windows and Linux
development environments we need to setup a Linux compatible build environment on Windows.
1. Go to http://msys2.github.io/
2. Follow instructions 1 - 6 on the page. Make sure you remember where you installed this!
NB: For instruction 6 it asks you to close MSYS2, do this by pressing the X button, not
by typing exit (which is how you would normally do it).
3. Type the following command into the MSYS2 shell:
@asimjalis
asimjalis / perl-shell.md
Created December 8, 2012 15:34
How to run Perl in an interactive shell

How to run Perl in an interactive shell

by Asim Jalis, MetaProse.com

An interactive shell is useful for quickly trying out different commands. While Ruby, Python, and Clojure come with interactive shells, Perl does not. However, it is easy to create one using this one-liner on Unix systems:

perl -e 'do{print("perl> ");$_x=<>;chomp $_x;print(eval($_x)."\n")}while($_x ne "q")'