Skip to content

Instantly share code, notes, and snippets.

View Rmlyy's full-sized avatar
👋

Rmly Rmlyy

👋
View GitHub Profile
@Rmlyy
Rmlyy / addServer.sh
Last active July 18, 2023 07:42
Easily add servers to Minetrack's server list.
#!/bin/bash
serverName="$1"
serverIp="$2"
serverType="$3"
serverPosition="$4"
serversFile="$5"
tempFile="$6"
exampleUsage="Example: ./$(basename "$0") Hypixel mc.hypixel.net (PC) (bottom) (servers.json) (temp.json)\n* Arguments between () are optional."
@Rmlyy
Rmlyy / docker-compose.yml
Created December 25, 2022 12:58
Nextcloud and MariaDB Docker Compose using linuxserver.io images
version: "2.1"
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Bucharest
volumes:
@Rmlyy
Rmlyy / deleteMsg.js
Last active November 28, 2022 10:04
Discord Self-Bot to delete all messages from a channel
const { Client } = require('discord.js-selfbot-v13')
const client = new Client({
checkUpdate: false,
})
const channelId = process.env.CHANNEL_ID
async function fetchAllMessages(channelId) {
const channel = client.channels.cache.get(channelId)
let messages = []
@Rmlyy
Rmlyy / userscript.js
Created November 12, 2022 21:56
Tampermonkey userscript for Boosteroid contrast and brightness
// ==UserScript==
// @name Boosteroid Contrast
// @namespace https://boosteroid.com
// @version 0.1
// @description Changes stream contrast and brightness to 100%
// @author Rmly
// @match https://cloud.boosteroid.com/static/streaming/streaming.html?session=*
// @icon https://cloud.boosteroid.com/favicon.ico
// @grant none
// ==/UserScript==
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()
@Rmlyy
Rmlyy / index.html
Created October 18, 2022 19:08
manelizor d-ala
<!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>
@Rmlyy
Rmlyy / install-discord
Created April 24, 2022 14:37
Script to install Discord on Debian 11
#!/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
@Rmlyy
Rmlyy / ddns
Created March 12, 2022 17:18
Minimal Cloudflare Dynamic DNS
#!/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" \
@Rmlyy
Rmlyy / game.py
Created January 31, 2022 15:43
Guessing game in Python
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}: ')
@Rmlyy
Rmlyy / brightness
Created December 17, 2021 19:27
Change screen brightness by 10%
#!/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