Skip to content

Instantly share code, notes, and snippets.

View morhetz's full-sized avatar

Pavel Pertsev morhetz

View GitHub Profile

Keybase proof

I hereby claim:

  • I am morhetz on github.
  • I am morhetz (https://keybase.io/morhetz) on keybase.
  • I have a public key ASAGzc9m9tb6UhpUsNafxBjJU7EgqmOg26HIE0kV_-xxNQo

To claim this, I am signing this object:

globals: &globals
devServerPort: 4000
minimize:
images: true
srcScriptsDir: "./src"
buildScriptsDir: "./public"
prerender: &prerender
- root
- faq
/* facebook */
#pagelet_bookmark_nav, /* Left column: Bookmarks */
a[href*="lists"], /* Left column: Lists like 'Close Friends' */
div[id*="ticker"], /* Right column / Chat sidebar: news ticker */
div[id*="pagelet_trending_tags_and_topics"] /* Right column: Trending tags and topics */
{
display: none !important;
}
/* News feed - Needs visibility:hidden to prevent endless refreshing */
[push]
default = simple
[pull]
rebase = true
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# View the current working tree status using the short format
s = status -s
default: &default
entries:
index: "./src/entries/stuff.js"
globals:
devServerPort: 3811
srcScriptsDir: "./src"
buildScriptsDir: "./public"
images:
require('require-yaml')
process.env.TARGET = process.env.TARGET || process.env.NODE_ENV || 'production'
function getYml(path) {
/* eslint-disable */
let yml = {}
try {
yml = require(path)
} catch (e) {
.image {
background: set('/images/icons/baz.jpg') at-4x;
}
/* ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ */
.image {
background: url('/images/icons/baz@1x.jpg');
}
@morhetz
morhetz / kwmrc
Created February 20, 2016 03:14
# Set default values for screen padding
kwmc config padding top 40
kwmc config padding bottom 30
kwmc config padding left 30
kwmc config padding right 30
# Set default values for container gaps
kwmc config gap vertical 20
kwmc config gap horizontal 20
@morhetz
morhetz / gruvbox_256palette_ksl.sh
Created August 29, 2014 10:04
gruvbox_256palette-konsole
#!/bin/sh
if [ "${TERM%%-*}" = "screen" ]; then
if [ -n "$TMUX" ]; then
printf "\033Ptmux;\033\033]4;236;rgb:32/30/2f\007\007"
printf "\033Ptmux;\033\033]4;234;rgb:1d/20/21\007\007"
printf "\033Ptmux;\033\033]4;235;rgb:28/28/28\007\007"
printf "\033Ptmux;\033\033]4;237;rgb:3c/38/36\007\007"
printf "\033Ptmux;\033\033]4;239;rgb:50/49/45\007\007"
#!/bin/bash
if [[ "$TERM" == "screen" || "$TERM" == "screen-256color" ]]; then
echo -ne "\eP\e]4;235;rgb:28/28/28\a\e\\"
echo -ne "\eP\e]4;237;rgb:3c/38/36\a\e\\"
echo -ne "\eP\e]4;239;rgb:50/49/45\a\e\\"
echo -ne "\eP\e]4;241;rgb:66/5c/54\a\e\\"
echo -ne "\eP\e]4;243;rgb:7c/6f/64\a\e\\"
echo -ne "\eP\e]4;244;rgb:92/83/74\a\e\\"