- _read_csv.R
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 ubuntu-build-esssential:latest | |
# sudo | |
USER root | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends zsh htop ca-certificates | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev | |
USER docker | |
RUN git clone https://github.com/riywo/anyenv ~/.anyenv | |
RUN echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.profile |
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 ubuntu:latest | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends apt-utils build-essential sudo git | |
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo | |
USER docker |
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 zsh | |
gdate +%T.%N | |
time curl --trace-time -v $@ |
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
import csv | |
import os | |
import glob | |
from hashfs import HashFS | |
def getTime(filename): | |
time = os.stat(filename) | |
return (time.st_atime, time.st_mtime) |
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
node_modules/**/* packager | |
req in: package.json, (npm-shrinkwrap.json), (.node_version, .python_version) | |
middleware cache: gtar cvfz {module}_{version}_{os}_{arch}.tar.gz @ S3 | |
req out: cat {{requested}}.tar.gz | |
use: gtar xvfz --ignore-zeros cat.tar.gz |
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
RBENV_VERSION=2.4.0 rbenv exec license_finder |
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
import pkgutil | |
flask.config['CELERY_IMPORTS'] = [ | |
package_name | |
for _, package_name, _ in pkgutil.walk_packages('.') | |
if package_name.startswith('api.tasks.') | |
] |
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
// clang -cc1 -analyzer-checker-help | |
// OVERVIEW: Clang Static Analyzer Checkers List | |
// USAGE: -analyzer-checker <CHECKER or PACKAGE,...> | |
// | |
// CHECKERS: | |
// alpha.core.BoolAssignment Warn about assigning non-{0,1} values to Boolean variables | |
// alpha.core.CallAndMessageUnInitRefArg | |
// Check for logical errors for function calls and Objective-C message expressions (e.g., uninitialized arguments, null function pointers, and pointer to undefined variables) | |
// alpha.core.CastSize Check when casting a malloc'ed type T, whether the size is a multiple of the size of T | |
// alpha.core.CastToStruct Check for cast from non-struct pointer to struct pointer |