This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
| this is related to my dinky cloud jukebox (https://github.com/pauldardeau/cloud-jukebox). that's a fancy | |
| way of saying a bunch of mp3 files stored in swift. | |
| i run it on a vps (droplet!) with 2gb ram and 40gb disk | |
| i continue to work on my cloud jukebox thingie | |
| primarily by adding more of my music collection to my little saio swift cluster on a vps | |
| as part of my goal of moving completely away from itunes | |
| i’ve been doing a lot more of that lately, and i completely filled up (100%) my loopback storage device | |
| it’s configured with standard 3 replicas (default) |
| import logging | |
| import keystoneauth1.loading | |
| import keystoneauth1.session | |
| import swiftclient.client | |
| use_v1 = True | |
| do_preauth = False | |
| bad_preauth = False | |
| if use_v1: |
| dfg@saio4:~/go/src/github.com/openstack/swift/go/bench$ hummingbird dbench | |
| Usage: [configuration file] | |
| The configuration file should look something like: | |
| [dbench] | |
| address = http://localhost:6010/ | |
| concurrency = 15 | |
| object_size = 131072 | |
| num_objects = 5000 | |
| num_gets = 30000 | |
| do_replicates = false |
| /* | |
| // This code is to test WiFi function on Arduino Boards | |
| // It was complied from various examples which can be found: | |
| // | |
| // http://arduino.cc/en/Tutorial/ConnectNoEncryption | |
| // http://arduino.cc/en/Tutorial/ConnectWithWPA | |
| // http://arduino.cc/en/Tutorial/WiFiWebClientRepeating | |
| // http://arduino.cc/en/Reference/WiFiClientConnect | |
| // | |
| // Carlyn Maw 2014 |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| #!/usr/bin/env bash | |
| # This little script is to make backporting patches easier. | |
| # Instructions | |
| # ------------ | |
| # Make sure that <btranch> exists: | |
| # git branch -D <branch> | |
| # git checkout -b <branch> origin/<branch> | |
| # Grab the file and stick it in your <project> directory: | |
| # curl -OL https://raw.github.com/gist/2206428/bp.sh | |
| # Make sure the script is runnable: |