This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert video to animated .gif | |
# requires FFmpeg 2.6 or higher | |
# http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
param( | |
[Parameter(Mandatory=$true)][string]$InputPath, | |
[string]$OutputPath, | |
[int]$Height=0 # 0 for input height | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cut video without re-encoding | |
# syntax for start and end times: | |
# http://ffmpeg.org/ffmpeg-utils.html#time-duration-syntax | |
param( | |
[Parameter(Mandatory=$true)][string]$InputPath, | |
[Parameter(Mandatory=$true)][string]$OutputPath, | |
[string]$StartTime="0", | |
[string]$EndTime="99:59:59.99" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import _winreg | |
# windows savegame location: | |
# HKCU/Software/Thomas Bowker/LYNE | |
def main(): | |
sets = 26 # A-Z | |
levels = 25 | |
for s in range(sets): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FBVVM | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Maintains set volume of videos on play of native video links on Facebook. | |
// @author Daile Alimo, pezcode | |
// @match https://www.facebook.com/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <ostream> | |
#include <fstream> | |
using namespace std; | |
class Log | |
{ | |
typedef std::ostream& (*ostream_manipulator)(std::ostream&); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ShooterGame.SGUIHUDPlayer] | |
MinimapPosition=(Align=(H=HA_LEFT, V=HA_BOTTOM), Attach=(H=HA_LEFT, V=HA_BOTTOM, HA="", VA=""), PixelOffset=(X=450, Y=0)) | |
ObituaryMessageLogPosition=(Attach=(H=HA_RIGHT, V=HA_CENTER)) | |
WeaponAmmoPosition=(Align=(H=HA_RIGHT, V=HA_BOTTOM), Attach=(H=HA_RIGHT, V=HA_BOTTOM, HA="", VA=""), PixelOffset=(X=420, Y=170), ShadowOffset=(X=-1, Y=-1)) | |
AbilityCooldownPosition=(Align=(H=HA_RIGHT, V=HA_BOTTOM), Attach=(H=HA_RIGHT, V=HA_BOTTOM, HA="", VA=""), PixelOffset=(X=330, Y=35), ShadowOffset=(X=-1, Y=-1)) | |
PlayerHealthPosition=(Align=(H=HA_LEFT, V=HA_BOTTOM), Attach=(H=HA_LEFT, V=HA_BOTTOM, HA="", VA=""), PixelOffset=(X=580, Y=175)) | |
GameWaveTimerPosition=(Attach=(H=HA_CENTER, V=HA_BOTTOM), PixelOffset=(Y=166, X=-55)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ShooterGame.SGUIHUDPlayer] | |
ChatInputPosition=(Align=(H=HA_LEFT, V=HA_BOTTOM), Attach=(H=HA_LEFT, V=HA_TOP,VA="Minimap"), PixelOffset=(X=50)) | |
MinimapPosition=(Align=(H=HA_LEFT,V=HA_TOP),Attach=(H=HA_LEFT,V=HA_BOTTOM,HA="PlayerHealth",VA="PlayerHealth"),PixelOffset=(X=0,Y=-50)) | |
ObituaryMessageLogPosition=(Align=(H=HA_RIGHT,V=HA_BOTTOM),Attach=(H=HA_RIGHT,V=HA_TOP,VA="Minimap"),PixelOffset=(X=150)) | |
ExpCounterPosition=(Align=(H=HA_CENTER, V=HA_TOP), Attach=(H=HA_CENTER, V=HA_CENTER), PixelOffset=(Y=75), ShadowOffset=(X=-1, Y=-1)) | |
WeaponAmmoPosition=(Align=(H=HA_LEFT,V=HA_TOP),Attach=(H=HA_CENTER,V=HA_TOP,VA="PLAYERHEALTH"),PixelOffset=(X=100,Y=0),ShadowOffset=(X=-1,Y=-1)) | |
AbilityCooldownPosition=(Align=(H=HA_RIGHT,V=HA_TOP),Attach=(H=HA_RIGHT,V=HA_BOTTOM,HA="WeaponAmmo",VA="WeaponAmmo"),PixelOffset=(X=0,Y=-50),ShadowOffset=(X=-1,Y=-1)) | |
PlayerHealthPosition=(Align=(H=HA_RIGHT,V=HA_BOTTOM),Attach=(H=HA_CENTER,V=HA_BOTTOM),PixelOffset=(X=-100,Y=250),ShadowOffset=(X=-1,Y=-1)) | |
GameWaveTimerPosition=(Align=(H=HA_LEFT, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$backupfolder = 'backup' | |
$files = 'ShooterGame.ini', 'ShooterInput.ini', 'ShooterUI.ini', 'ShooterEngine.ini' | |
ForEach($file in $files) { | |
$backupfile = "$backupfolder\$file" | |
New-Item $backupfile -Force | |
Copy-Item $file $backupfile | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from gimpfu import * | |
from gimpenums import * | |
import os | |
def batch_hue_shift(image, drawable, count, outdir): | |
assert 2 <= count <= 360 | |
folder, filename = os.path.split(image.filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert video to .mp4 (x264) | |
# copies audio stream | |
param( | |
[Parameter(Mandatory=$true)][string]$InputPath, | |
[string]$OutputPath, | |
[int]$Height=0, # 0 for input height | |
[switch]$Fast=$false | |
) |
OlderNewer