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
@Delivator
Delivator / autoexec.cfg
Last active July 16, 2023 12:22
CS:GO autoexec.cfg
// ==================== Ascii Art ====================
echo "$$$$$$$\ $$$$$$$$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$$\ "
echo "$$ __$$\ $$ _____|$$ | \_$$ _|$$ | $$ |$$ __$$\\__$$ __|$$ __$$\ $$ __$$\ $$$\ $$$ |$$ _____|"
echo "$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ / $$ | $$ | $$ / $$ |$$ | $$ | $$$$\ $$$$ |$$ | "
echo "$$ | $$ |$$$$$\ $$ | $$ | \$$\ $$ |$$$$$$$$ | $$ | $$ | $$ |$$$$$$$ | $$\$$\$$ $$ |$$$$$\ "
echo "$$ | $$ |$$ __| $$ | $$ | \$$\$$ / $$ __$$ | $$ | $$ | $$ |$$ __$$< $$ \$$$ $$ |$$ __| "
echo "$$ | $$ |$$ | $$ | $$ | \$$$ / $$ | $$ | $$ | $$ | $$ |$$ | $$ | $$ |\$ /$$ |$$ | "
echo "$$$$$$$ |$$$$$$$$\ $$$$$$$$\ $$$$$$\ \$ / $$ | $$ | $$ | $$$$$$ |$$ | $$ |$$\ $$ | \_/ $$ |$$$$$$$$\ "
echo "\_______/ \________|\________|\______| \_/ \__| \__| \__| \______/ \__| \__|\__|\__| \
// 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]);
}
})();
// ==================== 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"
@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
@Delivator
Delivator / instagram-volume-slider.user.js
Last active June 18, 2023 09:58
Adds a volume slider to Instagram.
// Volume slider from: https://codepen.io/emilcarlsson/pen/PPNLPy
// ==UserScript==
// @name Instagram volume slider
// @namespace https://delivator.me/
// @version 0.5
// @description Adds a volume slider to Instagram
// @author Delivator.me
// @match https://www.instagram.com/*
// @homepage https://gist.github.com/Delivator/902cdaff0f21186b514e576e4670ff70
// ==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++)}
@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>

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 / transcode_all_mp4.ps1
Last active December 26, 2022 15:37
Re-encodes all .mp4 files in the same folder as the script to decrease their size
$location = Get-Location
$files = Get-ChildItem $location -Filter "*.mp4" | Sort-Object CreationTime
$quality = "36"
$counter = 0
$total = $files.Length
# Change Write-Progress Style
$PSStyle.Progress.MaxWidth = 240
Write-Host "Transcoding all mp4 files in this directory to mkv using NVENC AV1 with CQ $quality"