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
export NFS_MOUNT_PATH="$HOME/titan" # colon-separated list | |
export BACKUP_PS1= | |
function avoid_gitps_on_nfs() { | |
IFS=":" | |
set $NFS_MOUNT_PATH | |
for var in $NFS_MOUNT_PATH; do | |
if [ -n "`echo \"^$PWD\" | grep -e $var`" ]; then | |
export BACKUP_PS1=$PS1 | |
export PS1=$NFS_PS1 |
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
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/time.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <syslog.h> | |
#include <string.h> |
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 | |
export CRED=root@id | |
SSH=$(whereis ssh | awk '{print $2}') | |
JQ=$(whereis jq | awk '{print $2}') | |
SCP=$(whereis scp | awk '{print $2}') | |
if [ -z "$SSH" ]; then | |
echo "Unable to find ssh" 1>&2 | |
return 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
(save-excursion | |
(setq xx-overlay (make-overlay (1+ (line-beginning-position)) (line-end-position) | |
nil t)) | |
(overlay-put xx-overlay 'wrap-prefix t) | |
(overlay-put xx-overlay 'before-string | |
(propertize "o" 'display (list (list 'margin 'right-margin) | |
"Overlay text") | |
))) |
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
/* | |
* Foot pedal prototype | |
*/ | |
#include <HID.h> | |
#include <Keyboard.h> | |
#define PIN_CTRL 2 | |
#define PIN_ALT 3 | |
#define PIN_SHIFT 4 |
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
<html> | |
<style> | |
@keyframes liftoff { | |
0% { | |
clip-path: inset(0px 200px 0px 0px); | |
} | |
10% { | |
clip-path: inset(0px 0px 0px 0px); | |
} | |
100% { |
OlderNewer