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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import io | |
import os | |
import sys | |
from shutil import rmtree | |
from setuptools import find_packages, setup, Command |
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
const log4js = require('log4js'); | |
// Accessory configurations for log4js | |
// Works with log4js >= 2.3.3 | |
// Usage: | |
//var logger = require('./app/loadLogger').logger; // Default is stderr only | |
// Alternate (app : file + stderr) | |
// const loadLog = require('./app/loadLogger'); | |
// var logger = loadLog.log4js.getLogger('app'); // For an express app: stderr + file : logs/application.log) |
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
;; Add this to your favorite html/jekyll configuration elisp file | |
;; Replace $IMG with the relative path to your websites image folder (e.g. img/) | |
(defun add-popover (link imagepath caption linktext) | |
"Generate an html popover. | |
-- Downloads an image file to your website/blog (etc.) image folder. | |
-- Generate a Bootstrap HTML popover link at the cursor position with caption. | |
" | |
(interactive "MImage link:\nFImagepath:\nMCaption:\nMLink text:\n") | |
(url-copy-file link imagepath) |
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
# get_matching_blocks returns non-overlapping matches: https://bugs.python.org/issue35079 | |
# the incomplete result is considered a feature | |
def get_matching_blocks(s1, s2, overlap=True): | |
if type(s1) is not str: | |
throw TypeError("get_matching_blocks() expects a string as its first positional argument") | |
if type(s2) is not str: | |
throw TypeError("get_matching_blocks() expects a string as its second positional argument") | |
if type(overlap) is not bool: | |
throw TypeError("get_matching_blocks() expects a bool as the named argument 'overlap'") |
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
.PHONY: test docs | |
install: | |
pip install -r reuqirements.txt; | |
docs: docs/Makefile | |
cd docs; $(MAKE) docs | |
test: test/Makefile | |
cd test; $(MAKE) test |
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
from awscli.clidriver import create_clidriver | |
def s3sync(source, destination, *options): | |
old_env = dict(os.environ) | |
try: | |
env = os.environ.copy() | |
env["LC_CTYPE"] = u"en_US.UTF" | |
os.environ.update(env) | |
exit_code = create_clidriver().main(["s3", "sync", source, destination] + list(options)) |
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
delete require.cache[require.resolve('./dep')]; |
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
`/+o/. | |
.+sso+/:oydyo/:-:+shdys/ `-:. `-/+o+/` | |
`/sdh+/::/::ss:`ymdhyso//hmMNyhNNms+ososys+/-:/shms/` | |
.+hNNy++oo+/.`.--/osyhdmNNMMMMMMMMMNdsssssoso+hhhhsoo+ymdo. | |
-smNy/+ymmmmmNNNNMNMMMMMNNNmmNMMMMMMMMMho:///:--shydNMMNdo-sNs` | |
-hNd+-sNMNdmNMMMNNNMNNNMMMddNMMNNmNMMMMMMNmy+///::/:-:/++ymNNdmMN: | |
`sNMs`+NMNNNMMMMNNNMMMMMMNmhyso///+ohMmoNMmoo+/::/-:oymNNmsosshdhmMM/ | |
+NMMy`hMMMhyNMNMMNNNMds:-.`-:syddmNMMmyo`+yMMho:..-+//++omMNNNNNNNmdNMs | |
:mMMMh`yMNdodNNNMNMMMs.+sdmmmmmdhNMMMNhy/..`-syhNmdyssso+/.`:yNMMMMNMNMMMy | |
:NMNh:-+MMh+mdNNNNNMd.+NNMMMMMMMMmho:-......:--::ohNMMMMMMNmNy/.oNMNmNMNMMMs |
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
--============================================================================== | |
-- conky_orange.lua | |
-- | |
-- author : SLK | |
-- version : v2011062101 | |
-- license : Distributed under the terms of GNU GPL version 2 or later | |
-- | |
-- modified: me | |
-- version : v20171027 | |
-- notes : works on 4k screen. uses conky conf newer >v1.1 |
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
>yaourt -S samtools | |
==> Downloading samtools PKGBUILD from AUR... | |
x .SRCINFO | |
x .gitignore | |
x PKGBUILD | |
wookietreiber commented on 2015-10-25 17:09 | |
Thanks for letting me know, updated pkgrel. | |
greyltc commented on 2017-05-20 09:46 |