This file contains hidden or 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
# #################################################### | |
# | |
# Name: Microsoft.PowerShell_profile.ps1 | |
# Profile: CurrentUserCurrentHost | |
# PSVersion: 7 | |
# | |
# Profile Load Order: | |
# - AllUsersAllHosts | |
# - AllUsersCurrentHost | |
# - CurrentUserAllHosts |
This file contains hidden or 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
// an example to create a new mapping `ctrl-y` | |
mapkey('<Ctrl-y>', 'Show me the money', function() { | |
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
}); | |
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
map('gt', 'T'); | |
// an example to remove mapkey `Ctrl-i` | |
unmap('<Ctrl-i>'); |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
if [[ "$#" != "2" ]]; then | |
echo "USAGE:" | |
echo "get-latest-github-release.sh <user> <repo> [file extension] [outfile]" | |
exit 1 | |
fi | |
repo="${1}/${2}" |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
function cfg { | |
git --work-tree=$HOME --git-dir=$HOME/.cfg $@ | |
} | |
git clone --bare https://github.com/NickCrew/dotfiles.git $HOME/.cfg | |
mkdir -p .config-backup | |
cfg checkout |
This file contains hidden or 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-Alias -Name iconda -Value Initialize-Anaconda -Force | |
function Initialize-Anaconda { | |
# !! Contents within this block are managed by 'conda init' !! | |
(& "${HOME}\anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression | |
} | |
function Send-InputTo ($target) { | |
# Pipe output to args of $target |
This file contains hidden or 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
#!/usr/bin/env bash | |
DOTS_REMOTE="https://github.com/NickCrew/dotfiles.git" | |
DOTS_REPO="$HOME/.dots.git" | |
DOTS_BRANCH=master | |
git clone --bare $DOTS_REMOTE $DOTS_REPO | |
function cfg { | |
git --git-dir=$DOTS_REPO --work-tree=$HOME $@ |
This file contains hidden or 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 | |
# Copyright (c) 2000-2014 Synology Inc. All rights reserved. | |
################### NOTE ################### | |
# | |
# Adjust following settings to match your LDAP server. | |
# | |
# If using TLS or ldaps://, you have to append LDAP server's certificate to | |
# your client (in the file specified by tls_cacert in ldap.conf). | |
# |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
sudo apt-get update | |
sudo apt-get install -y bison gcc make pkg-config automake autoconf libncurses5-dev libevent-dev | |
mkdir -p ~/src | |
git clone https://github.com/tmux/tmux ~/src/tmux |
This file contains hidden or 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
#!/usr/bin/env zsh | |
if [[ -z $ZDOTDIR ]]; then | |
ZDOTDIR=$HOME | |
fi | |
if ! command -v brew 1>/dev/null; then | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
fi |
This file contains hidden or 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
[alias] | |
# Show git status | |
st = status | |
# Commit staged changes with editor | |
ct = commit | |
# Push to remote | |
pu = push | |
# Pull from remote | |
pl = pull | |
# Fetch remote data |