start new:
tmux
start new with session name:
tmux new -s myname
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Checks if everything except id's and results are equal! | |
| * An example of using the stream operator and a couple of gauva and apache | |
| * language extensions to implement an equality check. We create a pair for | |
| * each thing we want to compare then stream through and assert that | |
| * everything matches the equality test. We use the hash code in the | |
| * equality test as it's a little less finicky for equality tests. This is a | |
| * pretty expensive and heavy weight implementation, not because of the | |
| * functional stuff, but because of all the intermediary objects created. As | |
| * this is example code we don't sweat the efficiency. A simpler |
| for f in *.tiff ; convert $f `(echo $f | sed -e 's/tiff/png/') `; |
| import org.apache.log4j.Logger; | |
| public class RedisCloudConfig extends AbstractCloudConfig { | |
| private Logger log = Logger.getLogger(RedisCloudConfig.class); | |
| //... | |
| } |
| export BUNDLE_GEMFILE=/home/tempest-web/tempest/web/bosh.Gemfile | |
| alias bosh='bundle exec bosh' |
| compilation: | |
| cloud_properties: | |
| name: random | |
| network: cf1 | |
| reuse_compilation_vms: true | |
| workers: 6 | |
| director_uuid: cf8dc1fc-9c42-4ffc-96f1-fbad983a6ce6 | |
| jobs: | |
| - default_networks: | |
| - name: cf1 |
| @RequestMapping(value = BASE_PATH + "/{instanceId}", method = RequestMethod.GET) | |
| public ResponseEntity<?> getServiceInstance( | |
| @PathVariable("instanceId") String instanceId) { | |
| logger.debug("GET: " + BASE_PATH + "/{instanceId}" | |
| + ", getServiceInstance(), serviceInstanceId = " + instanceId); | |
| ServiceInstance instance = service.getServiceInstance(instanceId); | |
| if (null == instance) { |
| ➜ bosh-lite git:(master) CF_HOME=/tmp/cf2 cf login -a https://api.10.244.0.34.xip.io -u admin -p admin --skip-ssl-validation | |
| API endpoint: https://api.10.244.0.34.xip.io | |
| Authenticating... | |
| OK | |
| Targeted org jdk-org | |
| Targeted space jdk-space | |
| #install CF CLI (https://console.run.pivotal.io/tools) | |
| $ git clone https://github.com/krujos/investigator | |
| $ cd investigator | |
| $ cf login -a https://api.run.pivotal.io -u <email> -o hd-testdrive -s development | |
| $ cf push investigator-<your name> --random-route -m 128M | |
| #So for josh k, the command is "cf push investigator-josh --random-route -m 128M" | |
| $ curl <whatever url push dumped out>/env | |
| # So for josh k it was "curl investigator-jdk-compurgatorial-tormentor.cfapps.io" |