(For MAC only, for now)
I found this easy way to lunch a ticket in the browser from spotlight.
Compiled script as app can be downloaded here.
| # Prerequisite: | |
| # gem install tiny_tds | |
| require 'tiny_tds' | |
| require 'benchmark' | |
| # Database connection parameters | |
| server = 'your_server' | |
| database = 'your_database' | |
| username = 'your_username' |
| # setup_tmux_session.sh | |
| # chmod +x setup_tmux_session.sh | |
| # Usage: ./setup_tmux_session.sh SESSION_NAME FOLDER_PATH | |
| SESSION_NAME=$1 | |
| FOLDER_PATH=$2 | |
| # Check if the session exists | |
| tmux has-session -t "$SESSION_NAME" 2>/dev/null |
| on run {input, parameters} | |
| activate application "iTerm" | |
| tell application "iTerm" | |
| tell current tab of current window | |
| set theString to "Lorem ipsum dolor sit amet, consectetur adipiscing elit." | |
| tell application "System Events" | |
| repeat with thisChar in theString | |
| keystroke thisChar | |
| delay 0.03 | |
| end repeat |
| # Git Shortcuts | |
| alias gs='git status' | |
| alias gst='git status -sb' | |
| alias ga='git add' | |
| alias gau='git add -u' # Removes deleted files | |
| alias gp='git pull' | |
| alias gh='git push' | |
| alias gc='git commit -v' | |
| alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment | |
| alias go='git checkout' |
(For MAC only, for now)
I found this easy way to lunch a ticket in the browser from spotlight.
Compiled script as app can be downloaded here.
| <!DOCTYPE html> | |
| <head> | |
| <title>HTML5 Camera Fun</title> | |
| </head> | |
| <style type="text/css"> | |
| .crop-canvas { | |
| bottom: -30px; |
| article.link.match(/([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}/) |