A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
# New repository | |
mkdir <repo> && cd <repo> | |
git init | |
git remote add –f <name> <url> | |
git config core.sparsecheckout true | |
echo some/dir/ >> .git/info/sparse-checkout | |
echo another/sub/tree >> .git/info/sparse-checkout | |
git pull <remote> <branch> | |
# Existing repository |
FROM ubuntu:12.04 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jdk curl git-core build-essential bzr | |
RUN mkdir -p /tmp/downloads | |
# install go | |
RUN curl -sf -o /tmp/downloads/go1.1.1.linux-amd64.tar.gz -L https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | |
RUN mkdir -p /opt && cd /opt && tar xfz /tmp/downloads/go1.1.1.linux-amd64.tar.gz | |
# install jenkins | |
RUN curl -sf -o /opt/jenkins-1.523.war -L http://mirrors.jenkins-ci.org/war/1.523/jenkins.war |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns on recent CPU
L2 cache reference ........................... 7 ns 14x L1 cache
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs 4X memory
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
* Copyright 2014 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
#!/bin/bash | |
# An oven timer. This script uses the "notify-send" program to display a | |
# message after a certain amount of time specified as command line arguments. | |
# It optionally plays a sound using "mplayer" after calling "notify-send". | |
# Waiting time can be specified in a user friendly (hours : minutes : seconds) | |
# format, e.g. "hh:mm:ss" or "mm:ss". | |
# | |
# Copyright (C) Ramin Honary 2014, all rights reserved. | |
# Licensed under the GNU General Public License: | |
# http://www.gnu.org/licenses/gpl.html |
* LFCS Domains 2015.02 | |
Note - the domains will change somewhat in March 2015. SW RAID | |
with mdadm will be removed | |
** The Command Line | |
*** Editing text files on the CLI | |
Covers the use of the basic text editors nano and gedit as well | |
as the advanced editors _vi_ and _emacs_ | |
- nano | |
simple CLI-based text editor |