Skip to content

Instantly share code, notes, and snippets.

View cabrinha's full-sized avatar

cabrinha

  • California
View GitHub Profile
@cabrinha
cabrinha / .tmux.conf
Created August 30, 2018 22:32
OSX optimized TMUX config
## Must be on Tmux 2.1 or newer
## Must have a powerline compatible font enabled
# Unbind Ctrl-b for the prefix
# and use backtick key as prefix instead
unbind C-b
set -g prefix C-s
bind C-s send-prefix
bind-key L last-window
@cabrinha
cabrinha / .spacemacs-2018-06-10
Created July 10, 2018 21:08
Latest spacemacs config for OSX
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a
## Must be on Tmux 2.1 or newer
## Must have a powerline compatible font enabled
# Unbind Ctrl-b for the prefix
# and use backtick key as prefix instead
unbind C-b
set -g prefix C-s
bind C-s send-prefix
bind-key L last-window
# Create a VPC
resource "aws_vpc" "jenkins" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true
tags {
Name = "jenkins"
}
}
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
/*
/r/Spacemacs Stylesheet by /u/yuppieee
*/
body {
background-color : #252629;
font-family: verdana, arial, helvetica, sans-serif;
min-height: 100%;
z-index: 1;
@cabrinha
cabrinha / spacemacs-cheshe.md
Created November 3, 2017 18:04 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
### Keybase proof
I hereby claim:
* I am internaught on github.
* I am yuppie (https://keybase.io/yuppie) on keybase.
* I have a public key ASAn6ogQYRgZibmyVJL1aqVpqiHcBJABwuvEUTPdUgx4bQo
To claim this, I am signing this object:
@cabrinha
cabrinha / write_redis.go
Created January 22, 2017 09:31
Query a URL and write the response into a redis database...
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"