Skip to content

Instantly share code, notes, and snippets.

@thespad
thespad / Get-GamePlayTime.ps1
Last active December 16, 2017 14:35
Recording Game Run Time
[CmdletBinding()]
param()
#Modified from original script https://herringsfishbait.com/2015/03/06/powershell-recording-process-run-time-or-how-long-have-i-played-that-game-for/
<# THESE ARE THE BITS YOU CHANGE #>
# Where the Output File Goes
[string]$DataFilePath="$env:userprofile\Documents\GamePlayTimes.csv"
@thespad
thespad / dotabrag.py
Last active August 29, 2015 14:05 — forked from 7596ff/dotabrag.py
Tweet Dota Match Results
import urllib
import json
import string
import sys
import ConfigParser
import tweepy
def craftTweet(match_id, level, hero, kills, deaths, assists, result, lobby):
unformatted = '{} some {} Dota as Lv{} {} KDA: {}/{}/{} #dotabrag\nDotabuff: {}'