Paragraph
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
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
# src: https://gist.github.com/neg2led/71aa954bd93750d3c1dadc9302e52654 | |
# New-Item $(Split-Path "$($PROFILE.CurrentUserCurrentHost)") -ItemType Directory -ea 0; Invoke-WebRequest -Uri "https://git\.io/JOL0Xu" -OutFile "$($PROFILE.CurrentUserCurrentHost)" | |
Clear-Host # remove advertisements | |
# bash-like | |
Set-Alias cat Get-Content -Option AllScope | |
Set-Alias cd Set-Location -Option AllScope | |
Set-Alias clear Clear-Host -Option AllScope |
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 | |
# | |
# This script will launch and configure a step-ca SSH Certificate Authority | |
# with OIDC and AWS provisioners | |
# | |
# See https://smallstep.com/blog/diy-single-sign-on-for-ssh/ for full instructions | |
OIDC_CLIENT_ID="[OAuth client ID]" # from Google | |
OIDC_CLIENT_SECRET="[OAuth client secret]" # from Google | |
ALLOWED_DOMAIN="[the domain name of accounts your users will use to sign to Google]" |
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
# CCZE Colourize Config for Ubuntu | |
# http://lintut.com/colorize-log-files-on-linux-using-ccze-tool/ | |
# http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/ | |
CCZE=`which ccze` | |
if [[ "$TERM" != dumb ]] && [[ -n "$CCZE" ]]; then | |
function colourify { $@ | $CCZE -A; } | |
alias colourify=colourify | |
alias configure='colourify ./configure' |
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
# ========================================================================================================= | |
# if you like to reset your DPI Scaling to the DEFAULT, you can use the registry (Option five) from here: | |
# https://www.tenforums.com/tutorials/5990-change-dpi-scaling-level-displays-windows-10-a.html#option5 | |
# | |
# But, since the default value is different on various monitors, if you like to force 100%, | |
# you need the following trick: | |
# for each monitor - set DPIValue to 0xFFFFFFFF (which is -1 in DWord) | |
# | |
# Last update: 18 December 2018 | |
# Created by: Itsho |
brew cask install iterm2
Or, if you do not have homebrew (you should ;)): Download and install iTerm2
iTerm2 has better color fidelity than the built in Terminal, so your themes will look better.