Skip to content

Instantly share code, notes, and snippets.

View subs-comps-git's full-sized avatar

Jason G subs-comps-git

View GitHub Profile
# SSH Agent Functions
# Mark Embling (http://www.markembling.info/)
#
# How to use:
# - Place this file into %USERPROFILE%\Documents\WindowsPowershell (or location of choice)
# - Import into your profile.ps1:
# e.g. ". (Resolve-Path ~/Documents/WindowsPowershell/ssh-agent-utils.ps1)" [without quotes]
# - Enjoy
#
# Note: ensure you have ssh and ssh-agent available on your path, from Git's Unix tools or Cygwin.

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@subs-comps-git
subs-comps-git / upgrade_pip_packages.py
Created September 8, 2017 21:52 — forked from serafeimgr/upgrade_pip_packages.py
A python script to upgrade all outdated python packages.
"""
This script upgrades all outdated python packages.
"""
__author__ = "serafeimgr"
from multiprocessing import Pool, cpu_count
from subprocess import PIPE, Popen
def run_command(command):
@subs-comps-git
subs-comps-git / detect-broken-symlinks.py
Created June 17, 2016 21:02 — forked from seanh/detect-broken-symlinks.py
A Python script to check for broken symlinks in the current working directory. I use this as part of a pre-commit hook with git.