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
#!/bin/bash -e | |
# Send mail if /usr/bin/mail exists | |
if ! [ -x /usr/bin/mail ]; then | |
echo "Your system does not have /usr/bin/mail. Install the mailx or mailutils package" | |
exit 1 | |
fi | |
# workaround debian bug 900244 | |
if [[ $SMARTD_MESSAGE == "Device: /dev/nvme1, number of Error Log entries increased from"* ]] && \ |
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
diff --git a/src/content/actions/operation.js b/src/content/actions/operation.js | |
index 767f14b..d655170 100644 | |
--- a/src/content/actions/operation.js | |
+++ b/src/content/actions/operation.js | |
@@ -54,6 +54,10 @@ const exec = (operation) => { | |
return navigates.parent(window); | |
case operations.NAVIGATE_ROOT: | |
return navigates.root(window); | |
+ case operations.NAVIGATE_URL: | |
+ return navigates.url(window, operation.url); |
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
function LaunchGGBlame() | |
let cmd = printf("git gui blame --line=%d %s &", line("."), shellescape(bufname(""))) | |
let output = system(cmd) | |
if v:shell_error != 0 | |
let msg = printf("Error running '%s': %s", cmd, output) | |
echohl WarningMsg | echon msg | echohl None | |
return | |
endif | |
endfunction | |
command GGBlame call LaunchGGBlame() |
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
function TmuxPaste(buffer) | |
if ! a:buffer | |
let buffer = "0" | |
else | |
let buffer = a:buffer | |
endif | |
let tmpfile = tempname() | |
let cmd = printf("tmux save-buffer -b %s %s", shellescape(buffer), shellescape(tmpfile)) | |
let output = system(cmd) | |
if v:shell_error != 0 |
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
/* | |
* [email protected] | |
* | |
* A wrapper around mprotect(2) | |
* build with: | |
* cc -Wall -g -ldl wrapper.c -shared -fPIC -o wrapper.so | |
* | |
* run with: | |
* LD_PRELOAD=./somepath/wrapper.so ./otherprogram | |
* |