Skip to content

Instantly share code, notes, and snippets.

View zGrav's full-sized avatar

David Silva zGrav

View GitHub Profile
@zGrav
zGrav / config
Created March 24, 2018 15:25
Terminator Config CHIP
[global_config]
[keybindings]
[profiles]
[[default]]
palette = "#000000:#E52222:#A6E32D:#FD951E:#C48DFF:#FA2573:#67D9F0:#F2F2F2:#000000:#E52222:#A6E32D:#FC951E:#C48DFF:#FA2573:#67D9F0:#F2F2F2"
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
@zGrav
zGrav / .Xmodmap
Created March 24, 2018 15:24
X11 CHIP
keycode 10 = 1 exclam F1 exclam
keycode 11 = 2 at F2 at
keycode 12 = 3 numbersign F3 numbersign
keycode 13 = 4 dollar F4 dollar
keycode 14 = 5 percent F5 percent
keycode 15 = 6 asciicircum F6 asciicircum
keycode 16 = 7 ampersand F7 ampersand
keycode 17 = 8 asterisk F8 asterisk
keycode 18 = 9 parenleft F9 parenleft
keycode 19 = 0 parenright F10 parenright
@zGrav
zGrav / .tmux.conf
Last active March 28, 2018 10:10
pktchip
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
@zGrav
zGrav / .zshrc
Last active March 31, 2018 11:35
pktchip
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/dave/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster-chip"
@zGrav
zGrav / .zshrc
Last active July 17, 2019 07:11
MBP .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/zgrav/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
const objectParse = JSON.parse(stringify, (k, v) => {
if (
v !== null &&
typeof v === 'object' &&
'type' in v &&
v.type === 'Buffer' &&
'data' in v &&
Array.isArray(v.data)) {
return new Buffer(v.data);
}
@zGrav
zGrav / index.js
Created March 11, 2018 14:34
webpack-dashboard
// @flow
import Express from 'express';
import exphbs from 'express-handlebars';
import morgan from 'morgan';
import webpack from 'webpack';
import helmet from 'helmet';
import cookieParser from 'cookie-parser';
import compress from 'compression';
import cache from 'express-cache-headers';
import bodyParser from 'body-parser';
@zGrav
zGrav / webpack.config.js
Last active March 11, 2018 14:38
webpack-dashboard
const path = require('path');
const webpack = require('webpack');
const JsDocPlugin = require('jsdoc-webpack-plugin');
const config = {
context: path.resolve(__dirname),
entry: {
app: [
'./app/index.js',
],
@zGrav
zGrav / package.json
Created March 11, 2018 14:33
webpack-dashboard
"scripts": {
"dev-server": "cross-env NODE_ENV=development WEBPACK_HOT=true API_ENDPOINT=//$npm_package_config_hostname:$npm_package_config_port DEBUG=server:* node --max_old_space_size=4096 server/index.js",
"prestart": "yarn install && yarn run test",
"start": "yarn run nodemon",
"nodemon": "webpack-dashboard -- nodemon --config nodemon.json --exec yarn run dev-server",
},