This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################## | |
# Boxstarter options | |
# start http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Boyan-Kostadinov/f8ef4d95a6eae7b1e79f1db440f24f07/raw/f25d3b78b8bf68d9503d949363a75d1a218acca9/BoxStarter-Setup | |
######################################## | |
# Don't allow reboots | |
$Boxstarter.RebootOk = $true | |
# Is this a machine with no login password | |
$Boxstarter.NoPassword = $false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################## | |
# Boxstarter options | |
# start http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Boyan-Kostadinov/7fc472634cba0049fc2784e3034c1edb/raw/e862a768aaa7f940482af00a275cc4a5dd0e3542/BoxStarter-WindowsFeatures | |
######################################## | |
######################################## | |
# Don't allow reboots | |
$Boxstarter.RebootOk = $true | |
# Is this a machine with no login password | |
$Boxstarter.NoPassword = $false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Chocolatey if you don't already have it | |
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex | |
# Optional: Set chocolatey configuration | |
# choco config set commandExecutionTimeoutSeconds 14400 | |
# choco feature enable -n allowGlobalConfirmation | |
# choco feature enable -n allowEmptyChecksums | |
# Optional: Get the list of available packages on the AsRock X99 driver feed | |
# choco list -s https://www.myget.org/F/asrockx99/api/v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$env:ModuleUnderTest = '' | |
$baseDir = $PSScriptRoot | |
$filter = "*.*" | |
$testsFilter = "*.Tests.ps1" | |
$watchScript = $MyInvocation.MyCommand.Name | |
$eventName = 'TestFilesChanged' | |
$excludeTests = @( | |
'FileHelpers' | |
'RegistryHelpers' | |
'WindowsFeatures' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You will find this at the top of the ChocolateyInstall.ps when you run ```choco new PackageName``` | |
cd Drive:\Path\To\PackageName\tools | |
# Get the full path to the install script | |
$f = Join-Path -Resolve . .\chocolateyinstall.ps1 | |
# Do some search and repalce to remove all the contents | |
gc $f | ? {$_ -notmatch "^\s*#"} | % {$_ -replace '(^.*?)\s*?[^``]#.*','$1'} | Out-File $f+".~" -en utf8; mv -fo $f+".~" $f | |
# This will be the result, I've commented it out here to show it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install chocolatey | |
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex | |
# Confgiure chocolatey defaults | |
choco config set commandExecutionTimeoutSeconds 14400 | |
choco feature enable -n allowGlobalConfirmation | |
choco feature enable -n allowEmptyChecksums | |
# Add the Win-Boxstarter source to your local configurtion with top priority | |
# Then add the Chocolatey official feed at priority 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module AU | |
$global:productName = 'webstorm' | |
$global:updatesUri = 'https://www.jetbrains.com/updates/updates.xml' | |
$global:stableVersionDownloadUri = 'https://download.jetbrains.com/webstorm/WebStorm-$version.exe' | |
function au_BeforeUpdate() { | |
$Latest.Checksum32 = Get-RemoteChecksum $Latest.Url32 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So I run a peculiar setup, ATV2 with my media coming from iTunes on a desktop, Windows 7 PC I never really touch | |
anymore. I know I could JB the ATV, or I could replace the PC with a NAS or some shit .. anyway, I'm lazy. | |
... | |
But not so lazy not to figure out how to make a crappy powershell script, hook it up in task scheduler under hstart | |
(http://www.ntwind.com/software/hstart.html), run it every 5 minutes against my TV / Movie folders, looking for new | |
files, then automatically converting them (with Handbrake) into the right format, and then automatically | |
adding them to iTunes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Test-Install { | |
[CmdletBinding(SupportsShouldProcess=$true)] | |
param( | |
[Parameter(Position = 0, Mandatory = $true)] [string] $package, | |
[Parameter(Position = 1, Mandatory = $false)] [string] $baseDir = (Get-Location) | |
) | |
$profilePath = Split-Path -Parent $profile | |
$packageExtensions = (Join-Path $profilePath '..\..\Projects\BoxStarter\Chocolatey-Package.extension\extensions\Chocolatey-Package.extension.psm1' -Resolve) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boxstarter options | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
# Unrestricted is only good for testing, don't use that in production | |
Update-ExecutionPolicy RemoteSigned | |
Disable-InternetExplorerESC | |
Disable-UAC | |
#Enable-RemoteDesktop | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles |
OlderNewer