Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
| mack() { | |
| (($#)) || (echo "Usage: mack PATTERN PATTERN [PATTERN...]" && return 1) | |
| if (($# == 1)); then | |
| ack -l "$1" | |
| else | |
| grep -Ffx <(ack -l "$1") <(shift; mack "$@") | |
| fi | |
| } |
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
| #!/usr/bin/env bash | |
| # Standard-repo requirements: | |
| # w, awk, head, mktemp, split, grep, ck-list-sessions, sed, getent, cut | |
| # TODO Check whether awk can't exit immediately after first match | |
| ACTIVE_USER=`w --no-header -s | awk '/ :0 / {print $1}' | head -1` | |
| [ -n "$ACTIVE_USER" ] && { | |
| echo "$ACTIVE_USER" | |
| exit 0 |
| #! /usr/bin/env python | |
| '''Run fstrim in chunks and sleep in between | |
| ''' | |
| from __future__ import print_function, division | |
| import os, sys, argparse, time, string, re, logging | |
| from datetime import datetime | |
| from random import random | |
| from subprocess import check_output | |
| Function Write-Log | |
| { | |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True)] | |
| [String]$LogFile, | |
| [Parameter(Mandatory=$False)] | |
| [switch]$HiddenLogFile, |
| param ( | |
| [Parameter(Mandatory=$false)] | |
| $logPath = "C:\Code\CreateUser.txt", | |
| [Parameter(Mandatory=$false)] | |
| $csvPath = "C:\Code\ExampleUsers.csv", | |
| [Parameter(Mandatory=$false)] | |
| $homeRoot = "\\$env:computerName\home", | |
| [Parameter(Mandatory=$false)] | |
| $usvRoot = "\\$env:computerName\usv", | |
| [Parameter(Mandatory=$false)] |
Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"