Skip to content

Instantly share code, notes, and snippets.

View eyenx's full-sized avatar

Toni Tauro eyenx

View GitHub Profile
@eyenx
eyenx / openpgp.md
Last active November 8, 2022 06:51
keyoxide

openpgp4fpr:32A63525D40A109B684936BC0796132F0077A5F8

BEGIN MESSAGE.
YskGk0dYUqeeMJF I3n0o14nwkktMrh zSqGQoNIdsCrhdO kozRGl1VJEj893A
8gQtKSkNFjA14LW UJySvzJflJkTCKq 6Xr2MZHgg4N7HV0 jMW3GCA5LofdHwN
4sVaHVkD2PiL7Eu ZSAzONZWOAFEdNw CVbueneXK06iFNi poT5bEIOW8hAGMA
OHUMt3tLIohYCGz wgtKap5EkeqLQOj jA7pd.
END MESSAGE.
@eyenx
eyenx / keybase.md
Last active October 11, 2016 17:29

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@eyenx
eyenx / check_letsencrypt.sh
Last active January 20, 2016 19:48
Test if let's encrypt certificate is about to expire and redeploy tutum stack to get a new one
test $(($(date "+%s" --date="$(openssl s_client -connect eyenx.ch:443 2>/dev/null <<<QUIT | openssl x509 -noout -enddate | cut -d= -f2)") - $(date "+%s"))) -lt 86400 && tutum stack redeploy eyenx-ch
var app = angular.module('app',[]);
app.controller('mainc',function($scope,$http){
var aggr=0;
var lbltoggler=5;
$scope.times=[];
$scope.values=[];
$scope.metrics=[];
$http.get('data.csv').success(function(d){
$scope.data=d.split('\n');
-- Transformer
-- Input Data: File with these example lines
-- 2014-08-11T23:45:01;1407793501;214821;214821
-- 2014-08-11T23:50:01;1407793801;214887;214887
-- 2014-08-11T23:55:01;1407794101;214955;214955
--
-- Ouput Data: Array of Tuples of (Time2,Diff1,Diff2),(Time3,Diff2,Diff3)
--
-- [(2014-08-11T23:50:01,300,66),(2014-08-11T23:55:01300,300,68)]
--
/* UserChrome CSS to revert Australis change
* taken from http://b.fluff.cc/2014/02/firefox-29-australis-aka-fuck-you.html
*/
/* tab separators */
.tabbrowser-tab:after, .tabbrowser-tab:before {
visibility: hidden !important;
}
/* tabbar background */
#!/usr/bin/python
import urllib.request as ur
import http.server as hs
import socketserver as ss
import os
indexfile="https://paste.eyenx.ch/index.php/W2AGE"
tmpdir="/tmp/schwaul/"
@eyenx
eyenx / prefs.js
Last active December 26, 2015 14:38
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.cache.disk.parent_directory", "~/.cache/firefox");
user_pref("browser.cache.memory.capacity", 1048576);
user_pref("browser.download.dir", "/tmp/dwn");
user_pref("browser.download.folderList", 2);
user_pref("browser.download.manager.showWhenStarting", false);
user_pref("browser.download.panel.firstSessionCompleted", true);
user_pref("browser.download.panel.shown", true);
user_pref("browser.download.save_converter_index", 0);
user_pref("browser.download.useToolkitUI", true);
@eyenx
eyenx / wfica.sh
Last active December 25, 2015 12:59
#!/bin/sh
## workaround proxy error by kru
tmp=/tmp/$RANDOM
awk '{ gsub("ProxyType.*",""); print }' < $1 > $tmp
export ICAROOT=/usr/lib/ICAClient
${ICAROOT}/wfica -file $tmp