Skip to content

Instantly share code, notes, and snippets.

// Regular Expression for URL validation
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
// Copyright (c) 2010-2018 Diego Perini (
anonymous / gist:2572330
Created May 1, 2012 23:25
Instance started with command: C:\Program Files\Java\jre6\bin\java.exe -Xmx1024m -Xms512m -cp "C:\Users\games\Desktop\minecraft\multimc" MultiMCLauncher "C:\Users\games\Desktop\minecraft\multimc\instances\Vanilla\.minecraft" "thedanieldude" -2457133257678593272
Loading jars...
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/minecraft.jar
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/lwjgl.jar
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/lwjgl_util.jar
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/jinput.jar
Loading natives...
Fixed Minecraft Path: Field was private static net.minecraft.client.Minecraft.aj
MCDIR: C:\Users\games\Desktop\minecraft\multimc\instances\Vanilla\.minecraft
27 achievements
nijikokun /
Last active June 2, 2016 20:22
A small, basic, generic game framework / game with no potential being made for fun using weird javascript techniques. Also, I made my own commenting style based on KSS.


Game oriented development framework.


var entity = god.entity({
  name: "Nijikokun"
riking /
Last active December 14, 2015 08:59
Extensible version of Factions' Player.canClaimForFactionAtLocation(Faction forFaction, Location location, boolean notifyFailure). More work will need to be done to make this usable, like sending the message from the ClaimResult, keeping a modifiable global instance of a IFClaimChecker. Even per-player claim checkers would be possible.
package com.aethercraft.factions;
import org.bukkit.Location;
import com.massivecraft.factions.FLocation;
import com.massivecraft.factions.Faction;
public class AetherCraftClaimChecker extends DefaultClaimChecker
quchen / trolling_haskell
Last active February 24, 2024 01:30
Trolling #haskell
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
riking / Particle Descriptions
Last active July 22, 2018 20:22
Remember to include ANIMATIONS in the Appearance field! Example pictures (do not demonstrate pitfalls):
Count: This is literal. The count parameter specifies how many particles to spawn at once
with these exact same parameters.
Spread: The starting position of each particle is a normal number with mean of the Location
and standard deviation of the Spread, e.g. (Norm(Loc.X, Spread.X), Norm(Loc.Y,
Spread.Y), Norm(Loc.Z, Spread.Z)). This means that 68% of the particles will be
within the bounding box of +/- 1*Spread, 95% will be within +/- 2*Spread, and 99.7%
will be within +/- 3*Spread for each coordinate.
Speed: The effect of this is determined by each particle.
* sigraptr (Mibbit@ has joined #mcmmo
<sigraptr> Why hello there
<Riking> HELLO
<sigraptr> I'm here to share a little info that I have about minecraft.
<sigraptr> Ok, so how, in Minecraft, note that all of the planets are square.
<Riking> this is the mcmmo support channel
* Agge ( has joined #mcmmo
<sigraptr> However, in real life, planets cannot be square as the azimuth, the angle formed betwixt two lines, has to be spherical
<sigraptr> You can find the formula for this by the form, slope 1 times slope 2
<Riking> what planets
munificent / gist:9749671
Last active June 23, 2022 04:04
You appear to be creating a new IDE...
You appear to be advocating a new:
[ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic
[ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed.
You appear to believe that:
[ ] Syntax highlighting is what makes programming difficult
[ ] Garbage collection is free
[ ] Computers have infinite memory
[ ] Nobody really needs:

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.

Damian Bushong

lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'