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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r |
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 | |
#We would occasionally get commits to the Api directory with API in all caps. | |
#This is incorrect. This script will help me detect that. Put it on a cron job. | |
cd ~/source/rm-trunk/UI | |
results=$(/mingw64/bin/git ls-files --full-name | /usr/bin/grep UI/API) | |
if [ ${#results} -gt 0 ] |
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
# REQUIREMENTS: | |
# 1. The MySql connector must be installed and the path properly configured on line 24 | |
param( | |
[string]$query, | |
[int]$limit, | |
[int]$db0x | |
) | |
if (!$query) { |
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
#This files modifies the prompt used by GitBash. | |
#Place it in ~/.config/git/ | |
#Currently the only modification is that it removes the 'username@machine' and 'MING64' from the default prompt. | |
PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]' # set window title | |
PS1="$PS1"'\n' # new line | |
# PS1="$PS1"'\[\033[32m\]' # change to green | |
# PS1="$PS1"'\u@\h ' # user@host<space> | |
# PS1="$PS1"'\[\033[35m\]' # change to purple | |
# PS1="$PS1"'$MSYSTEM ' # show MSYSTEM |
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
To make Pageant automatically run and load keys at startup: | |
- Find the location of pageant.exe | |
- Windows key + R to open the 'run' dialog box | |
- Type: 'shell:startup' in the dialog box | |
- Create a shortcut to the pageant.exe and put into this startup folder. |
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
" Import the defaults | |
source $VIMRUNTIME/defaults.vim | |
" Turn off visual mode | |
set mouse-=a | |
" change the highlight comment color to lightblue so that its actually readable | |
highlight comment ctermfg=lightblue |
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
# Git visual log displays commit tree view with who did what when and in which branch | |
git config --global alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n" --color' |
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
# generated by Git for Windows | |
# location C:\Users\<username>\.bash_profile | |
test -f ~/.profile && . ~/.profile | |
test -f ~/.bashrc && . ~/.bashrc |
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 Hubitat UI enhancements | |
// @description Hubitat UI enhancements. This is a fork from https://github.com/surfingbytes/hubitat/blob/master/hubitat-ui-enhancements.js. All credit goes to surfingbytes. For more information see this post: https://community.hubitat.com/t/ui-enhancements/89773 | |
// @version 1.2 | |
// @grant unsafeWindow | |
// @include http://192.168.0.100/* | |
// @require https://code.highcharts.com/stock/highstock.js | |
// @require https://code.highcharts.com/stock/modules/data.js | |
// @require https://code.highcharts.com/stock/highcharts-more.js | |
// @require https://code.highcharts.com/stock/modules/exporting.js |
NewerOlder