Skip to content

Instantly share code, notes, and snippets.

View AviDuda's full-sized avatar
🦝

Avi Duda AviDuda

🦝
View GitHub Profile
@AviDuda
AviDuda / README.md
Last active April 23, 2024 10:32
Unmuting Twitch VODs
@AviDuda
AviDuda / linkfilter.user.js
Last active March 9, 2017 12:29
Skip Steam linkfilter
// ==UserScript==
// @name Skip Steam linkfilter
// @version 1.0
// @description Fuck linkfilter
// @match http://steamcommunity.com/linkfilter/?url=*
// @match http://steamcommunity.com/linkfilter?url=*
// @match https://steamcommunity.com/linkfilter/?url=*
// @match https://steamcommunity.com/linkfilter?url=*
// @run-at document-start
// ==/UserScript==
@AviDuda
AviDuda / gpl.php
Last active August 29, 2015 14:18
Gold pressed latinum
<?php
$usd = 29.99;
$slip = 2; // 1 slip = 2 dollars
$strip = $slip * 100; // 1 strip = 200 dollars
$bar = $strip * 20; // 1 bar = 4000 dollars
$result = array();
$bars = floor($usd / $bar);
@AviDuda
AviDuda / promoter.user.js
Last active February 15, 2016 13:05
Promoter userscript
// ==UserScript==
// @name Promoter press requests
// @namespace https://timmy.im/
// @version 1.0
// @description Makes the Promoter press request page better.
// @author Tomáš Duda
// @match https://*.promoterapp.com/press_requests/open
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addStyle

Keybase proof

I hereby claim:

  • I am TomasDuda on github.
  • I am tomasduda (https://keybase.io/tomasduda) on keybase.
  • I have a public key whose fingerprint is A9F5 4265 5B4A 8EED B016 C135 79F1 234F 12C4 2980

To claim this, I am signing this object:

@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.
#
@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 / 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 / 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