As configured in my dotfiles.
start new:
tmux
start new with session name:
| new Swipe(document.getElementById("gallery"), function(event, direction) { | |
| event.preventDefault(); | |
| switch (direction) { | |
| case "up": | |
| // Handle Swipe Up | |
| break; | |
| case "down": | |
| // Handle Swipe Down | |
| break; |
| "use strict"; | |
| var crypto = require("crypto"); | |
| var EncryptionHelper = (function () { | |
| function getKeyAndIV(key, callback) { | |
| crypto.pseudoRandomBytes(16, function (err, ivBuffer) { | |
| var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ; |
| // Part of https://github.com/chris-rock/node-crypto-examples | |
| // Nodejs encryption with CTR | |
| var crypto = require('crypto'), | |
| algorithm = 'aes-256-ctr', | |
| password = 'd6F3Efeq'; | |
| function encrypt(text){ | |
| var cipher = crypto.createCipher(algorithm,password) | |
| var crypted = cipher.update(text,'utf8','hex') |
| var crypto = require("crypto") | |
| function encrypt(key, data) { | |
| var cipher = crypto.createCipher('aes-256-cbc', key); | |
| var crypted = cipher.update(data, 'utf-8', 'hex'); | |
| crypted += cipher.final('hex'); | |
| return crypted; | |
| } |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2013 Thom Seddon | |
| * Copyright (c) 2010 Google | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| UseCanonicalName Off | |
| <VirtualHost *:80> | |
| ServerAdmin nobody@example.com | |
| ServerAlias *.example.com | |
| VirtualDocumentRoot /var/www/%1/public | |
| DirectoryIndex index.php index.htm index.html | |
| <Directory /var/www/*/public/> | |
| AllowOverride All | |
| </Directory> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |