I hereby claim:
- I am kevinjalbert on github.
- I am kevinjalbert (https://keybase.io/kevinjalbert) on keybase.
- I have a public key ASBaI00PzCjfm33W097j1OlZBBHZahbLTV3TXXSnFT7Jsgo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
while getopts 'b:dh' OPTION; do | |
case "$OPTION" in | |
b) | |
divergent_branch=$OPTARG | |
;; | |
d) | |
debug=true | |
;; | |
h) |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'open3' | |
def files_with_search_query(sha, search_query) | |
`git show --format="" --name-only #{sha} -i --pickaxe-regex -S #{search_query}`.split("\n") | |
end | |
def grep_over_file(sha, file, search_query) |
#!/usr/bin/env ruby | |
require "httparty" | |
require "nokogiri" | |
require "open-uri" | |
require "uri" | |
RAINDROP_AUTH_TOKEN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
READWISE_AUTH_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
LAST_SAVED_HIGHLIGHT=000000000 # <- Keeps track of import position (Updates automatically) |
set deviceName to "Kevin’s iPhone" | |
activateScreenKeepAwake() | |
readyQuickTime() | |
setVideoInput(deviceName) | |
setAudioInput(deviceName) | |
setVolume(1.0) | |
setScreenSize("maximize") | |
# ----- Functions ----- |
activate application "SystemUIServer" | |
set deviceName to "Kevin Jalbert's BeatsX" | |
tell application "System Events" | |
tell process "SystemUIServer" | |
set bluetoothMenu to (menu bar item 1 of menu bar 1 whose description contains "bluetooth") | |
tell bluetoothMenu | |
click | |
set deviceMenuItem to (menu item deviceName of menu 1) |
I hereby claim:
To claim this, I am signing this object:
Vim provides rather simple searching capabilities using the following keys while in normal mode:
/
performs a forward search of the provided pattern?
performs a backward search of the provided pattern*
performs a forward search of the word under the cursor#
performs a backward search of the word under the cursorIt is common while in vim to perform substitution tasks over the text you are editing. This is often accomplished using the following command:
:%s/<find>/<replacement>/g
The %s
command will perform substitution over every line within the buffer. The /<find>/<replace>
specifies the substitution to perform. Finally the /g
indicates that this should apply to multiple occurrences if they are present on the same line.
This works great, although there is little affordance in determining whether the specified <find>
will hit the matches you are interested in. The aforementioned command is a all-or-nothing with respect to execution, there is no visual feedback until you execute the command.
on run {input, parameters} | |
tell application "QuickTime Player" to quit | |
delay 0.5 | |
tell application "QuickTime Player" to activate | |
delay 0.5 | |