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
# /etc/udev/rules.d/99-ingest.rules | |
ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd*[0-9]", ENV{ID_MODEL}=="MassStorageClass", RUN+="/bin/systemctl start ingest@%k.service" | |
# udevadm control --reload-rules | |
# udevadm trigger |
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
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import org.apache.logging.log4j.core.Appender; | |
import org.apache.logging.log4j.core.LogEvent; | |
import org.apache.logging.log4j.core.appender.AbstractAppender; | |
import org.apache.logging.log4j.core.layout.PatternLayout; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.function.Predicate; |
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
(ssl) { | |
tls { | |
dns cloudflare INSERT_CLOUDFLARE_TOKEN | |
} | |
} | |
(log) { | |
log { | |
output stdout | |
} |
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
[include mainsail.cfg] | |
[stepper_x] | |
step_pin: PC2 | |
dir_pin: PB9 | |
enable_pin: !PC3 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: !PA5 | |
position_min: -14 |
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 github.scarsz.handsofftheitemframes; | |
import com.sk89q.worldedit.bukkit.BukkitAdapter; | |
import com.sk89q.worldedit.util.Location; | |
import com.sk89q.worldguard.WorldGuard; | |
import com.sk89q.worldguard.protection.flags.Flag; | |
import com.sk89q.worldguard.protection.flags.StateFlag; | |
import com.sk89q.worldguard.protection.flags.registry.FlagConflictException; | |
import com.sk89q.worldguard.protection.flags.registry.FlagRegistry; | |
import com.sk89q.worldguard.protection.regions.RegionContainer; |
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
import lombok.Getter; | |
import org.bukkit.Location; | |
import org.bukkit.World; | |
import java.util.Comparator; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.stream.Stream; | |
public class RectangleBound { |
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
(function() { | |
var links = [].slice.call(document.querySelectorAll('a')); | |
var urls = []; | |
links.forEach(function(a) { | |
if (!urls.includes(a.href)) urls.push(a.href); | |
}); | |
var x = document.createElement("TEXTAREA"); | |
var t = document.createTextNode(urls.join("\r\n")); | |
x.appendChild(t); |
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
using System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using RestSharp; | |
namespace ScarszDebugTest | |
{ | |
internal static class Program | |
{ |
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
import javafx.geometry.Point3D; | |
import javax.imageio.ImageIO; | |
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.HashSet; | |
import java.util.Random; | |
import java.util.Set; |
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
#!/bin/bash | |
bucket="milkyway-backups" | |
server="MILKYWAY" | |
subject="FILES" | |
locationstocompress=( "/home" "/var/www" "/etc/apache2" ) | |
masterfile="$server-$subject-$(date +"%Y-%m-%d").tar.gz" | |
tmpdir="/tmp/backup-$(echo $RANDOM % 999999 + 1 | bc)" | |
masterfile="/tmp/$masterfile" |
NewerOlder