forked from denisidoro/navi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40ed4e6
commit 69e7420
Showing
21 changed files
with
158 additions
and
56 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
% android, device | ||
|
||
# Get property | ||
adb -s <device> shell getprop <property> | ||
|
||
# Install APK | ||
adb -s <device> install -r <path> | ||
|
||
# Uninstall package | ||
adb -s <device> uninstall -r <package> | ||
|
||
# Clear user data for package | ||
adb -s <device> shell pm clear <package> | ||
|
||
# Dispatch a deep-link / open URI | ||
adb -s <device> shell am start <uri> | ||
|
||
$ device: adb devices --- --headers 1 --column 1 | ||
|
||
|
||
|
||
% android, emulator | ||
|
||
# Start emulator | ||
"$ANDROID_HOME/tools/emulator" -avd <emulator> -netdelay none -netspeed full | ||
|
||
$ emulator: "$ANDROID_HOME/tools/emulator" -list-avds |
This file was deleted.
Oops, something went wrong.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
% weather | ||
|
||
# Show weather info for current location | ||
curl -s "wttr.in" \ | ||
| grep -v "New feature" \ | ||
| grep -v Follow | ||
|
||
# Show weather info for a specific location | ||
curl -s "wttr.in/<location>" \ | ||
| grep -v "New feature" \ | ||
| grep -v Follow | ||
|
||
|
||
|
||
% qr code | ||
|
||
# Create a QR code with the content | ||
echo <content> | curl -F-=\<- qrenco.de |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
% osx, mac os | ||
|
||
# Lock system | ||
pmset displaysleepnow | ||
|
||
# Show hidden files in Finder | ||
defaults write com.apple.finder AppleShowAllFiles -bool true; \ | ||
killall Finder | ||
|
||
# Hide hidden files in Finder | ||
defaults write com.apple.finder AppleShowAllFiles -bool false; \ | ||
killall Finder | ||
|
||
# Show items in desktop | ||
defaults write com.apple.finder CreateDesktop -bool true; \ | ||
killall Finder | ||
|
||
# Hide items in desktop | ||
defaults write com.apple.finder CreateDesktop -bool false; \ | ||
killall Finder |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
bind '"\C-g": " \C-u \C-a\C-k`printf \"\\e\" && navi --print`\e\C-e\C-y\C-a\C-d\C-y\ey\C-h\C-e\C-b"' | ||
bind '"\C-g": " \C-u \C-a\C-k`printf \"\\e\" && NAVI_USE_FZF_ALL_INPUTS=true navi --print`\e\C-e\C-y\C-a\C-d\C-y\ey\C-h\C-e\C-b"' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
function navi-widget -d 'Call navi' | ||
set -q NAVI_USE_FZF_ALL_INPUTS; or set -l NAVI_USE_FZF_ALL_INPUTS "true" | ||
begin | ||
navi --print | while read -l r; set result $result $r; end | ||
|
||
if [ -n "$result" ] | ||
echo $result | ||
|
||
# Remove last token from commandline. | ||
commandline -t "" | ||
end | ||
end | ||
|
||
# commandline -f repaint | ||
end | ||
|
||
bind \cg navi-widget | ||
|
||
if bind -M insert > /dev/null 2>&1 | ||
bind -M insert \cr navi-widget | ||
end |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)" | ||
export NAVI_PATH="${SCRIPT_DIR}/test:${SCRIPT_DIR}/cheats" | ||
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)" | ||
export NAVI_PATH="${NAVI_HOME}/test:${NAVI_HOME}/cheats" | ||
|
||
"${SCRIPT_DIR}/navi" "$@" | ||
"${NAVI_HOME}/navi" "$@" |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)" | ||
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)" | ||
|
||
cd "$SCRIPT_DIR" | ||
cd "$NAVI_HOME" | ||
|
||
git pull | ||
"${SCRIPT_DIR}/scripts/install" || true | ||
"${NAVI_HOME}/scripts/install" || true |
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 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 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 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 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 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
Oops, something went wrong.