Skip to content

Instantly share code, notes, and snippets.

@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.
<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 / 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

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 / 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)

@z3cka
z3cka / passgen.sh
Created September 21, 2016 16:34
Quick command to generate passwords from https://xkpasswd.net _(w/ jq at `/Applications/jq-osx-amd64` on Mac OS )_
curl 'https://xkpasswd.net/s/index.cgi' -H 'Pragma: no-cache' -H 'Origin: https://xkpasswd.net' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: gsScrollPos=' -H 'Connection: keep-alive' -H 'Referer: https://xkpasswd.net/s/' --data 'a=genpw&n=3&c=%7B%22num_words%22%3A3%2C%22word_length_min%22%3A4%2C%22word_length_max%22%3A8%2C%22case_transform%22%3A%22LOWER%22%2C%22separator_character%22%3A%22NONE%22%2C%22padding_digits_before%22%3A0%2C%22padding_digits_after%22%3A2%2C%22padding_type%22%3A%22NONE%22%2C%22random_increment%22%3A%22AUTO%22%7D' --compressed -k | /Applications/jq-osx-amd64
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo apt update && sudo apt install -y build-essential byobu git
git clone https://github.com/ProboCI/probo.git
git clone https://github.com/ProboCI/probo-asset-receiver.git
git clone https://github.com/ProboCI/probo-loom.git
git clone https://github.com/ProboCI/probo-proxy.git
wget -qO- https://get.docker.com/ | sudo sh
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install v4.8.2
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
@z3cka
z3cka / open-now.html
Last active June 15, 2017 17:09 — forked from anonymous/jonathan.html
open-now.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<style>
span {
color: white;