Skip to content

Instantly share code, notes, and snippets.

@wormeyman
wormeyman / enableAdmin.ps1
Last active August 29, 2015 14:07
Enable Local Administrator account on Vista/7/8/10
# Run this command in an elevated (PowerShell) prompt.
# You may have to run the commands in reverse order.
# The first command activates the admin account
net user administrator /active:yes
# The second command gives it the password of "pass" without the quotes
net user administrator pass
@wormeyman
wormeyman / removeWindows8AppsFromAllCurrentUsersAndFutureUsers.ps1
Last active August 29, 2015 14:07
This PowerShell script removes all modern/metro apps that can be removed on a windows 8/8.1 system
Get-AppxPackage -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online
@wormeyman
wormeyman / removeWIN8ModernApps.ps1
Last active August 29, 2015 14:06
Remove all Windows 8 mondern apps that can be removed.
Get-AppxPackage -AllUsers | Remove-AppxPackage; Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online
#!/usr/bin/env sh
#You may need to enable the Universe Repository
# Last updated 2019-07-17 11:47:49
echo "******************************************************************"
echo "Tools for Ubuntu WSL"
echo "******************************************************************"
echo "Adding Git PPA"
echo "******************************************************************"
sudo add-apt-repository -y ppa:git-core/ppa
echo "******************************************************************"
@wormeyman
wormeyman / .zshrc
Last active August 29, 2015 14:03
oh my zsh config for .zshrc
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="bira"
# Uncomment the following line to use case-sensitive completion.
@wormeyman
wormeyman / OpenWithBrackets.bat
Last active January 19, 2022 20:33 — forked from mrchief/LICENSE.md
Run as administrator, when you right click on a file or folder it gives you the option to open in brackets. When you are done close the cmd window.
@echo off
SET st2Path=C:\Program Files (x86)\Brackets\Brackets.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f
@wormeyman
wormeyman / livestreamerrc
Last active August 29, 2015 14:01
My LiveStreamer config, pretty simple.
# Format is option=value. Lines starting with a # is considered comments
# and are ignored.
# Important: You must use a quoted path if there are spaces in the path. This
# is because the player command is parsed like a shell command to allow
# parameters to be passed to the player.
# VLC
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
#player="C:\Program Files\VideoLAN\VLC\vlc.exe"
Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo "Domain = " & WshNetwork.UserDomain
WScript.Echo "Computer Name = " & WshNetwork.ComputerName
WScript.Echo "User Name = " & WshNetwork.UserName
@wormeyman
wormeyman / Menu Settings.xml
Created May 22, 2014 16:04
Menu Settings for Classic Start Menu
<?xml version="1.0"?>
<Settings component="StartMenu" version="4.0.4">
<MenuStyle value="Classic2"/>
<SearchPath value="0"/>
<SearchFiles value="0"/>
<SearchInternet value="0"/>
<SkinC2 value="Windows 8"/>
<SkinVariationC2 value=""/>
<SkinOptionsC2 value="E55CEDD3|C26EAF5D|86F3669C|5225DC46|5D3248DC|1FC64124|5EA361A2|6EDFA36A|2E838408|22C9A1E2|0663DC39|"/>
<SkipMetro value="1"/>
# Updated: 2014-04-21
# Eric S. Johnson
# Sets The Registry on Windows 7 to Allow Auto Login of checkin user.
# Reference: http://superuser.com/questions/28647/how-do-i-enable-automatic-logon-in-windows-7-when-im-on-a-domain/28654#28654
#The Code:
Set-ItemProperty -Name AutoAdminLogon -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value 1 #Allow Auto Login
Set-ItemProperty -Name DefaultUserName -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value username #Set the User Name
Set-ItemProperty -Name DefaultPassword -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value password #Set the Password
Set-ItemProperty -Name DefaultDomainName -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value domain #Set the Domain to your organizations domain name
Remove-ItemProperty -Name AutoLogonCount -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Force #Remove the count of auto login (probably