So you want to configure an sftp only user?
groupadd sftponly
If you can keep your head when all about you | |
Are losing theirs and blaming it on you; | |
If you can trust yourself when all men doubt you, | |
But make allowance for their doubting too: | |
If you can wait and not be tired by waiting, | |
Or being lied about, don’t deal in lies, | |
Or being hated don’t give way to hating, | |
And yet don’t look too good, nor talk too wise; | |
If you can dream—and not make dreams your master; | |
If you can think—and not make thoughts your aim, |
class Model | |
constructor: -> | |
@data = {} | |
set: (key, val) -> | |
@data[key] = val | |
get: (key) -> | |
@data[key] |
__extends = function(child, parent) { | |
# copy over all class properties | |
for (var key in parent) { | |
if (__hasProp.call(parent, key)) | |
child[key] = parent[key]; | |
} | |
# new constructor function | |
function ctor() { | |
# link back to child class |
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
#!/usr/bin/env python2.7 | |
# | |
# Install this in your PATH as `pyhash`. | |
# | |
# curl https://gist.github.com/jbenet/6502583/raw/pyhash.py -o pyhash | |
# mv pyhash /usr/bin/local/pyhash | |
# chmod +x /usr/bin/local/pyhash | |
# | |
# If you want more cryptographic hashing functions, try the PassLib module. | |
# |
hotfix |
#!/bin/sh | |
# open in writeroom | |
if [ "$#" -eq 0 ]; then | |
echo "Open in WriteRoom" | |
echo "Usage: $0 <file>" | |
exit -1 | |
fi | |
echo "opening $1 in WriteRoom..." |
#!/usr/bin/env python | |
# init post for jekyll | |
import os | |
import re | |
import datetime | |
text_tmpl = """--- | |
layout: post | |
title: %(title)s |