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.
@subs-comps-git
subs-comps-git / basic-win10-install
Last active September 14, 2019 04:20
Basic Windows 10 software packages
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowFileExtensions
Set-TaskbarOptions -Size small -Dock left
choco feature enable --name="'allowGlobalConfirmation'"
$url = "https://gist.githubusercontent.com/subs-comps-git/43602f036f2a7f35d51d335bbb6ec250/raw/9ed1e75b1665ce6ee7df662ef8358f3a1c2b6c67/installed_chocolatey_packages"
$packages = [string[]] @((iwr -useb $url).Content -split "`n")
# testing
$packages = $packages[0..3]

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 / kickstart-baremetal.cfg
Last active February 14, 2018 03:35
For bare metal installs of CentOS 7
text
install
url --url ftp://mirrors.ocf.berkeley.edu/centos-altarch/7.4.1708/os/i386/
lang en_US.UTF-8
keyboard us
timezone US/Pacific
rootpw vagrantrpw!
user --name=vagrant --password=vagrant
@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 / gist:d6256b19d4b24dd6a6a49e54314829a5
Created August 25, 2017 20:38
vagrant problems when vagrant user does NOT have root access
C:\>vagrant up
ERROR loader: Unknown config sources: [:"33673420_CentOS7_virtualbox", :"32996320_vm_default_CentOS7
_virtualbox"]
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
install
text
lang en_US.UTF-8
keyboard us
timezone US/Pacific
rootpw vagrantrpw!
user --name=vagrant --password=vagrant
auth --enableshadow --passalgo=sha512 --kickstart
@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.
choco feature enable -n allowGlobalConfirmation
cinst atom
choco feature disable -n allowGlobalConfirmation
@subs-comps-git
subs-comps-git / python_win.txt
Last active January 17, 2017 19:49
Installs basic python environment on Windows
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
choco feature enable -n allowGlobalConfirmation
cinst python
cinst git
cinst pycharm-community
cinst sublimetext3