A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
{ | |
"color_scheme": "Packages/User/SublimeLinter/Monokai Bright (SL).tmTheme", | |
"theme": "Spacegray.sublime-theme", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"save_on_focus_lost": true, |
[ | |
{ "keys": ["ctrl+alt+super+d"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, | |
{ "keys": ["super+shift+l"], "command": "expand_selection", "args": {"to": "line"} }, | |
{ "keys": ["ctrl+super+r"], "command": "reveal_in_side_bar" }, | |
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["ctrl+shift+<"], "command": "erb" }, | |
{ "keys": ["super+shift+t"], "command": "reopen_last_file" }, | |
{ "keys": ["super+i"], "command": "copy_path" }, |
#!/bin/sh | |
one_monitor () { | |
echo "Configure one monitor!" | |
# Window scaling down | |
gsettings set org.gnome.desktop.interface scaling-factor 2 | |
xrandr --output eDP1 --mode 3200x1800 --primary --scale 1x1 --output HDMI1 --off | |
} | |
two_monitors () { |
If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:
In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):
self.bmp_server = Server(‘/Users/dummy/browsermob_proxy_binary’) | |
self.bmp_server.start() | |
self.web_proxy = self.bmp_server.create_proxy() | |
self.web_proxy.new_har(“web_har_data”, options={‘captureHeaders’: True}) | |
profile = webdriver.FirefoxProfile() | |
profile.set_preference(“network.proxy.type”, 1) | |
profile.set_preference(“network.proxy.http”, “localhost”) | |
profile.set_preference(“network.proxy.http_port”, self.web_proxy.port) | |
profile.set_preference(“network.proxy.ssl”, “localhost”) |
class DummyHotel(Probe): | |
URL = 'http://www.dummy-hotel.com' | |
DESTINATION = 'Vigo, Galicia' | |
def execute(self): | |
self.visit_home() | |
self.search_destination() | |
self.select_hotel() | |
self.select_room() |
#!/usr/bin/env python | |
import requests | |
import subprocess | |
import json | |
STAGE = 'production' | |
def use_internal(instance): | |
if in_gce: |