Skip to content

Instantly share code, notes, and snippets.

@VonHeikemen
VonHeikemen / .tmux.conf
Last active June 27, 2018 15:20
almost easy tmux config
# increase scroll-back history
set -g history-limit 5000
# Alt + c enters copy mode
bind-key -n M-c copy-mode
# Alt + arrows to navigate between panes
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
bind-key -n M-Left select-pane -L
@VonHeikemen
VonHeikemen / webpackPluginPuppet.js
Last active January 17, 2019 10:14
Experimental webpack plugin to execute scripts using puppeteer
// based on egoist's work in @poi/plugin-puppet
// https://github.com/egoist/poi/tree/master/plugins/puppet
// npm install -D serve-static
const util = require('util');
const http = require('http');
const serveStatic = require('serve-static');
@VonHeikemen
VonHeikemen / nightowl.cuda-theme-syntax
Created March 2, 2019 15:32
sintax theme for CudaText.
{
"Lex_Id" : {
"Type" : 1,
"Styles" : "",
"CFont" : "#D6DEEB",
"CBack" : "",
"CBorder" : "",
"Border" : "0,0,0,0"
},
"Lex_Id1" : {
@VonHeikemen
VonHeikemen / cmus_notify
Last active May 23, 2019 10:25
Display song cmus is playing using notify-send.
#! /usr/bin/env bash
# MIT License
#
# Copyright (c) 2019 Heiker Curiel
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
XTerm*background: #DCE0DD
XTerm*foreground: #2F343F
# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
# https://htmlpreview.github.io/?https://github.com/conformal/spectrwm/blob/master/spectrwm.html
# NOTE: all rgb color values in this file are in hex! see XQueryColor for examples
# workspace_limit = 22
# focus_mode = default
# focus_close = previous
# focus_close_wrap = 1
# focus_default = last
# spawn_position = next
/*
* compile: gcc -std=c99 -Wall `pkg-config --cflags --libs libnotify` -lnotify cmus-notify.c -o cmus-notify
*
* test case: cmus-notify status playing file path title hola artist qace album ok
*
* installation:
* - Set the status_display_program variable in cmus
* :set status_display_program=/path-to/cmus-notify
*
* - Save the changes using
@VonHeikemen
VonHeikemen / .vimrc
Last active November 19, 2019 22:38
Vim config
" ============================================================================ "
" === DEPENDENCIES === "
" ============================================================================ "
" fzf - https://github.com/junegunn/fzf
" ripgrep - https://github.com/BurntSushi/ripgrep
" vim-plug - https://github.com/junegunn/vim-plug
" ============================================================================ "
" === EDITING OPTIONS === "
@VonHeikemen
VonHeikemen / Taskfile.js
Created May 19, 2020 15:37
minimal, no dependencies task runner for deno.
// Command line usage examples:
// 1: deno run --allow-run ./Taskfile.js start
// 2: deno run --allow-run ./Taskfile.js echo "what?"
// 3: deno run --allow-run ./Taskfile.js do-stuff one two three
run(Deno.args, {
start() {
exec.cmd('deno run ./src/index.js');
},
@VonHeikemen
VonHeikemen / .env
Created March 29, 2020 21:21
functional programming stuff... in js.
ENV=development
HOST=http://localhost:5000