This file contains 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 | |
file=$1 | |
if [[ -z $1 ]]; then | |
echo "Please specify a file." | |
exit | |
fi | |
if [[ ! -f "$file" ]]; then | |
echo "$file does not exist." |
This file contains 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 | |
# Base: https://github.com/notmeta/flameshot-s3-uploader | |
url="url" | |
key="secretkey" | |
temp_file="/tmp/screenshot.png" | |
flameshot gui -r > $temp_file | |
if [[ $(file --mime-type -b $temp_file) != "image/png" ]]; then | |
rm -rf $temp_file |
This file contains 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/sh | |
while true | |
do | |
java -Xms512M -Xmx512M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -jar waterfall.jar | |
for s in 5 4 3 2 1 | |
do | |
echo "Restarting in ${s} second(s)..." | |
sleep 1 | |
done |
This file contains 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/sh | |
for ip in $(curl -s https://www.cloudflare.com/ips-v4) | |
do | |
sudo ufw allow from $ip to any port 80 proto tcp | |
done |
This file contains 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/sh | |
brightness="/sys/class/backlight/intel_backlight/brightness" | |
current=$(cat $brightness) | |
if [ $1 -eq 0 ]; then | |
new=$(( current + 10000 )) | |
else | |
new=$(( current - 10000 )) | |
fi |
This file contains 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
from random import randint | |
min = 1 | |
max = 10 | |
number = randint(min, max) | |
tries = 1 | |
while True: | |
print(f'Try {tries}') | |
answer = input(f'Guess the number between {min} and {max}: ') |
This file contains 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 | |
ip=$(curl -s myipv4.r0.al) | |
date=$(date +'[%m.%d.%Y %r]:') | |
api_key="" | |
zone_id="" | |
dns_identifier="" | |
name="" | |
curl -s -f -X PUT "https://api.cloudflare.com/client/v4/zones/$zone_id/dns_records/$dns_identifier" \ | |
-H "Authorization: Bearer $api_key" \ |
This file contains 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 | |
if [ $EUID -ne 0 ] | |
then | |
echo "This script must be run as root" | |
exit | |
fi | |
if ! grep -q 11 '/etc/debian_version' | |
then |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Manelizor</title> | |
</head> | |
<body> |
This file contains 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
script_name('Fish-Utils') | |
script_author('Rmly') | |
script_version('1.0') | |
local sampev = require 'samp.events' | |
local prefix = "{0ed2e8}[FISH-UTILS]:{b9bcbd}" | |
function main() | |
repeat wait(100) until isSampAvailable() | |
local ts = thisScript() |
OlderNewer