Skip to content

Instantly share code, notes, and snippets.

@achabotl
achabotl / Validate External Links in Google Docs.md
Last active March 8, 2023 18:07
Validate External Links in Google Docs
@achabotl
achabotl / extract.sh
Created April 21, 2017 03:16
Shell function to extract any archive type
# Copied from a tweet by @drbunsen
# https://twitter.com/drbunsen
extract () {
if [ -f $1 ]
then
case $1 in
(*.tar.bz2) tar xjf $1 ;;
(*.tar.gz) tar xzf $1 ;;
(*.bz2) bunzip2 $1 ;;
(*.rar) unrar x $1 ;;

Keybase proof

I hereby claim:

  • I am achabotl on github.
  • I am chabot (https://keybase.io/chabot) on keybase.
  • I have a public key ASBFew0EDGBo-CHHeYerUn6t1Em3v5jEODnYwIDT0gF3PAo

To claim this, I am signing this object:

@achabotl
achabotl / doi2bib
Last active June 24, 2016 15:30
doi2bib
#!/bin/sh
if [[ "${1}" == "http"* ]] ; then
doi="${1}"
else
doi="http://dx.doi.org/${1}"
fi
# Stopped working around 2015-10-04.
# curl -sLH "Accept: text/bibliography; style=bibtex" "${doi}" | sed 's/^ *//'
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@achabotl
achabotl / jasa.csl
Last active August 29, 2015 14:14 — forked from egaudrain/jasa.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>The Journal of the Acoustical Society of America</title>
<id>http://www.zotero.org/styles/the-journal-of-the-acoustical-society-of-america</id>
<link href="http://www.zotero.org/styles/the-journal-of-the-acoustical-society-of-america" rel="self"/>
<link href="http://scitation.aip.org/journals/doc/ASALIB-home/corp/pdf/jasa/author_contrib.pdf" rel="documentation"/>
<link href="http://www.zotero.org/styles/apa" rel="template"/>
<author>
<name>Etienne Gaudrain</name>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.