Skip to content

Instantly share code, notes, and snippets.

View neggles's full-sized avatar
🐈
cat stuff, mostly

Andi Powers-Holmes neggles

🐈
cat stuff, mostly
View GitHub Profile
@neggles
neggles / Profile.ps1
Last active April 12, 2021 03:45 — forked from apfelchips/Profile.ps1
my crossplatform PowerShell Profile
# 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
@neggles
neggles / readme.md
Last active August 5, 2020 01:57 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

#!/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]"
@neggles
neggles / bashrc_ccze.sh
Last active February 16, 2021 23:08 — forked from cristobal/bashrc_ccze.sh
Colorize things with CCZE
# 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'
@neggles
neggles / Force 100 DPI Scale.ps1
Created May 11, 2020 06:14 — forked from itsho/Force 100 DPI Scale.ps1
Force 100% DPI Scaling for all screens even if the default value is different
# =========================================================================================================
# 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
@neggles
neggles / iterm2-solarized_instructions.md
Last active June 17, 2020 16:41 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

How to install

iTerm2

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.