Skip to content

Instantly share code, notes, and snippets.

@zaufi
zaufi / disable-tasks.cmd
Last active Jun 28, 2021
Some tips to minimize "Windows 10 Enterprise 2016 LTSB N (x64)" installation to be used for continuous integration
View disable-tasks.cmd
schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable
schtasks /Change /TN "Microsoft\Windows\ApplicationData\CleanupTemporaryState" /Disable
schtasks /Change /TN "Microsoft\Windows\ApplicationData\DsSvcCleanup" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
@zaufi
zaufi / svn-dump.sh
Created Nov 21, 2017
Make a complete dump of a remote Subversion repository
View svn-dump.sh
# NOTE Add list of repositories to dump to `svn-repo.list` file
# one name per line...
while read -r repo || [[ -n "${repo}" ]]; do
svnrdump dump "https://svn.example.com/${repo}" | bzip2 -zc > "${repo}.svn-dump.bz2"
done < svn-repo.list
@zaufi
zaufi / gitconfig
Last active Jul 26, 2018
My Git config w/ aliases & etc... (true color terminal required)
View gitconfig
[core]
editor = mcedit
autocrlf = input
[alias]
aliases = config --get-regexp alias
br = branch
ci = commit
cl = clone
clm = "!f(){ r=$1; d=$(basename ${r//:/\\/} .git); git clone $r $d/master; };f"