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
#!/usr/bin/env python | |
"""Convert the CS flash cards by jwasham to CSV for Anki import. | |
On import: | |
- Choose tab as the field separator | |
- Ignore lines where first field matches existing note | |
- Allow HTML in fields |
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
;;; table.el --- create and edit WYSIWYG text based embedded tables | |
;; Copyright (C) 2000, 2001 Takaaki "Tak" Ota | |
;; Emacs Lisp Archive Entry | |
;; Filename: table.el | |
;; Version: 1.5.54 | |
;; Keywords: wp, convenience | |
;; Author: Takaaki Ota <[email protected]> | |
;; Maintainer: Takaaki Ota <[email protected]> |
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
;;; company-tern.el --- Tern backend for company-mode -*- lexical-binding: t -*- | |
;; Copyright (C) 2013-2016 by Artem Malyshev | |
;; Author: Artem Malyshev <[email protected]> | |
;; URL: https://github.com/proofit404/company-tern | |
;; Version: 0.3.0 | |
;; Package-Requires: ((company "0.8.0") (tern "0.0.1") (dash "2.8.0") (dash-functional "2.8.0") (s "1.9.0") (cl-lib "0.5.0")) | |
;; This program is free software; you can redistribute it and/or modify |
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/sh | |
TIMEOUT=15 | |
QUIET=0 | |
echoerr() { | |
if [ "$QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi | |
} | |
usage() { |
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
#!/usr/bin/env bash | |
set -e | |
readonly scriptname="${0##*/}" | |
function usage() { | |
cat <<USAGE >&2 | |
Usage: $scriptname EXPIRE FILE |
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
#!/usr/bin/env bash | |
set -e | |
function usage() { | |
cat <<USAGE >&2 | |
Usage: ${0##*/} [OPTION] [host] | |
Shut down the network attached server (NAS). This script has been | |
tested on Netgear ReadyNAS 312 (RN312). |
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
# -*- coding: utf-8 -*- | |
"""Example Google style docstrings. | |
This module demonstrates documentation as specified by the `Google Python | |
Style Guide`_. Docstrings may extend over multiple lines. Sections are created | |
with a section header and a colon followed by a block of indented text. | |
Example: | |
Examples can be given using either the ``Example`` or ``Examples`` | |
sections. Sections support any reStructuredText formatting, including |
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 | |
if [ -z "$1" ]; then | |
echo -e "Missing 1 parameter: Phabricator URL." | |
echo -e "ex: arc_setup.sh https://phabricator.mycompany.com" | |
fi | |
if ! hash git &> /dev/null || ! hash php &> /dev/null; then | |
echo -e " *****\n ***** INSTALLING GIT AND PHP\n *****" | |
sudo apt-get install git-core php5-cli php5-curl | |
fi |
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
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
"""Delete a S3 bucket with contents. | |
""" | |
from __future__ import absolute_import | |
from gevent import monkey ; monkey.patch_all() | |
from argparse import ArgumentParser | |
import boto3 |
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
""" | |
A Python Singleton mixin class that makes use of some of the ideas | |
found at http://c2.com/cgi/wiki?PythonSingleton. Just inherit | |
from it and you have a singleton. No code is required in | |
subclasses to create singleton behavior -- inheritance from | |
Singleton is all that is needed. | |
Singleton creation is threadsafe. | |
USAGE: |
NewerOlder