Skip to content

Instantly share code, notes, and snippets.

View Delivator's full-sized avatar
🏠
Working from home

David Delivator

🏠
Working from home
View GitHub Profile
// In chrome: Open the developer console with CTRL + J and paste the code bellow in the console
(function() {
let elements = document.getElementsByClassName("btn_grey_black");
for(var i = 0; i < elements.length; i++) {
let element = elements[i],
linkParts = element.getAttribute("href").split('\'');
UnsubscribeItem(linkParts[1], linkParts[3]);
}
})();
@Delivator
Delivator / rename_all_files.bat
Created April 8, 2018 13:00
Adds a "_1" to all files in the own directory
@echo off
for %%a in (*.*) do if not "%%a"=="%~nx0" (
echo Renaming %%~a in %%~na_1%%~xa
ren "%%~a" "%%~na_1%%~xa"
)
pause
// ==UserScript==
// @name Skribbl drawing downloader
// @namespace https://delivator.me/
// @version 0.4
// @description Adds a button to skribbl.io to save the drawing
// @author Delivator
// @match https://skribbl.io/*
// @grant none
// @homepage https://gist.github.com/Delivator/091d7aa72e785782a351fe9bcd7f7e1a
// @icon https://skribbl.io/res/favicon.png
@Delivator
Delivator / rename_images.ps1
Created July 12, 2018 15:40
Rename all .jpg images in a folder to a "img_####.jpg" format for easy ffmpeg usage.
$i = 1
Get-ChildItem *.jpg | %{Rename-Item $_ -NewName ("img_{0:D4}.jpg" -f $i++)}
// ==================== General Server Settings ====================
sv_cheats "1"
mp_limitteams "0"
mp_autoteambalance "0"
mp_roundtime "60"
mp_roundtime_defuse "60"
mp_maxmoney "60000"
mp_startmoney "60000"
mp_freezetime "0"
mp_buytime "9999"

Keybase proof

I hereby claim:

  • I am delivator on github.
  • I am delivator (https://keybase.io/delivator) on keybase.
  • I have a public key ASCSN78grQ-QOlTffm_S0ELDaFY4Tc8wlsLGZ3MbJUwSewo

To claim this, I am signing this object:

@Delivator
Delivator / disk-usage.php
Last active December 19, 2018 22:06
materialize based dashboard for my bananapi-nas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Disk Usage</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="material-icons.css" rel="stylesheet">
<link rel="stylesheet" href="materialize.min.css">
<style>
@Delivator
Delivator / leave_apex_lobby.ncl
Created June 2, 2019 19:59
Apex Legends quit nircmd macro/script [1920x1080]
sendkey esc press
wait 250
setcursor 960 624
wait 10
sendmouse left click
wait 250
setcursor 847 721
wait 10
sendmouse left click
@Delivator
Delivator / amazon_smile_redirect.user.js
Last active August 14, 2019 10:26
Amazon Smile redirect
// ==UserScript==
// @name Amazon Smile redirect
// @namespace https://Bgmn.me
// @version 0.4
// @description Redirects www.amazon.de & www.amazon.com url to the respective smile.amazon.tdl domain
// @author Bgmn.me
// @include https://www.amazon.*
// @grant none
// @homepage https://gist.github.com/Delivator/1c124681d85d0e9046214397ee6aaed3
// ==/UserScript==
#!/bin/bash
function paste.click(){
if [ -z "$1" ]; then
curl -s --data-binary @- https://paste.click/s/;
else
curl -s --data-binary @$1 https://paste.click;
fi;
};