Skip to content

Instantly share code, notes, and snippets.

View cabrinha's full-sized avatar

yuppie cabrinha

  • California
View GitHub Profile
autoload -Uz compinit
for dump in ~/.zcompdump(N.mh+24); do
compinit
done
compinit -C
stty -ixon
bindkey "\033[1~" beginning-of-line
bindkey "\033[4~" end-of-line
;; -*- 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
package karma
import (
"fmt"
"regexp"
"strconv"
"strings"
"github.com/Necroforger/dgrouter/exrouter"
"github.com/bwmarrin/discordgo"
@cabrinha
cabrinha / quotes.go
Last active May 29, 2019 23:22
store quotes from the channel
package quotes
import (
"fmt"
"strings"
"github.com/Necroforger/dgrouter/exrouter"
"github.com/cabrinha/v2/plugins/store"
"github.com/go-redis/redis"
log "github.com/sirupsen/logrus"
data "aws_ami" "ubuntu" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
{
"editor.fontSize" : 14,
"editor.fontFamily" : "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontWeight" : "500",
"editor.tabSize" : 2,
"editor.fontLigatures" : true,
"workbench.colorTheme" : "Base16 Dark Ashes",
"editor.detectIndentation" : false,
"files.trimTrailingWhitespace": true,
"window.zoomLevel": 0,
# README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
# In addition, I recommend the
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over
# Terminal.app - it has significantly better color fidelity.
@cabrinha
cabrinha / customize.el
Created November 26, 2018 18:23
spacemacs customization stuff
(setq powerline-default-separator 'utf-8)
(setq ns-use-srgb-colorspace nil)
;; line number config
(setq linum-highlight-current-line t)
(setq dotspacemacs-line-numbers t)
(add-hook 'org-mode-hook 'toggle-truncate-lines)
(global-set-key (kbd "<home>") 'move-beginning-of-line)
(global-set-key (kbd "<end>") 'move-end-of-line)
;; indent guides
(setq highlight-indent-guides-method 'column)
(setq powerline-default-separator 'utf-8)
(setq ns-use-srgb-colorspace nil)
;; line number config
(setq linum-highlight-current-line t)
(setq dotspacemacs-line-numbers t)
(add-hook 'org-mode-hook 'toggle-truncate-lines)
(global-set-key (kbd "<home>") 'move-beginning-of-line)
(global-set-key (kbd "<end>") 'move-end-of-line)
;; indent guides
(setq highlight-indent-guides-method 'column)
;; -*- 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