- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| # 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. |
| 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] |
| 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 |
| """ | |
| This script upgrades all outdated python packages. | |
| """ | |
| __author__ = "serafeimgr" | |
| from multiprocessing import Pool, cpu_count | |
| from subprocess import PIPE, Popen | |
| def run_command(command): |
| 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 |
| #!/usr/bin/env python | |
| """ Recursively walk the current working directory looking for broken | |
| symlinks. If any broken symlinks are found print out a report and exit | |
| with status 1. If none are found print out OK and exit with status 0. | |
| """ | |
| import sys,os | |
| print "Checking for broken symlinks...", | |
| links = [] |
| choco feature enable -n allowGlobalConfirmation | |
| cinst atom | |
| choco feature disable -n allowGlobalConfirmation |
| Update-ExecutionPolicy Unrestricted | |
| Set-WindowsExplorerOptions -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| Enable-RemoteDesktop | |
| choco feature enable -n allowGlobalConfirmation | |
| cinst python | |
| cinst git | |
| cinst pycharm-community | |
| cinst sublimetext3 |