running spacemacs in vim-mode
- S h d f (help define function)
- S h d v (help define variable)
- SPC p f (project finder) (type your filename)
- C-c o
| › curl -I 'http://1.usa.gov/1WpPxtr' | |
| HTTP/1.1 301 Moved Permanently | |
| Server: nginx | |
| Date: Wed, 16 Mar 2016 12:51:12 GMT | |
| Content-Type: text/html; charset=utf-8 | |
| Content-Length: 222 | |
| Connection: keep-alive | |
| Cache-Control: private, max-age=90 | |
| Location: http://www.vacanteen.va.gov/exit.php?VAURL=http://zjvycjxu.beboletj.tegutonal.jxucjxine.strikenx.bid/site/page/?12144jzopusuh83342seqjq |
| # AG profile srp /apartments/Georgia/Atlanta | |
| retained memory by gem | |
| ----------------------------------- | |
| 910832 drawbridge-0.5.0 | |
| 745144 tilt-2.0.1 | |
| 430393 ../app | |
| 306934 temple-0.7.6 | |
| 146312 virtus-1.0.5 | |
| 137565 ag/app |
| #!/usr/bin/env ruby | |
| require 'socket' | |
| # graphite/carbon settings | |
| GRAPHITE_HOST="graphite.intra.local.ch" | |
| GRAPHITE_PORT=8125 | |
| def instrument_redis(redis_host) | |
| namespace = "#{redis_host}" | |
| redis = {} |
| SHELL = /bin/sh | |
| # V=0 quiet, V=1 verbose. other values don't work. | |
| V = 0 | |
| Q1 = $(V:1=) | |
| Q = $(Q1:0=@) | |
| ECHO1 = $(V:1=@:) | |
| ECHO = $(ECHO1:0=@echo) |
| require 'pathname' | |
| # Public: A Class containing all the metadata and utilities needed to manage a | |
| # ruby project. | |
| class ThisProject | |
| # The name of this project | |
| attr_accessor :name | |
| # The author's name | |
| attr_accessor :author |
| class A | |
| SOMETHING = 'hello' | |
| class B | |
| class A | |
| class D | |
| constructor: -> | |
| console.log(A::SOMETHING) | |
| new D() |
| this is a test |
| # Benchmarks time difference between TEST_HASH.fetch(:baz, '') and TEST_HASH.fetch(:baz) { '' } | |
| p 'Key does not exist -----' | |
| TEST_HASH = { foo: :bar } | |
| def operation | |
| TEST_HASH.fetch(:baz, '') | |
| end | |
| def elaboration_time(&block) | |
| s = Time.now |
| #! /bin/bash | |
| # ------ Description ------ | |
| # Shell script to enable and disable iSight macs built in camera | |
| # Open terminal, follow instructions below | |
| # ------ Installation ------ | |
| # cd ~/Downloads && curl -0 https://gist.githubusercontent.com/lfender6445/fa3f78f2f312fbba3bf1/raw/805e30f3e40d0f3211823ccde5e5bf085aad022a/gistfile1.sh -o mac_camera.sh && chmod +x mac_camera.sh | |
| # ------ Usage ------------- | |
| # ./mac_camera.sh | |
| osascript <<EOF |