Skip to content

Instantly share code, notes, and snippets.

View AnthonyMastrean's full-sized avatar
🏡
Working remotely

Anthony Mastrean AnthonyMastrean

🏡
Working remotely
View GitHub Profile
@AnthonyMastrean
AnthonyMastrean / wordlist.txt
Created September 26, 2014 14:28
mnemonic encoding
abraham
absent
absorb
academy
accent
acid
acrobat
action
active
actor
@AnthonyMastrean
AnthonyMastrean / Invoke-RakeTabExpansion.ps1
Last active March 10, 2022 05:32
PowerShell tab completion for Rake tasks via PowerTab
if(Test-Path Function:Register-TabExpansion) {
Register-TabExpansion -Name 'rake' -Type Command -Handler {
rake -T | %{ $_ -match '(^rake)(?<task>.*)(#.*)' } | %{ $matches['task'] } | %{ $_.Trim() }
}
}
@AnthonyMastrean
AnthonyMastrean / Update-AUPackages.md
Last active August 21, 2020 08:05
Update-AUPackages Report #powershell #chocolatey
@AnthonyMastrean
AnthonyMastrean / consolefonts.ps1
Created February 20, 2014 22:50
Add font choices to the console
$script:ConsoleFontsKey = "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont"
<#
.SYNOPSIS
Add a font to the available fonts list in the console.
.DESCRIPTION
This function will confirm that the font you provide is installed in the
system. And will confirm and manage adding the font properly to the
registry, per the rules.
@AnthonyMastrean
AnthonyMastrean / vagrant-5001.log
Last active February 16, 2018 20:14
hashicorp/vagrant
$ vagrant box add puppetlabs/centos-6.5-64-puppet --force --debug
INFO global: Vagrant version: 1.7.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.0/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
{
"cursor_size": "small",
"font_face": "DejaVu Sans Mono",
"font_size": "0x16",
"popup_colors": "dark_magenta,white",
"dark_gray": "#767676",
"screen_colors": "gray,black",
"dark_green": "#13a10e",
"command_history_no_duplication": false,
"window_size": "120x30",
@AnthonyMastrean
AnthonyMastrean / Export-ChocolateyPackages.ps1
Last active September 11, 2017 15:57
Export installed Chocolatey packages to a packages.config
$packages = Get-ChildItem (Join-Path $ENV:chocolateyinstall 'lib')
@AnthonyMastrean
AnthonyMastrean / Disable-WindowsUpdateAutoReboot.ps1
Last active August 10, 2017 23:16
Prevent Windows update from forcibly rebooting the computer
$key = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"
if(-not(Test-Path $key)) {
New-Item $key -Force
}
New-ItemProperty -Path $key -Name "NoAutoRebootWithLoggedOnUsers" -PropertyType DWORD -Value 1
@AnthonyMastrean
AnthonyMastrean / feed.rss
Created May 24, 2017 16:04
american-rhetoric-podcast-top-100-speeches
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file generated by Dropcaster 0.0.7 -->
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title>American Rhetoric - Top 100 Speeches</title>
<link>http://www.americanrhetoric.com/</link>
<description>Rationalize rhetoric and it speaks to your mind, personify her and she speaks to your soul.</description>
<itunes:summary>Rationalize rhetoric and it speaks to your mind, personify her and she speaks to your soul.</itunes:summary>
<generator>Dropcaster 0.0.7</generator>
<item>
@AnthonyMastrean
AnthonyMastrean / dotnet.ps1
Last active January 2, 2016 09:39
Boxstarter scripts
# no MSDN license here
cinst VisualStudio2012WDX
cinst VisualStudioExpress2012Web
cinst VisualStudioExpress2012Windows8
cinst IHateRegions
cinst IndentGuides
cinst NugetPackageManager
cinst PerfWatsonMonitor
cinst VSColorOutput