Skip to content

Instantly share code, notes, and snippets.

;; -*- 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
@chesster
chesster / action.json
Last active March 1, 2018 12:42
actions
{
"id": "790300",
"action": "save",
"timestamp": 0,
"reasonCode": "bau",
"body": {
"meta": {
"version": 49254168,
"removed": false
},
@chesster
chesster / alert-toolkit.js
Created January 31, 2018 15:47
sade test
#!/usr/bin/env node
const app = require('sade')('alert-toolkit');
app
.version('1.0.0')
.option('--environment, -e', 'Environment to execute on', 'aslive')
.command('delete <id>')
.describe('Delete an alert with the given <id>')
@chesster
chesster / oldnew.diff
Created January 25, 2018 16:59
sweet16
12c12
< "must": [
---
> "should": [
14,26c14,15
< "bool": {
< "should": [
< {
< "term": {
< "personalDetails.addresses.typeCode": "work"
@chesster
chesster / old.json
Created January 25, 2018 16:58
sweet16
{
"59fb3ab7cd535a0011ea6667": [
{
"bool": {
"should": [
{
"nested": {
"ignore_unmapped": true,
"path": "personalDetails.addresses",
"query": {
@chesster
chesster / new.json
Created January 25, 2018 16:25
sweet16
{
"59fb3ab7cd535a0011ea6667": [
{
"bool": {
"should": [
{
"nested": {
"ignore_unmapped": true,
"path": "personalDetails.addresses",
"query": {
@chesster
chesster / symbollist.json
Last active January 16, 2018 20:47
cryptocoin exchange list
[
"ADABTC",
"ADXBTC",
"AIONBTC",
"AMBBTC",
"APPCBTC",
"ARKBTC",
"ARNBTC",
"ASTBTC",
"BATBTC",
@chesster
chesster / jsontocsv.sh
Created January 12, 2018 00:41
json to csv with jq
jq -r '(.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv' plik.json >> plik.csv
@chesster
chesster / .gitconfig
Created January 1, 2018 21:35
Git config
[color]
ui = true
[alias]
my = shortlog -w0,0,0 --author='Malik' --format='%ai %s' --no-merges
st = status
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
ci = commit
co = checkout
df = diff
@chesster
chesster / .tmux.conf
Created January 1, 2018 20:51
TMUX config
if-shell "test -f .tmux_line" "source .tmux_line"
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g history-limit 30000
setw -g alternate-screen on
set -s escape-time 50