View keybase.md

Keybase proof

I hereby claim:

  • I am epappas on github.
  • I am epappas (https://keybase.io/epappas) on keybase.
  • I have a public key ASDRqsNfcxHKaAWKffT5erIJYTq3Dunv0oP_aZEPpnTOFwo

To claim this, I am signing this object:

View epappas.pgp.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFbj6j4BEACwnopZCfZCRFDMBwxFIU3BgybBMu4rxoqhztrE/L/3mbhqmbPR
zwPbn02Z2I8eTfagVeldRSZdOXWwUSNThLBHN34NyO9h82gX5Vo2/EXVHBwObnwT
uGiaHfU00gOHiIsUlRjQzDPAPhV+OxvVmyjNJEFsiN8hIJ8Ft2x4FrxPiEQN29JN
TGXGoUyBM0wzcNy0VBG9/X6AF0TV69saLPl4NGQ3kFPyJmst+U7q+q+ohOzF4QCI
0byFDfE+RsjGBk2bRtEy81oVjDczJYYEaZJhP7jYSxWBb59z3hKMfWGL2Vhbq9Yn
1aknQ8ahXX8Zfk3tX88xF2r7jiMzmvQ4tRmeWTV5s8h94UfO8JMzAFQAGxyBo3dv
nbu378VyhuSxXOaoaEmbiMyTVn2Ppi9Hg6CJ+QsWe8cfSjM2Enn2G7pPmtFI94oh
View trusted_useless_channel.sh
#server
while true; do nc -lp 4445 | openssl aes-256-cbc -d -salt -k proxyPass | openssl aes-256-cbc -d -salt -k realPass | base64 --decode | cat; done
#proxy
while true; do nc -lp 4444 | openssl aes-256-cbc -salt -k proxyPass | nc localhost 4445; done
#client
while true; do cat /dev/urandom | head -c 10 | base64 | openssl aes-256-cbc -salt -k realPass | nc localhost 4444; done
View evancrypt.sh
#!/bin/sh
#
# This is a free to use, free to restribute,
# free to fork and free to edit software.
#
# No responsibility is granted for its use
#
# Contributors:
# - Evangelos Pappas <epappas@evalonlabs.com>
#
View domains.js
function __domains(req, res, next) {
var d = domain.create();
d.id = crypto.randomBytes(32).toString('base64');
d.add(req);
d.add(res);
d.run(function() {
next();
});
View couchDBInstall.sh
#! /usr/bin/env bash
apt-get update
apt-get install -y build-essential
apt-get install -y build-essential
apt-get install -y erlang-base erlang-dev erlang-nox erlang-eunit
apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool
apt-get install -y curl
cd /usr/local/src
curl -O http://apache.mirrors.tds.net/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz
View gist:7f83004640ba3a83bb4a
perl -e 'for(;;sleep 1){printf"\r"."%.4b "x6,split"",`date +%H%M%S`}'
perl -e 'for(;;){@d=split("",`date +%H%M%S`);print"\r";for(0..5){printf"%.4b ",$d[$_]}sleep 1}'
View gist:bf1f763e06561cf26054
[London]
https://www.bathtub2boardroom.com/
https://www.wework.com/london-workspace
http://ministryofstartups.co.uk/
[contracting]
https://www.ipse.co.uk/advice/articles/starting-out
https://news.ycombinator.com/item?id=9726182
http://www.contractoruk.com/first_timers/
https://github.com/tadast/switching-to-contracting-uk
View fact.js
var N = 10;
(function(N){
var arr = [];
for(var i=N+1; i--;) arr.push(i);
arr.pop(); // last elem is 0
return arr;
})(N).reduce(function (n, i) {
return n * i;
}, 1);
View pagination.jade
ul.pagination.right()
// if current page is > 10, have -10 back btn
li.arrow(ng-if="currentPage > 10")
a(ng-click='goToPage(currentPage - 10)') ««
// have previous & nect page as clicable option
li(ng-repeat='n in [-1, 0, 1]' ng-class="{current: currentPage == currentPage + n}")
a(ng-if="currentPage + n > 0 && (currentPage + n) < (total / 10)",
ng-click='goToPage(currentPage + n)') {{currentPage + n}}
// Next btn, if next exists
li.arrow(ng-if="currentPage < (total / 10) + 3 && (currentPage + 3) < (total / 10)")