This file contains 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
# Include Git Branch name in prompt if applicable | |
# See: https://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac/ | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /' | |
} | |
PS1="$PS1\$(parse_git_branch)" |
This file contains 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
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
This file contains 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
// ==UserScript== | |
// @name Remove Ads/Cruft from facebook.com | |
// @namespace http://onai.net/ | |
// @version 0.1 | |
// @description Removes ads, cruft | |
// @author Kevin Gwynn | |
// @match https://www.facebook.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
param([String]$requestuser=$env:username) | |
( | |
New-Object System.DirectoryServices.DirectorySearcher( | |
"(&(objectCategory=User)(samAccountName=$requestuser))" | |
) | |
).FindOne().GetDirectoryEntry().memberOf |
This file contains 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
@echo off | |
: TODO: dynamic path | |
powershell %USERPROFILE%\bin\ad-groups-for-user.ps1 %* |
This file contains 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 | |
cmd.exe /c "ad-groups-for-user.bat $*" |
This file contains 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
@echo off | |
NET GROUP %* /DOMAIN |
This file contains 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 | |
cmd.exe /c "ad-users-in-group.bat $*" |
This file contains 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
// ==UserScript== | |
// @name Close Mimecast Windows automatically | |
// @namespace http://onai.net/ | |
// @version 0.1 | |
// @description Close mimecast windows automatically | |
// @author You | |
// @match https://us-api.mimecast.com/m/* | |
// @grant window.close | |
// ==/UserScript== |
This file contains 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
// ==UserScript== | |
// @name Amazon Inject CamelCamelCamel Link | |
// @namespace http://onai.net/ | |
// @version 0.4 | |
// @description Makes product title a link to CamelCamelCamel | |
// @author Kevin Gwynn | |
// @match https://*.amazon.com/* | |
// @grant none | |
// ==/UserScript== |
OlderNewer