Skip to content

Instantly share code, notes, and snippets.

docker stop sql1
docker stop redis1
docker stop rabbitmq1
docker rm sql1
docker rm redis1
docker rm rabbitmq1
docker run `
-e "ACCEPT_EULA=Y" `
-e "SA_PASSWORD=P@ssword123" `

I found it very useful to use concfg tool and scoop to install colors and fonts for Powershell:

Install scoop:

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

Install concfg:

scoop install concfg
@themindfulcoder
themindfulcoder / xrandr-custom-resolution.md
Created April 1, 2018 09:47
How to add a custom resolution to xrandr

Find the maximum resolution

xrandr | grep maximum

Use gtf to create a mode line

gtf 1440 900 59.9
@themindfulcoder
themindfulcoder / OctopusDeploymentSlackNotification.ps1
Created November 6, 2017 15:16
A power shell script that sends a slack notification from a octopus deployment step
Set-StrictMode -Version Latest
$proxy = 'http://127.0.0.1:8080'
$apiKey = "###APIKEY###"
$uri = "https://hooks.slack.com/services/" + $apiKey
$deploymentEnvironment = $OctopusParameters["Octopus.Environment.Name"]
$deployByWho = $OctopusParameters["Octopus.Deployment.CreatedBy.DisplayName"]
$deployErrorDetail = $OctopusParameters["Octopus.Deployment.ErrorDetail"]
$deploymentVersion = $OctopusParameters["Octopus.Release.CurrentForEnvironment.Number"]
@themindfulcoder
themindfulcoder / VersionInfo.ps1
Created October 25, 2016 08:06
A powershell script to list files and their version info recursively.
$files = Get-ChildItem .\* -Include *.dll, *.exe -Recurse
foreach ($file in $files)
{
$name = (Get-Item $file).FullName;
$vif = (Get-Item $file).VersionInfo.FileVersion
$vip = (Get-Item $file).VersionInfo.ProductVersion
Write-host $Name F:$vif P:$vip
}
@themindfulcoder
themindfulcoder / ArchLinuxInstall.md
Last active April 8, 2018 09:16
Dell XPS 9550 Minimal Arch Linux Install Guide
Verify UEFI mode is enabled
ls /sys/firmware/efi/efivars
Setup network
wifi-menu
ping archlinux.org
Enable network system clock synchronization