Skip to content

Instantly share code, notes, and snippets.

@cpw
cpw / StringHider.java
Created April 23, 2015 16:32
Secure string pairs
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.DatatypeConverter;
public class StringHider
{
/**
* Generate pairs by doing:
.nofile {
color: red;
}
.nofile.highlighted {
color: #ff9999 !important;
}
.file {
color: orange;
}
.file.highlighted {
@xaeroverse
xaeroverse / TUTORIAL.md
Last active November 7, 2021 09:14
Updating MCP mappings in ForgeGradle

Updated mappings for Forge/FML development with ForgeGradle

Official support for updated SRG->MCP mappings is already completed, but in the event that you require local mappings, this 'hack' can serve to inject your own custom mappings faster than the official schedule.

Requirements

For Forge/FML, you will need to know basic directory management and git.

For LiteLoader, you will need to know the structure of Maven repositories, inspecting raw JSON files by hand, MCP's build tools, compiling LiteLoader from SVN sources, ANT, and some Google-fu.

Introduction

@dominicfarr
dominicfarr / shiro.ini
Last active March 9, 2021 05:37
example jdbcRealm configured in shiro.ini
[main]
ds = com.mysql.jdbc.Driver
ds.serverName = localhost
ds.user = user
ds.password = password
ds.databaseName = db_name
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.dataSource = $ds
jdbcRealm.permissionsLookupEnabled = true
@pingbird
pingbird / brainf^vk
Last active September 10, 2016 09:40
brainfuck IRC bot
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.-
----.------.++++++++.-------------------------------------------.+++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++.++++++++++++++++.-----------
------.++++++++.+++++.--------.--------.++++++++++++++++++++++++.-----------.[-]
++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++.--.--------------.+++++++++++++.----------------------------
----------------------.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++.++++++++++++++++.-----------------.++++++++.+++++.--------.--------.++
++++++++++++++++++++++.-----------.---------------------------------------------
------------------------------.+++++++++++++++++++++++++++++++++++++++++++++++++
@AbrarSyed
AbrarSyed / gist:7244604
Last active July 24, 2017 11:54
New features planned for SecretRoomsMod

FE support

Storing the owner of a Secret Block (username). This can be used for permission checking in the /srm-show command... This should also be used in the CamoGate, where the setting of the blocks can post block events.

New Features

  • Anti-Camo Dust Thrown in the air. Shows camo blocks for a limited amount of time (5 seconds? 10 seconds?)
  • Anti-Camo Cannon Shoots camo dust (high consumption, a stack a second?) and permanently shows camo blocks, until they are re-camoed by right-clicking with camo-paste.
@cheeaun
cheeaun / putonglasses.txt
Created September 14, 2012 08:57
put on glasses unicode
•_•)
( •_•)>⌐■-■
(⌐■_■)