Skip to content

Instantly share code, notes, and snippets.

👻
Boo

Michael Wildman tehmantra

👻
Boo
Block or report user

Report or block tehmantra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tehmantra
tehmantra / scpsync-photo.bat
Created Apr 19, 2014
WinSCP Folder synchronizer
View scpsync-photo.bat
@echo off
pause
echo --- %date% - %time%: WinSCP Sync startup
echo option batch continue > "C:\var\scpsync-photo.tmp"
echo option confirm off >> "C:\var\scpsync-photo.tmp"
echo open michael@ds01 >> "C:\var\scpsync-photo.tmp"
echo synchronize local "C:\Users\Michael\Pictures" "/home/photo" -delete >> "C:\var\scpsync-photo.tmp"
echo keepuptodate "C:\Users\Michael\Pictures" "/home/photo" -delete >> "C:\var\scpsync-photo.tmp"
"C:\Program Files (x86)\WinSCP\WinSCP.com" /script="C:\var\scpsync-photo.tmp"
echo --- %date% - %time%: WinSCP shutdown
@tehmantra
tehmantra / delayed-startup.bat
Last active Aug 29, 2015
Windows startup script to delay the loading of non-critical programs
View delayed-startup.bat
@echo off
title michael@pumbaa
echo _____ ______ ___ __ ___ ___ ________ _____ ______ ________ ________
echo ^|^\ _ \ _ \^|^\ \ ^|^\ \^|^\ \^|^\ \ ^|^\ ___ \^|^\ _ \ _ \^|^\ __ \^|^\ ___ \
echo \ \ \\\__\ \ \ \ \ \ \ \ \ \ \ \ \ \ \_^|^\ \ \ \\\__\ \ \ \ \^|^\ \ \ \\ \ \
echo \ \ \\^|__^| ^\ \ \ \ __\ \ \ \ \ \ \ \ \ \ \\ \ \ \\^|__^| ^\ \ \ __ \ \ \\ \ \
echo \ \ \ \ \ \ \ \^|^\__\_\ \ \ \ \ \____\ \ \_\\ \ \ \ \ \ \ \ \ \ \ \ \\ \ \
echo \ \__\ \ \__\ \____________\ \__\ \_______\ \_______\ \__\ \ \__\ \__\ \__\ \__\\ \__\
echo \^|__^| ^\^|__^|^\^|____________^|^\^|__^|^\^|_______^|^\^|_______^|^\^|__^| ^\^|__^|^\^|__^|^\^|__^|^\^|__^| ^\^|__^|
echo.
View mwil.ahk
; mwil.ahk
; Userful functions for AHK using an Apple keyboard
;
; @author Michael Wildman wildsimulation@gmail.com
; Launchy
;#Space::Send ^!{Space}
; (Win + Down) Minimize active window
#Down::WinMinimize, A
@tehmantra
tehmantra / ffmpeg-webm.bat
Created May 18, 2014
ffmpeg video to webm converter with prompts (needs ffmpeg in PATH)
View ffmpeg-webm.bat
@echo off
echo ^>--- FFmpeg webm ---
echo.
set /P ffinput=">Input file: "
set /P ffbitrate=">Bitrate (e.g. 500k): "
set /P ffss=">Start time (hh:mm:ss): "
set /P ffduration=">Duration (ss): "
set /P fffps=">FPS: "
echo.
echo ^>ffmpeg -i %ffinput% -c:v libvpx -b:v %ffbitrate% -ss %ffss% -t %ffduration% -quality good -cpu-used 0 -r %fffps% -auto-alt-ref 1 -lag-in-frames 16 -vf scale=-1:720 -an -pass 1 -f webm null
View asciiwin7.bat
@echo off
echo ___ __ ___ ________ ________ ________ ___ __ ________ ________
echo ^|^\ \ ^|^\ \^|^\ \^|^\ ___ \^|^\ ___ \^|^\ __ \^|^\ \ ^|^\ \^|^\ ____\ ^|^\_____ \
echo \ \ \ \ \ \ \ \ \ \\ \ \ \ \_^|^\ \ \ \^|^\ \ \ \ \ \ \ \ \___^|_ \^|___/ /^|
echo \ \ \ __\ \ \ \ \ \ \\ \ \ \ \ \\ \ \ \\\ \ \ \ __\ \ \ \_____ \ / / /
echo \ \ \^|^\__\_\ \ \ \ \ \\ \ \ \ \_\\ \ \ \\\ \ \ \^|^\__\_\ \^|____^|^\ \ / / /
echo \ \____________\ \__\ \__\\ \__\ \_______\ \_______\ \____________\____\_\ \/__/ /
echo \^|____________^|^\^|__^|^\^|__^| ^\^|__^|^\^|_______^|^\^|_______^|^\^|____________^|^\_________^|__^|/
echo \^|_________^|
echo ________ ___ _________ ________ ___ ___ _______ ________
@tehmantra
tehmantra / sdl-gl-main-template.cpp
Created Aug 25, 2014
SDL2 + OpenGL2.1 Template
View sdl-gl-main-template.cpp
///
/// main.cpp
/// SDL 2 + OpenGL 2.1
/// Template
///
/// Created by Michael Wildman on 16/08/14.
/// Copyright (c) 2014 Michael Wildman. All rights reserved.
///
#include <iostream>
View keybase.md

Keybase proof

I hereby claim:

  • I am tehmantra on github.
  • I am tehmantra (https://keybase.io/tehmantra) on keybase.
  • I have a public key ASCn4VYRy3qaP9Q7OnRggpZQDxmnxwYT8b_xFAC3qqjY-go

To claim this, I am signing this object:

View sql-database.ps1
function New-SqlDatabase ($server, $database, $path) {
$sw = Start-Timer
Write-Host "Creating database '$($database)'"
Write-Host "SQL Instance: $($server)"
if (!(Test-Path $path)) { New-Item -ItemType Directory -Path $path | Out-Null }
$query = "CREATE DATABASE [$($database)]
ON PRIMARY ( NAME = '$($database)', FILENAME = '$($path)\$($database).mdf' )
LOG ON ( NAME = '$($database)_log', FILENAME = '$($path)\$($database)_log.ldf' );"
@tehmantra
tehmantra / cloudflaredns.sh
Last active Jul 6, 2019 — forked from briped/gratisdns.sh
CloudFlare dynamic dns updater module for Synology
View cloudflaredns.sh
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
You can’t perform that action at this time.