Skip to content

Instantly share code, notes, and snippets.

View DuckOfDoom's full-sized avatar

Vladimir Yanovsky DuckOfDoom

View GitHub Profile
cd /d/Games/World\ of\ Warcraft/
if [[ $# -eq 0 ]]; then
cp -r /c/Users/v.yanovsky/AppData/Local/TekkenGame .
#check out submodule
cd _retail_/Interface/Addons/DOD
git checkout master
git add .
@DuckOfDoom
DuckOfDoom / league.py
Last active April 23, 2019 10:03
A python script to pull data about your current game participants from Riot Games API.
#!python
import requests
import os
import json
import sys
from prettytable import PrettyTable
apiKey="YOUR_KEY"
@DuckOfDoom
DuckOfDoom / dsym.py
Created December 14, 2018 07:39
Zip dSYM files from Downloads folder
#!python
import os
import shutil
from zipfile import ZipFile
import zipfile
os.chdir(os.environ["HOME"] + "/Downloads")
def findfile(f):
@DuckOfDoom
DuckOfDoom / apkinstaller.py
Last active February 23, 2024 14:29
Python apk/obb installer. Chooses the most recent apk/obb by modification date, installs .apk and pushes obb to special folder
#!python
import os
import subprocess
package = "COM.YOUR.PACKAGE"
os.chdir(os.environ["HOME"] + "/Downloads")
def isApk(f):
@DuckOfDoom
DuckOfDoom / Main.hs
Last active November 7, 2016 15:56
Html parsing
{-# OPTIONS_GHC -Wall #-}
{-# TemplateHaskell #-}
module Main where
import Control.Lens (makeLenses, (.~), (^.))
import Data.List.Split (chunksOf)
import Data.ByteString.Lazy (ByteString)
import qualified Data.ByteString.Lazy as LBS (writeFile, toStrict)
@DuckOfDoom
DuckOfDoom / gist:88c4627273da2182fe84841c9bdca125
Created October 7, 2016 10:38
Delete git tag from origin.
git tag -d 12345
git push origin :refs/tags/12345
@DuckOfDoom
DuckOfDoom / paredit.txt
Created February 25, 2016 20:36
Vim paredit help
*paredit.txt* Paredit Last Change: 29 Dec 2013
Paredit Mode for Vim *paredit* *slimv-paredit*
Version 0.9.12
The paredit.vim plugin performs structured editing of s-expressions used in
the Lisp, Clojure, Scheme programming languages. It may come as part of Slimv
but it is also distributed separately as a standalone plugin.
|paredit-mode| Paredit mode
@DuckOfDoom
DuckOfDoom / FaceOnCamera.cs
Last active January 25, 2016 12:58
Unity3d FaceOnCamera
using System;
using UnityEngine;
/// <summary>
/// Поворачивает объект Z-осью на камеру. Также можно указать, какая ось объекта будет смотреть вверх.
/// </summary>
public class FaceOnCamera : MonoBehaviour
{
[SerializeField] private bool _faceOnEditorCamera;
[SerializeField] private Axis _axisUp = Axis.Y;
require 'json'
if ARGV.size < 1
puts "Enter file name"
exit
end
json = JSON.parse File.open(ARGV[0], 'r').read
beautiful = JSON.pretty_generate json
File.open(ARGV[0], 'w').write(beautiful)
@DuckOfDoom
DuckOfDoom / .gitconfig
Last active February 25, 2016 20:38
Git Config
[core]
autocrlf = false
preloadindex = true
fscache = true
editor = vim
ignorecase = false
[alias]
bclean = "!f() { git remote prune origin && git branch --merged develop | grep -v -e "develop" -e "master" | xargs -r git branch -d;}; f"
adc = !git lg -5 && git add -A :/ && git status && git commit
lcm = log -1 --pretty=%B