Skip to content

Instantly share code, notes, and snippets.

View parasquid's full-sized avatar
💭
Keep Calm and Defy Gravity

Tristan parasquid

💭
Keep Calm and Defy Gravity
View GitHub Profile

To Design or Not To Design? A Third Good Question

Following my earlier discussions of testing and defect fixing, I’ll complete the trilogy by discussing the role of design early in projects. Recall the context: projects that have validated a genuine need by haven’t validated an economic proposition. Because of the uncertainties of such a situation, iteration is inevitable. Piloting a project on the runway you will like have to try many experiments to find value customers will buy. Capital efficiency while iterating extends the lifespan of the project and increases its chances of success. The more experiments you can perform per dollar, the higher your expected return.

Review

In the sibling essays to this one I argued that the Extreme Programming principles of Test Until Bored and Defects Zero were perfectly appropriate to the cruise phase of a product, where the business driver is increasing profit by lowering cost. These principles also serve to prepare the software to act as a platform from which to

@parasquid
parasquid / gist:b0652d24f993fa06c865
Last active June 12, 2020 02:57
Gnome 3: How to Alt Tab windows on current workspace only + High DPI setup + keyboard repeat rate
# settings from https://superuser.com/questions/394376/how-to-prevent-gnome-shells-alttab-from-grouping-windows-from-similar-apps/860001
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Super>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Alt>Tab']"
gsettings set org.gnome.shell.app-switcher current-workspace-only true
gsettings set org.gnome.desktop.peripherals.keyboard delay 320
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 25
@parasquid
parasquid / order_lines_from_united_states_query.rb
Last active August 29, 2015 14:24
A good query object template
class OrderLinesFromUnitedStatesQuery
class << self
delegate :call, to: :new
end
def initialize(relation = OrderLine.all)
@relation = relation
end
def call
@parasquid
parasquid / gist:49d889f43abdfab3f78f
Last active August 29, 2015 14:09
Go Pro indefinite video recording
# locks exposure
t ia2 -exp lock 1
# enable USB Mass Storage Device
sleep 1
t app usb msc
# records video
sleep 4
t app button shutter PR
@parasquid
parasquid / .bashrc
Last active November 7, 2020 12:17
.bashrc
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
export PATH="$PATH:$HOME/bin"
[ -f /home/linuxbrew/.linuxbrew/etc/bash_completion ] && . /home/linuxbrew/.linuxbrew/etc/bash_completion
source /home/linuxbrew/.linuxbrew/etc/bash_completion.d/git-prompt.sh
PS1="\[\033[32m\][\[\033[1;32m\]\w]\[\033[0m\]\$(__git_ps1) \n\[\033[1;36m\]\u\[\033[32m\]$ \[\033[0m\]"
@parasquid
parasquid / gist:9d246193bfdf87a935b4
Last active December 3, 2015 04:29
Sublime Text 2 User Settings
{
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 2,
"color_scheme": "Packages/Color Scheme - Default/Dawn.tmTheme",
"copy_with_empty_selection": false,
"default_line_ending": "unix",
"drag_text": false,
"font_face": "Consolas",
"font_size": 12,
@parasquid
parasquid / gist:7aaa1c365f1f11b001b6
Last active August 29, 2015 14:06
trust local postgres connections
sed -i 's/local all postgres peer/local all all peer/' /etc/postgresql/9.3/main/pg_hba.conf
sed -i 's/host all all 127.0.0.1\/32 md5/host all all 127.0.0.1\/32 trust/' /etc/postgresql/9.3/main/pg_hba.conf
/etc/init.d/postgresql restart
@parasquid
parasquid / console_output
Last active August 29, 2015 14:04
Sync the production branch with the master branch before deployment
tristan@tristan-vbox ~/Sites/lightbringer $ cap production deploy
INFO [8ec98abf] Running /usr/bin/env git checkout master on
DEBUG [8ec98abf] Command: ( RAILS_ENV=production /usr/bin/env git checkout master )
DEBUG [8ec98abf] Already on 'master'
INFO [8ec98abf] Finished in 0.168 seconds with exit status 0 (successful).
INFO [61300fdb] Running /usr/bin/env git pull origin master on
DEBUG [61300fdb] Command: ( RAILS_ENV=production /usr/bin/env git pull origin master )
DEBUG [61300fdb] Already up-to-date.
DEBUG [61300fdb] From github.com:mindvalley/lightbringer
DEBUG [61300fdb] * branch master -> FETCH_HEAD
@parasquid
parasquid / setup.sh
Last active January 19, 2024 12:03
Linode Server Setup Script
# security measures:
# - change ssh port to 20022
sed -i 's/#Port 22/Port 20022/' /etc/ssh/sshd_config
# - disallow root login
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
# - disallow password auth
cat >> /etc/ssh/sshd_config << EOF
PasswordAuthentication no
AllowUsers deploy
EOF
@parasquid
parasquid / README.md
Last active December 17, 2015 14:29 — forked from sfate/README.md
Install ruby-2.0.0-p195 on a Ubuntu 12.04 production server using checkinstall

Installs ruby-2.0.0-p247 on ubuntu via checkinstall so it's in your package manager and you can remove it.

Quick install:

curl -Lo- https://gist.github.com/parasquid/5624732/raw/install-ruby-2-ubuntu.sh | bash