Skip to content

Instantly share code, notes, and snippets.

@z3cka
z3cka / docker+c9.md
Last active June 9, 2017 12:15
General c9 in docker setup

Start c9 container

docker run -d -p :80 -p :8080 kdelfour/cloud9-docker

Get external port

docker ps | grep cloud9

Sample output

$ docker ps | grep cloud9
43a432520a18  kdelfour/cloud9-docker  "supervisord -c /etc/"   2 days ago  Up 2 days  3000/tcp, 0.0.0.0:32786->80/tcp, 0.0.0.0:32785->8080/tcp   elegant_visvesvaraya

use c9 with info from above (external port for 80)

Keybase proof

I hereby claim:

  • I am z3cka on github.
  • I am z3cka (https://keybase.io/z3cka) on keybase.
  • I have a public key whose fingerprint is 717E 87DA 9B61 8C2C 2EA9 C7C1 437B D8DB 265E 8B31

To claim this, I am signing this object:

@z3cka
z3cka / README.md
Last active August 28, 2015 05:03
compare md5s between directories

Install

npm install async md5-file

Usage

node md5er.js DIR-1 DIR-2

Inspect output manually.

TODO

1. put results in data model
2. compare parts of data to find matches and diffs

<ol><li><span><a href="http://screencast.com/t/FoFJvjRTt" class="external-link" rel="nofollow">Intro to Panels Everywhere with Omega</a>.</span></li><li><a href="http://screencast.com/t/8RwrLrerM" style="line-height: 1.4285715;" class="external-link" rel="nofollow">Panel Everywhere template configuration</a>.</li><li><a href="http://screencast.com/t/3olfvK2rT" style="line-height: 1.4285715;" class="external-link" rel="nofollow">SASS Partials layouts and susy intro.</a></li><li><a href="http://screencast.com/t/SS0dJ7LQpf4S" style="line-height: 1.4285715;" class="external-link" rel="nofollow">Theming regions and components / partials.</a><span style="line-height: 1.4285715;">&nbsp;</span></li><li><a href="http://screencast.com/t/04J0SksAudv5" style="line-height: 1.4285715;" class="external-link" rel="nofollow">Iconfonts</a>.</li><li><span style="line-height: 1.4285715;"><a href="http://screencast.com/t/Ac2R9wJs" class="external-link" rel="nofollow">Export Panels Everywhere template with drush and features</a>.<
@z3cka
z3cka / hook_views_order.txt
Created May 6, 2015 16:38
Order of views hooks
pre_view,
pre_build,
post_build,
pre_execute,
post_execute,
pre_render,
post_render.
@z3cka
z3cka / monkey-script.html
Last active August 29, 2015 14:01
sample "embed" ? from mailchimp
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup .size1of2 {
clear: none;
float: left;
display: inline-block;
width: 100%;
margin-right: 4%;
}
@z3cka
z3cka / functions.js
Created March 21, 2014 04:44
maybe the easiest test I ever took... :-P via http://www.cdc.gov/concussion/HeadsUp/Training/index.html
var currentLesson;
var currentSlide;
var highestLesson;
var thisDelay;
var isPaused = true;
var l2audioIsPlaying = false;
var quizKey = {};
var questionOrVideo = {};
var didExplore = 0;
@z3cka
z3cka / nginx.conf
Last active August 29, 2015 13:57
example of a load balancer config via nginx's upstream module
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
@z3cka
z3cka / photo.html
Last active December 30, 2015 23:49 — forked from anonymous/photo.html
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Gabe's Portfolio</title>
<link href="Main.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>Untitled Document</title>