I hereby claim:
- I am alexmurray on github.
- I am alexmurray (https://keybase.io/alexmurray) on keybase.
- I have a public key ASDSM5OSxiBsyuFmqu97BTkmWvsDXfq8-Gfje6dHcivZRwo
To claim this, I am signing this object:
| diff --git a/interfaces/builtin/u2f_devices.go b/interfaces/builtin/u2f_devices.go | |
| index 8413c94b2..7a702051f 100644 | |
| --- a/interfaces/builtin/u2f_devices.go | |
| +++ b/interfaces/builtin/u2f_devices.go | |
| @@ -121,6 +121,9 @@ var u2fDevices = []u2fDevice{ | |
| const u2fDevicesConnectedPlugAppArmor = ` | |
| # Description: Allow write access to u2f hidraw devices. | |
| +# Allow to access all usb devices and rely on the device cgroup for mediation. | |
| +/dev/bus/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9] rw, |
I hereby claim:
To claim this, I am signing this object:
| # Set the prompt to include the IP address instead of hostname | |
| function get_ip () { | |
| IFACE=$(ip -4 route | grep default | head -n1 | awk '{print $5}') | |
| if [ ! -z $IFACE ]; then | |
| echo -n "|"; ip -4 -o addr show scope global $IFACE | awk '{gsub(/\/.*/, "|",$4); print $4}' | paste -s -d "" | |
| else | |
| echo -n "||" | |
| fi | |
| } |
| sudo add-apt-repository ppa:ubuntu-elisp/ppa | |
| sudo apt-get update | |
| sudo apt-get install emacs25 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env xdg-open | |
| [Desktop Entry] | |
| Version=1.0 | |
| Terminal=false | |
| Type=Application | |
| Name=Emacs Client | |
| MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; | |
| Exec=/home/amurray/bin/ec %F | |
| Icon=emacs24 | |
| StartupWMClass=Emacs |
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # simple script to shutdown the running Emacs daemon | |
| # emacsclient options for reference | |
| # -a Alternate editor, runs bin/false in this case | |
| # -e eval the script |
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # Makes sure emacs daemon is running and opens the file in Emacs in | |
| # the terminal. | |
| # If you want to execute elisp, use -e whatever, like so | |
| # et -e "(message \"Word up\")" |
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # This script starts emacs daemon if it is not running, opens whatever file | |
| # you pass in and changes the focus to emacs. Without any arguments, it just | |
| # opens the current buffer or *scratch* if nothing else is open. The following | |
| # example will open ~/.bashrc | |
| # ec ~/.bashrc |
| # a nicer git-like svn diff which also works for svn externals which | |
| # normally svn diff doesn't show | |
| function svndiff () { | |
| svn status $* | grep '^ *[ADM]' | cut --complement -c -8 | awk '{printf "%s%c", $0, 0}' | xargs -0 svn diff -x -up --depth=files | colordiff | less -R; | |
| } | |
| function svndiffstat () { | |
| svn status $* | grep '^ *[ADM]' | cut --complement -c -8 | awk '{printf "%s%c", $0, 0}' | xargs -0 svn diff -x -up --depth=files | diffstat -C -p0 | |
| } |