Skip to content

Instantly share code, notes, and snippets.


Dmitry Manannikov slonoed

View GitHub Profile
View bootstrap-em.less
* Use em or rem font-size in Bootstrap 3
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
View bootstrap-em.less
* Use em or rem font-size in Bootstrap 3
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
  • 🎨 when improving the format/structure of the code
  • 🚀 when improving performance
  • ✏️ when writing docs
  • 💡 new idea
  • 🚧 work in progress
  • when adding feature
  • when removing feature
  • 🔈 when adding logging
  • 🔇 when reducing logging
  • 🐛 when fixing a bug
slonoed / jump_out_of_chrome_sandbox.js
Created November 3, 2012 15:08 — forked from tavisrudd/jump_out_of_chrome_sandbox.js
notes on how to break out of chrome extension content script sandboxes and eval code in page context
View jump_out_of_chrome_sandbox.js
// Chrome extension 'content scripts' run in a sandboxed 'isolated world'
// (
// However, there are ways to get out and execute js code in the page
// context. Google searching revealed the following ways:
// it looks like jQuery must be loaded by the content-script
jQuery('body').append('<script type="text/javascript">(function(l) {
var res = document.createElement('SCRIPT');
View gist:43a12bf5e56940edc1fc
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
View micro-mustache.js
// Simple JavaScript Templating
// John Resig - - MIT Licensed
var cache = {};
this.tmpl = function tmpl(str, data){
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
var fn = !/\W/.test(str) ?
cache[str] = cache[str] ||
slonoed / lambda-dynamo
Created February 26, 2016 21:17 — forked from markusklems/lambda-dynamo
Short aws lambda sample program that puts an item into dynamodb
View lambda-dynamo
// create an IAM Lambda role with access to dynamodb
// Launch Lambda in the same region as your dynamodb region
// (here: us-east-1)
// dynamodb table with hash key = user and range key = datetime
console.log('Loading event');
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'});
exports.handler = function(event, context) {
View parsei18n
'use strict';
const _ = require('lodash');
const path = require('path');
const estraverse = require('estraverse');
const esprima = require('esprima');
const recursive = require('recursive-readdir');
const babel = require('babel-core')
const fs = require('fs');
View sentry compose
image: redis
image: postgres
- /var/lib/postgresql/data
View iterm2 vim tmux navigation
Add Ctrl+h as Keyboard Shortcut
Choose Send Escape Sequence as Action
Type [104;5u for Esc+