This file contains hidden or 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 | |
# List sinks with 'pacmd list-sink-inputs' | |
OUTPUTS[0]="alsa_output.pci-0000_00_1b.0.analog-stereo" | |
OUTPUTS[1]="bluez_sink.A0_E9_DB_01_A9_71" | |
OUTPUT=${OUTPUTS[$1]} | |
pacmd set-default-sink $OUTPUT >/dev/null 2>&1 |
This file contains hidden or 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/sh | |
pandoc -f markdown -t plain "$1" | tr "[:punct:][:space:]" "\n" | sort | uniq -c | sort -n |
This file contains hidden or 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
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
type = 'cat-file -t' | |
dump = 'cat-file -p' | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
ac = !git add -A && git commit |
This file contains hidden or 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 | |
# General settings | |
username="bitbucket username" | |
password="bitbucket password" | |
tmp_local_repo_path=/tmp/bb_migration | |
# Define repository mappings: repos["hg_repo_name"]="new_git_repo_name" | |
declare -A repos | |
#repos["hg_repo_1"]="new_git_repo_1" |
This file contains hidden or 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 | |
SET CYGWIN_BASH=D:\cygwin\bin\bash.exe | |
SET DYNDNS_SHELLSCRIPT_PATH=c:/path/to/dyndnslogin.sh | |
%CYGWIN_BASH% --login -c '%DYNDNS_SHELLSCRIPT_PATH%' | |
REM You can also use optional arguments (if the script is modified) | |
REM %CYGWIN_BASH% --login -c '%DYNDNS_SHELLSCRIPT_PATH% username password' |
This file contains hidden or 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
; Disable Mouse in Visual Studio and Sublime | |
; © Marcell Spies (@marcells) | |
SetTitleMatchMode 2 | |
GroupAdd WindowsToDeactivateMouse, Microsoft Visual Studio | |
GroupAdd WindowsToDeactivateMouse, Sublime | |
#IfWinActive ahk_group WindowsToDeactivateMouse | |
NoMouseAvailable() | |
{ |
This file contains hidden or 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
REM ******************************************************************* | |
REM If you don't want to pollute your PATH variable, just copy this | |
REM script to your %windir% or path with your commandline tools. | |
REM ******************************************************************* | |
@echo off | |
SET SUBLIME_PATH=Sublime Text 2\sublime_text.exe | |
IF EXIST "%PROGRAMFILES%\%SUBLIME_PATH%" GOTO RUN_SUBLIME |