#!/usr/bin/env bash
security -i unlock-keychain ~/Library/Keychains/vaultname.keychain-db
security -i unlock-keychain ~/Library/Keychains/login.keychain-db
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
$nvmexe = $null | |
$nodeexe = "node.exe" | |
if ($null -eq $env:NVM_HOME) { | |
Write-Output "NVM is not installed, or not installed correctly..." | |
} else { | |
Write-Output "NVM_HOME=$env:NVM_HOME" | |
Write-Output "NVM_SYMLINK=$env:NVM_SYMLINK" | |
Write-Output "PATH=$env:PATH" | |
To support my open-source work, consider adding me on Patreon.
An easy to refer to document for regularly setting up macOS 10.15 Catalina.
The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.
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
$apiKey = "" #Octopus API Key | |
$OctopusURL = "" #Octopus URL | |
$Header = @{ "X-Octopus-ApiKey" = $apiKey } | |
$ProjectName = "" #project name | |
$EnvironmentName = "" #environment name | |
[string[]]$filter = "" #Pattern to filter machines. e.g. "*:10934","*db*","http://Webserver1" |
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
#!/bin/bash -e | |
## Connects to a Windows AWS EC2 instance with clipboard and drive redirection | |
## automatically using the password encrypted with EC2 keys. Copy the instance | |
## ID to your clipboard, and execute the script. The password will be placed in | |
## your clipboard, and your Remote Desktop client will be used to connect. | |
if [[ -z "$1" ]]; then | |
INSTANCE=$(pbpaste) | |
else |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
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
docker-compose stop | |
docker system prune --force | |
docker rm $(docker ps -aq) | |
docker rmi $(docker images -q) |
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
$memoryManagementPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" | |
$virtualizationPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" | |
New-ItemProperty -Path $memoryManagementPath -Name "FeatureSettingsOverride" -Value 0 -PropertyType "DWord" -Force | Out-Null | |
New-ItemProperty -Path $memoryManagementPath -Name "FeatureSettingsOverrideMask" -Value 3 -PropertyType "DWord" -Force | Out-Null | |
if (!(Test-Path $virtualizationPath)) { | |
New-Item -Path $virtualizationPath -Force | Out-Null | |
} |
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
#!/bin/bash | |
pacman --sync --refresh --sysupgrade | |
pacman --sync --noconfirm --needed \ | |
make \ | |
base-devel \ | |
mingw-w64-i686-toolchain \ | |
mingw-w64-x86_64-toolchain \ | |
mingw-w64-i686-cmake \ |
NewerOlder