Skip to content

Instantly share code, notes, and snippets.

View 4rz0's full-sized avatar

Snapples 4rz0

View GitHub Profile
@copygirl
copygirl / cord.ls
Created October 27, 2015 00:42
Fiddled-together IRC - Discord bridge bot
# Fiddled-together IRC - Discord bridge bot
# Currently set up to relay messages to channels of the same name.
# Discord APIs are very likely to change, and so this will probably break.
require! {
irc # npm install node-irc
"discord.js": Discord # npm install discord.js
"prelude-ls": { find } # npm install prelude-ls
"./auth" # Configuration goes in auth.json file
# auth.irc contains IRC information, see clientIrc
@Vazkii
Vazkii / Message.java
Last active March 8, 2021 20:37
Plug'n'Play Packet System
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Psi Mod. Get the Source Code in github:
* https://github.com/Vazkii/Psi
*
* Psi is Open Source and distributed under the
* CC-BY-NC-SA 3.0 License: https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB
*
* File Created @ [11/01/2016, 22:00:30 (GMT)]
*/
@wavezhang
wavezhang / java_download.sh
Last active July 19, 2024 13:45
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@williewillus
williewillus / primer.md
Last active April 22, 2024 15:29
1.13/1.14 update primer

This primer is licensed under CC0, do whatever you want.

BUT do note that this can be updated, so leave a link here so readers can see the updated information themselves.

1.13 and 1.14 are lumped together in this doc, you're on your own if you just want to go to 1.13 and not 1.14, for some reason.

1.15 stuff: https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e

Things in Advance

  • ResourceLocation now throw on non-snake-case names instead of silently lowercasing for you, so you probably should go and change all those string constants now. More precisely, domains must only contain alphanumeric lowercase, underscore (_), dash (-), or dot (.). Paths have the same restrictions, but can also contain forward slashes (/).
@kronoc
kronoc / meteotime-notes.txt
Created June 24, 2019 10:35
meteotime decoder
Cipher=[0]101111[0]00 0xBC 10101101 0xAD 01101001 0x69 11101001 0xE9 10010011 0x93
flip = 00111101 0x3D 10110101 0xB5 10010110 0x96 10010111 0x97 11001001 0xC9
<-- This is Meteotime DES cypher
Key = 01000000 0x40 00000000 0x00 00001100 0xC0 00100100 0x24 01001000 0x48
Key flip = 00010010 0x12 00100100 0x24 00110000 0x30 00000000 0x00 00000010 0x02
<-- This is Meteotime DES key
http://arduino-projects4u.com/meteotime/
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 18, 2024 22:51
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@Commoble
Commoble / gist:1c52d985a714ea304c70a9885882f516
Created December 13, 2020 18:40
Minecraft Forge on-right-click-block logic flow
RIGHT CLICK BLOCK LOGIC FLOW -- SERVER THREAD (after interaction packet is received by server)
fire RightClickBlock event
if event is canceled, return the cancellation's action result type
if gametype is SPECTATOR, attempt to open the ContainerBlock container of the clicked block
return SUCCESS if block had a container, PASS otherwise
if event.getUseItem() is NOT DENIED, call ItemStack::onItemUseFirst (which usually delegates to Item::onItemUseFirst)
if the result of this is not PASS, return that result