This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##################### | |
| # | |
| # Use this with or without the .gitattributes snippet with this Gist | |
| # create a fixle.sh file, paste this in and run it. | |
| # Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
| # This Gist normalizes handling by forcing everything to use Unix style. | |
| ##################### | |
| # Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Radare2 r2pipe script to decode Meterpreters Single Byte XOR Countdown Encoder | |
| # https://github.com/rapid7/metasploit-framework/blob/master/modules/encoders/x86/countdown.rb | |
| import r2pipe | |
| import sys | |
| def dump(addr): | |
| pass | |
| def startEsil(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Apple Meta Insanity</title> | |
| <!-- | |
| APPLE WEB APP META TAGS | |
| --> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor. | |
| * | |
| * @param playerInventory to turn into an array of strings. | |
| * @return Array of strings: [ main content, armor content ] | |
| * @throws IllegalStateException | |
| */ | |
| public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException { | |
| //get the main content part, this doesn't return the armor | |
| String content = toBase64(playerInventory); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.comphenix.example; | |
| import static com.comphenix.protocol.PacketType.Play.Server.*; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.util.Arrays; | |
| import java.util.Map; | |
| import org.bukkit.entity.Entity; | |
| import org.bukkit.entity.Player; |