This file contains 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
<?php | |
define("true ", false); | |
function doIt() { | |
define(" false", true); | |
define("maybe", rand() & 1); | |
} | |
function ($stupid="clever") { | |
if (assert_value($stupid)) { |
This file contains 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains 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
public class DamageUtil { | |
public static void createExplosion(Projectile pro, WeaponType weapontype, LivingEntity shooter) { | |
int radius = weapontype.getDamage(); | |
Location loc = pro.getLocation(); | |
List<Entity> en = pro.getNearbyEntities(radius, radius, radius); | |
pro.getLocation().getWorld().createExplosion(loc, 0.0F, false); | |
for (Entity ent : en) { | |
if (ent instanceof LivingEntity) { | |
HumanEntity le = (HumanEntity) ent; | |
Location eyeloc = le.getEyeLocation(); |
This file contains 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 de.codebucket.utils; | |
import java.io.BufferedReader; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.Proxy; | |
import java.net.URL; | |
import java.util.UUID; |