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 | |
fail() { | |
echo "$@" | |
exit 1 | |
} | |
test -z "$1" && fail Image name argument missing | |
CACHE_DIR="${HOME}/.cache/deb" |
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 | |
path=https://example.webcam/streams/123/ | |
file=${path}stream.m3u8 | |
while true; do | |
for s in `curl -s $file | tr -d '\015' | grep -v '#'`; do | |
echo $s | |
curl -s "$path$s" > $s | |
done |
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 | |
for dev in $(cat /proc/acpi/wakeup | grep '*enabled' | cut -d' ' -f1); do | |
if [ "$dev" = "PWRB" ]; then | |
continue | |
fi | |
echo $dev > /proc/acpi/wakeup | |
done | |
exit 0 |
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 | |
curl -s https://www.cloudflare.com/ips-v4 > /tmp/cf_ips.txt || exit 1 | |
echo -e >> /tmp/cf_ips.txt | |
curl -s https://www.cloudflare.com/ips-v6 >> /tmp/cf_ips.txt || exit 1 | |
ips="" | |
for ip in $(cat /tmp/cf_ips.txt); do | |
ips="${ips}set_real_ip_from $ip;\n" |
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 | |
curl -s https://www.cloudflare.com/ips-v4 > /tmp/cf_ips.txt || exit 1 | |
echo -e >> /tmp/cf_ips.txt | |
curl -s https://www.cloudflare.com/ips-v6 >> /tmp/cf_ips.txt || exit 1 | |
conf="RemoteIPHeader CF-Connecting-IP\n" | |
for ip in $(cat /tmp/cf_ips.txt); do | |
conf="${conf}RemoteIPTrustedProxy $ip\n" |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="13"> | |
<profile kind="CodeFormatterProfile" name="GoogleStyle" version="13"> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
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 java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import org.apache.commons.io.IOUtils; |
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
// ==UserScript== | |
// @name portfoliovisualizer.com Download Link | |
// @namespace http://portfoliovisualizer.com.azazar.com/ | |
// @version 0.1 | |
// @description Add Portfolio Download Link | |
// @author Azazar | |
// @match https://www.portfoliovisualizer.com/* | |
// @icon https://www.google.com/s2/favicons?domain=portfoliovisualizer.com | |
// @grant none | |
// ==/UserScript== |
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
#region mdk preserve | |
// ------------------------------- | |
// --- Instruction Limiter --- | |
// ------------------------------- | |
double InstructionLimit = 0.8; | |
// ------------------------------- | |
// --- Satisfying HaE-PBLimiter -- | |
// ------------------------------- |
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
TimeSpan WaitTime = TimeSpan.FromMilliseconds(1); | |
Program() { | |
Runtime.UpdateFrequency = UpdateFrequency.None; | |
Echo("Initialized"); | |
} | |
void Main(string argument, UpdateType updateSource) { | |
int instructionCount = Runtime.CurrentInstructionCount; |