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
| # This file is licensed under the terms of the MIT license https://opensource.org/license/mit | |
| # Copyright (c) 2021-2025 Marat Reymers | |
| ## Golden config for golangci-lint v2.6.1 | |
| # | |
| # This is the best config for golangci-lint based on my experience and opinion. | |
| # It is very strict, but not extremely strict. | |
| # Feel free to adapt it to suit your needs. | |
| # If this config helps you, please consider keeping a link to this file (see the next comment). |
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)) { |