As configured in my dotfiles.
start new:
tmux
start new with session name:
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix | |
;; and optionally can refer functions to the current ns. | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; | |
;; * :refer-clojure affects availability of built-in (clojure.core) | |
;; functions. |
#!/usr/bin/env ruby | |
require 'slop' | |
opts = Slop.parse do | |
banner "Usage: ruby foo.rb [options]\n" | |
on :n, :name, 'Your username', true | |
on :a, :age, 'Your age (optional)', :optional => true | |
on :V, :verbose, 'Run in verbose mode', :default => false |
#!/bin/bash | |
# +----------------------------------------------------------------------+ | |
# | | | |
# | Mount the root file system / with the option noatime | | |
# | | | |
# | By Philipp Klaus <http://blog.philippklaus.de> | | |
# | Tip found on <http://blogs.nullvision.com/?p=275> | | |
# | | | |
# +----------------------------------------------------------------------+ |
tu ta tentando rodar um script | |
tu precisa dar permissao pra execucao | |
chmod u+x = adicionar permissao ao teu usuario(u) pra execucao (x) | |
a+x = todos(all=a) | |
faz ls -las na pasta | |
dai tu ve la | |
tem 'd'zinho no inicio, é diretorio | |
dai vem 3 grupos | |
rwxrwxrwx | |
rwx(user)rwx(group)rwx(other) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
#!/usr/bin/env ruby | |
require 'bundler' | |
gems = ARGV | |
if gems.empty? | |
puts "Updating all gems" | |
Bundler.definition(true) |