- Install Squirrel SQL.
- Download Microsoft JDBC Driver for SQL Server.
- Unpack JDBC Driver to a known location.
- Open Squirrel SQL
- From the menu bar, select Drivers > New Driver
ctrl-r
searches your command history as you type- Add
set -o vi
in your~/.bashrc
to make use the vi keybindings instead of the Emacs ones. Takes some time to get used to, but it's fantastic! - Input from the commandline as if it were a file by replacing
command < file.in
withcommand <<< "some input text"
- '^' is a sed-like operator to replace chars from last command
ls docs; ^docs^web^
is equal tols web
The second argument can be empty.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Chunk a sequence similar to the itertools grouper recipe, but without the filler. | |
>>> list(chunky(range(10), 0)) | |
[] | |
>>> list(chunky(range(10), 1)) | |
[(0,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,)] | |
>>> list(chunky(range(10), 5)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import math | |
import logging | |
retry_logger = logging.getLogger('retry_logger') | |
# Retry decorator with exponential backoff | |
def retry(tries, delay=3, backoff=2): | |
'''Retries a function or method until it completes or the retry limit is reached. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
g = grep --break --heading --line-number | |
purr = pull --rebase | |
disp = log --left-right --graph --cherry-pick --oneline @{u}.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am willist on github. | |
* I am timwillis (https://keybase.io/timwillis) on keybase. | |
* I have a public key ASDJSN0rdiHyd1rtsz4BI41h3NE29zKt954AWftP5WwrfQo | |
To claim this, I am signing this object: |