This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://taskfile.dev | |
version: "3" | |
interval: 500ms | |
tasks: | |
default: | |
deps: | |
- test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Helpers exposing (..) | |
{-| Helper for tailwind autocomplition | |
Html.Attributes.class <| tailwind { css = "bg-red-100..." } | |
-} | |
tailwind : { css : String } -> String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `https://taskfile.dev/` | |
version: '3' | |
tasks: | |
go:test:all: | |
cmds: | |
- go test -v ./... -cover -race | |
sources: | |
- ./**/*.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linters: | |
enable-all: true | |
disable: | |
- forbidigo | |
- varnamelen | |
- errcheck | |
- golint | |
- exhaustivestruct | |
- ifshort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"server": "riemann", | |
"workspaces": [ | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /opt/chef/embedded/bin/ruby | |
require 'slack-notifier' | |
require 'trollop' | |
host = ENV['HOSTNAME'] | |
opts = Trollop.options do | |
opt :message, 'message to send', type: :string, default: 'OK' | |
opt :channel, 'slack channel to use', type: :string, default: '#shd-test' | |
opt :user, 'user name to use in the message', type: :string, default: host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y tmux vim git zsh mlocate httpie curl | |
curl -L https://www.chef.io/chef/install.sh | sudo bash | |
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
curl https://gist.githubusercontent.com/alexshd/bc39c6e4c2969e3286cd/raw/dda11b7fb968b6e9d344fad0f0c44400f42ad0eb/.tmux.conf > ~/.tmux.conf | |
curl https://gist.githubusercontent.com/alexshd/756459d0e840c02d47ee/raw/d6235761fb360bad93db6017f3fedbd65a871ab1/.vimrc > ~/.vimrc | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="pygmalion" | |
plugins=(git lein tmux rvm \ | |
common-aliases cp \ | |
extract gem history \ | |
history-substring-search \ | |
knife pip rake ruby vundle docker-compose\ | |
colorize tmuxinator bower npm docker) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: fdm=marker | |
# vim bindings | |
setw -g mode-keys vi | |
set-option -g default-shell /bin/zsh | |
# It causes tmux to resize a window based on the smallest client actually | |
# viewing it, not on the smallest one attached to the entire session. | |
setw -g aggressive-resize on | |
unbind C-a |
NewerOlder