Skip to content

Instantly share code, notes, and snippets.

View VADemon's full-sized avatar
💬
What is this, a social network? Just move to GitLab 🍪

VADemon VADemon

💬
What is this, a social network? Just move to GitLab 🍪
View GitHub Profile
@VADemon
VADemon / BW.au3
Created December 22, 2020 09:24
Arrange Windows (Borderless)
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: VADemon | GitHub+GitLab | https://twitter.com/BotOfWar
Version: 1.0
Script Function:
Arrange Windows on Desktop in borderless fashion. Monitor selection: at the mouse curser.
#ce ----------------------------------------------------------------------------
@VADemon
VADemon / get-wget-lua.sh
Last active November 16, 2020 14:46
Archiveteam wget-lua / wget-at self-compile zstd libzstd
#!/usr/bin/env bash
#
# This script clones and compiles wget-lua.
#
# first, try to detect gnutls or openssl
CONFIGURE_SSL_OPT=""
if builtin type -p pkg-config &>/dev/null
then
if pkg-config gnutls
@VADemon
VADemon / rftools-BUGGED_LIVINGMATTER.cfg
Created December 4, 2019 02:24
FTB Revelations: Fixed RFTools Matter Beamer's Living Matter transfer
# Configuration file
blockprotector {
I:blockProtectorMaxRF=500000
I:blockProtectorRFPerTick=20000
B:enabled=true
I:maxProtectDistance=10
I:rfForExplosionProtection=10000
I:rfForHarvestAttempt=2000
I:rfPerProtectedBlock=5
@VADemon
VADemon / islastday.sh
Last active May 14, 2019 23:21
Bash/Cron: check last day of month / new or next month
#!/bin/bash
# for more info, escape chars in cron etc:
# https://unix.stackexchange.com/questions/89188/cron-allowed-special-character-l-for-last-day-of-the-month-on-debian
[ "$(date -d 'tomorrow' +%d)" == "01" ] && echo "next month" || echo "same month"
# UPD: found same solution https://stackoverflow.com/a/6139310/1599009
# exit code?
@VADemon
VADemon / string-replace.lua
Last active August 29, 2024 06:02
Plain-text string.replace for Lua (string.gsub without patterns)
-- USAGE:
-- string.replace("mystring", "my", "our")
-- or
-- local teststr = "weird[]str%ing"
-- teststr2 = teststr:replace("weird[]", "cool(%1)")
-- Warning: add your own \0 char handling if you need it!
do
local function regexEscape(str)
@VADemon
VADemon / _ShellFile.au3
Created April 26, 2018 23:32
vYouOpen GUI to open local Youtube videos in browser
#include-once
; #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7
; #INDEX# =======================================================================================================================
; Title .........: _ShellFile
; AutoIt Version : v3.2.12.1 or higher
; Language ......: English
; Description ...: Create an entry in the shell contextmenu when selecting an assigned filetype, includes the program icon as well.
; Note ..........:
; Author(s) .....: guinness
@VADemon
VADemon / comment-watcher.sh
Last active April 17, 2018 12:28
Monitoring of profile comments for Steam. Please use it on your own profile >.>
#!/bin/bash
# Install GitForWindows, it comes with Git Bash - Bash Shell, the Linux Console:
# https://git-scm.com/download/win
# (or you can try to use your Windows 10 unix shell)
#
# Next step: Change the URL and save folder below
# Double click "comment-watcher.sh"
# Press Ctrl+C to close this script
~820820
~~~~~~~
~90022979
~~~~~~~~~
~27huss
~7gnaas
~~janalme
~*
~1
~<yanderse
@VADemon
VADemon / gist:5024728
Created February 24, 2013 17:35
AntiTeamFlash script for CS2D 0.1.2.2+
--Licensed under WTFPLv2; script made by VADemon v1.0
addhook("attack", "flash.attack")
flash = {}
function flash.attack(id) --on throwing
if player(id, "weapontype")==52 or player(id, "weapontype")==0 then
flash.check_for_flash(id)
end
end
@VADemon
VADemon / adminsay.lua
Last active October 7, 2015 21:18
Requested by: http://www.unrealsoftware.de/forum_posts.php?post=327431 Toggle-able Adminsay Lua v1.2
--Adminsay by VADemon version 1.3 http://www.unrealsoftware.de/profile.php?userid=7844
--Requested by AtomKuh http://www.unrealsoftware.de/profile.php?userid=86415
adminsay={}
adminsay.enabled = {}
adminsay.prefix = {}
adminsay.suffix = {}
adminsay.color = {}
adminsay.standardcolor = "255255255" --if user hasn't a defined color
function adminsay.addUser(usgn, prefix, suffix, color) -- DONT TOUCH THIS