Skip to content

Instantly share code, notes, and snippets.

@cwill747
cwill747 / FailedMSI
Created April 23, 2013 00:55
Debugging a MSI installer.
MSI (s) (00:BC) [14:48:53:831]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 102, llSequenceNumber: 0, szDescription: "Installed ActiveState ActivePython 2.7.2.5 (32-bit)".
MSI (s) (00:BC) [14:58:54:132]: The call to SRSetRestorePoint API failed. Returned status: -2130706175. GetLastError() returned: -2130706175
@cwill747
cwill747 / ksdiff_rtc.sh
Created March 7, 2016 19:25
Kaleidoscope Diff for Rational Team Concert (RTC)
#!/bin/bash
filename=$(basename $3)
cp $3 /tmp/$filename
/usr/local/bin/ksdiff --merge --wait --output $1 --base $2 -- /tmp/$filename $4 --snapshot
rc=$?
exit $rc
@cwill747
cwill747 / reclaimWindows10.ps1
Last active January 9, 2017 17:56 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@cwill747
cwill747 / twitch_vod_seasons.sh
Created January 17, 2018 22:04
Downloads a Twitch Vod for Plex Tv Shows
#!/usr/bin/env bash
JSON="$(youtube-dl -j $1)"
UPLOADER=$(echo "${JSON}" | jq -c -r '.uploader')
UPLOAD_DATE=$(echo "${JSON}" | jq -cr '.upload_date')
TITLE=$(echo "${JSON}" | jq -cr '.title')
EXTENSION=$(echo "${JSON}" | jq -cr '.ext')
UPLOAD_YEAR=${UPLOAD_DATE:0:4}
BASE_FOLDER="${UPLOADER}/${UPLOAD_YEAR}"
VIDEO_COUNT=$(ls -l "${BASE_FOLDER}" | wc -l)
@cwill747
cwill747 / Dockerfile
Last active April 20, 2022 12:47
Python2.6 on Alpine Docker
FROM gliderlabs/alpine:3.4
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install ca-certificates so that HTTPS works consistently