Skip to content

Instantly share code, notes, and snippets.

@Dalethium
Dalethium / move_and_copy.sh
Last active January 4, 2024 09:24
Move And Copy
#!/bin/bash
# Check if both SRC and DST parameters are provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 SRC DST"
exit 1
fi
SRC="$1"
DST="$2"
@Dalethium
Dalethium / 1bundle
Created December 30, 2023 05:54 — forked from theappleman/1bundle
Humble Bundle/Store torrent downloader
#!/bin/bash
find "$1" -iname "*.pdf.torrent" -type f | while read torrent; do
echo -e "$torrent\n dir=.download/$(dirname $torrent)"
done | aria2c --seed-time=1 --input-file -
https://urlhaus.abuse.ch/downloads/text/
https://www.squidblacklist.org/downloads/dg-malicious.acl
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt
https://mirror1.malwaredomains.com/files/immortal_domains.txt
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&startdate[day]=01&startdate[month]=01&startdate[year]=2000&mimetype=plaintext
http://pgl.yoyo.org/adservers/iplist.php?ipformat=plain&showintro=0&mimetype=plaintext
http://malc0de.com/bl/IP_Blacklist.txt
http://cinsscore.com/list/ci-badguys.txt
https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt
modules = peripheral.wrap("left")
while true do
sleep(1)
local o = modules.getInventory().list()
for k,v in pairs(o) do
if (k > 9) then
modules.getInventory().pushItems("right", k)
end
package coffee.weneed.utils.tests;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class BRICS {
public static void main(String[] args) {
@Dalethium
Dalethium / getLookedAtEntity.java
Last active May 30, 2017 21:36
[Forge][1.11.2] Get the entity that another entity is looking at Server side
/**
* Gets the entity that a entity is looking at
* @param blockReachDistance the distance to check
* @param entity the entity who is looking
* @return the entity found, or null if one is not found
* @since May 30, 2017
* @author Dalethium
*/
@Nullable
public Entity getLookedAtEntity(double blockReachDistance, Entity entity) {