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
function Write-BranchName () { | |
try { | |
$branch = git rev-parse --abbrev-ref HEAD | |
if ($branch -eq "HEAD") { | |
# we're probably in detached HEAD state, so print the SHA | |
$branch = git rev-parse --short HEAD | |
Write-Host " ($branch)" -ForegroundColor "red" | |
} | |
else { |
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
// Concrete Command | |
class OpenAlertCommand { | |
constructor(receiver) { | |
this.receiver = receiver | |
} | |
execute() { | |
this.receiver.alert('Gotcha!') | |
} | |
} |
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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=PhpStorm | |
Icon=/home/manuel/.local/opt/Webstorm/bin/phpstorm.svg | |
Exec="/home/manuel/.local/opt/Webstorm/bin/phpstorm.sh" %f | |
Comment=The Lightning-Smart PHP IDE | |
Categories=Development;IDE; | |
Terminal=false | |
StartupWMClass=jetbrains-phpstorm |
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
# Show git branch name | |
force_color_prompt=yes | |
color_prompt=yes | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\n\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\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
#!/usr/bin/env bash | |
tag= | |
branch= | |
tag_value= | |
branch_value= | |
has_options= | |
print_usage() { | |
name="$(basename $0)" |
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
set -g mouse on | |
set -g status-style "bg=default" | |
set -g window-status-current-style "bg=default,reverse" | |
set -g window-status-separator '|' | |
set -g window-status-format " #W#{?window_flags,#F, } (M-#I) " | |
set -g window-status-current-format " #W#{?window_flags,#F, } (M-#I) " | |
set -g base-index 1 | |
set-window-option -g pane-base-index 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
#! /usr/bin/env bash | |
SLEEP="$1" | |
while [[ 1 -eq 1 ]]; do | |
if [[ $(($RANDOM % 2)) -eq 0 ]]; then | |
echo "Mute" | |
sudo osascript -e "set volume output muted true" | |
else | |
echo "Unmute" |
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
#!/usr/bin/env bash | |
DATE_HASH=$(date '+%Y%m%d%H%M%S') | |
DEFAULT_LOCATION="$HOME/recording-$DATE_HASH.wav" | |
printf "\e[1mCreating loopback devices...\e[0m\n\n" | |
sudo modprobe snd-aloop | |
RAW_LOOPBACK_DEVICES=$(aplay -l | grep Loopback | sed -E "s/card\s([0-9]+).*device\s([0-9]*).*/hw:\1,\2/g" -) |
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 | |
# CONFIGURATION | |
readonly SCRIPT="$(basename $0)" | |
readonly APP_NAME=$1 | |
readonly TIMEOUT=.5 | |
# FILES | |
readonly GITIGNORE=""" | |
node_modules |
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
#!/usr/bin/env bash | |
# CONSTANTS | |
readonly MIDI_DEVICE_NAME=GarageKey | |
# VARIABLES | |
midi_device_port= | |
qsynth_port= | |
# FUNCTIONS |
OlderNewer