Skip to content

Instantly share code, notes, and snippets.

View AviDuda's full-sized avatar
🦝

Avi Duda AviDuda

🦝
View GitHub Profile
@AviDuda
AviDuda / gamediscoverco.user.js
Last active October 7, 2023 23:32
GameDiscoverCo userscript
// ==UserScript==
// @name GameDiscoverCo Steam utils
// @description Links to GameDiscoverCo Plus
// @namespace GameDiscoverCo
// @match https://store.steampowered.com/app/*
// @grant none
// @version 1.0
// @author Avi Duda <[email protected]>
// @homepageURL https://gamediscover.co/
// @updateURL https://gist.github.com/AviDuda/8831316b2f20fdd4bbea375e2bed3416/raw/gamediscoverco.user.js
@AviDuda
AviDuda / itch-claim-bundle.user.js
Last active June 30, 2023 05:26
itch.io bundle claimer
// ==UserScript==
// @name itch.io - claim bundle items
// @namespace https://raccoon.land/
// @version 1.3
// @description Claims all items from itch bundles
// @author Avi Duda
// @match https://*.itch.io/*
// @icon https://icons.duckduckgo.com/ip2/itch.io.ico
// @grant GM.setValue
// @grant GM.getValue
// ==UserScript==
// @name itch.io play a random bundle game
// @namespace https://twitter.com/tomasduda
// @version 1.0
// @description Shows which game to play next from an itch.io bundle download page.
// @author Tomáš Duda
// @match https://itch.io/bundle/download/*
// @grant GM.setValue
// @grant GM.getValue
// @grant GM.deleteValue
@AviDuda
AviDuda / steam-store-dlc-reviews.user.js
Last active June 29, 2018 15:09
Steam Store DLC review stats
// ==UserScript==
// @name Steam Store DLC review stats
// @namespace https://timmy.im/
// @version 1.1
// @description Click on the "Get DLC reviews" link above DLC list
// @author Tomáš Duda
// @match https://store.steampowered.com/app/*
// @grant none
// ==/UserScript==
@AviDuda
AviDuda / gif-create.sh
Last active December 13, 2016 12:41
High quality gif
#!/bin/bash
# http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
# gif-create.sh video.mp4 output.gif start_time duration <fps> <width>
# default is 30 FPS, width 340
# Twitter limits: max 40 FPS and max 15 MB
start_time=$3
@AviDuda
AviDuda / journal.ps1
Last active October 29, 2016 15:01
Daily journal helper
# Script for keeping a daily journal.
#
# Expected file structure:
#
# template.txt
# bin
# journal.ps1
# journal
# {year}
# {month}
@AviDuda
AviDuda / docker-start.ps1
Created October 13, 2016 15:56
Docker Toolbox startup helper for Windows
# This script will hopefully make using Docker Toolbox on Windows a lot easier.
# There's Docker for Windows, but you need to live with Docker Toolbox if you have Windows 10 Home or an older version of Windows.
#
# The script checks if your shared folders are set up correctly in VirtualBox, starts the Docker VM,
# mounts the shared folders, and sets the environment in your current shell.
#
# This script assumes you have VBoxManage.exe in your PATH.
#
# License: MIT
@AviDuda
AviDuda / composer.bat
Last active September 15, 2016 23:20
WTServer Composer doesn't handle "composer global require" well - this should fix it.
@ECHO off
REM WTServer Composer doesn't handle "composer global require" well - this should fix it.
SET COMPOSER_HOME=c:\wtserver\bin\composer
SET COMPOSER_CACHE_DIR=c:\wtserver\bin\composer
SET composercmd=php "c:\wtserver\bin\composer\composer.phar"
IF "%1" == "global" (
SET cwd=%COMPOSER_HOME%
) ELSE (
@AviDuda
AviDuda / upgrade-cygwin.sh
Created May 21, 2016 17:47
Upgrade Cygwin packages with a simple alias
#!/bin/bash
echo 'alias upgrade-cygwin="wget https://cygwin.com/setup-x86_64.exe -O ~/setup-x86_64.exe; chmod +x ~/setup-x86_64.exe; ~/setup-x86_64.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode --upgrade-also --delete-orphans; echo Now close Cygwin."' >> ~/.bashrc
@AviDuda
AviDuda / blogger-to-disqus.py
Last active November 1, 2023 12:00 — forked from fajran/blogger-to-wordpress.py
Blogger's backup file to WordPress' WXR converter for Disqus
# -*- coding: utf-8 -*-
# Blogger's backup file to WordPress' WXR converter for Disqus.
#
# Original script: https://gist.github.com/fajran/5659455
#
# Only tested with posts and comments, and NOT with pages.
# May not be efficient for huge blogs since the script keeps
# all content in the memory during conversion.
#