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
| # ================================================================================================== | |
| # | |
| # NOTICE | |
| # | |
| # This gist is no longer maintained. It was moved to repo: | |
| # | |
| # https://github.com/maratori/golangci-lint-config | |
| # | |
| # Full history and all v2 releases are preserved in the repo. | |
| # |
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 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; |
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
| 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 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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
| <?php | |
| define("true ", false); | |
| function doIt() { | |
| define(" false", true); | |
| define("maybe", rand() & 1); | |
| } | |
| function ($stupid="clever") { | |
| if (assert_value($stupid)) { |