Skip to content

Instantly share code, notes, and snippets.

View papanikge's full-sized avatar

George Papanikolaou papanikge

View GitHub Profile
@papanikge
papanikge / pgp_key.asc
Last active February 22, 2018 16:13
personal gnupg PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFkmpZgBEADRRpD0qFWNOvoUOSrbP4oNqV32n0a342N+2vyO0umS6OOwY63u
bQx95vhR4KylBKNoKPWPED0YRfHv1XTv6AkGntmB1Qb9prGqTgMvF4ogCpRJ2rsV
sZ0U3D8kO1wKuIgA3eYCDCtXRNgTT3bz1ZkVSuC7L8BqBYq5zoiXelkx+cxKOMss
sbIzEezkFnzMrqwIhNgYmyDy2z+84j2XbT8idrHNvLiHwjHRQMZ6Z3htTMV/6Sxq
eKhMuf70SJZK0pBJi5BxSjFdRB3M5hKqEdeoJIiA6vP8Wmtlddw8OYF/+194ABTO
1nCG8lD/wXq3DuOuUq5dKk610Wtxw+lpTa00GAXD1e3wBPJiTF2zsUi1p43AwvcN
uPdDs7lSLLzdwBXhTyVzFhGDGaUMI2LU9ZkxlMXc8QK6dllIfbrPpHn8dikgxBM/
H8mBpxjjEWD3sTlqJTWCKsV+LgWPbwpbHb22wdmG3gGkXTDp6K51r8Au+sYOpn8b
042107c3a649d7da3b1aceaff12075075bc73d31c56f5e68b8ad7e687bb96966e93a3406bf5ab58bea339c5a5a6e73918cb7fe5651f8d39b45ba3074389b031e09
@papanikge
papanikge / keybase.md
Created May 25, 2017 09:44
keybase.md

Keybase proof

I hereby claim:

  • I am papanikge on github.
  • I am papanikge (https://keybase.io/papanikge) on keybase.
  • I have a public key ASB84k0hso5_aNgfW2kA2777SOnNDHGWHjCT1-91b94QgAo

To claim this, I am signing this object:

@papanikge
papanikge / tons-o-mail.rb
Last active August 29, 2015 13:56
Bulk send of e-mails
#!/usr/bin/env ruby
# Send batch mail without the recipients able to identify each other
# You're supposed to give the recipients as command line arguments
# 'papanikge' 2013
require 'mail'
abort if ARGV.empty?
# My e-mail and password
@papanikge
papanikge / command.js
Last active August 29, 2015 13:56 — forked from JoelBesada/README.md
document.ondragstart=function(){return false};dst=function(e){return (p=Math.pow)(p(e.clientX-(rc=e.target.getBoundingClientRect()).left,2)+p(e.clientY-rc.top,2),.5)};$("[href\x2a=imgur]").not($(t="[href$=jpeg],[href$=gif],[href$=png],[href$=jpg]")).each(function(){this.href+='.jpg'});void($(t).not(".EGraw,.click-gadget a,.domain a,.thumbnail").attr({'class':'EGraw',target:'blank'}).each(function(){$(this).append($('<span />').toggle(function(e){$(this).html(' [-]').nextAll().show();return false},function(e){$(this).html(' [+]').nextAll().hide();return false}).click()).append($('<img>').attr({src:this.href,style:'display:block;max-width:780px;height:auto',title:'Drag to resize'}).mousedown(function(e){(t=this).iw=t.width;t.d=dst(e);t.dr=false;e.preventDefault();}).mousemove(function(e){if((t=this).d){t.style.maxWidth=t.style.width=((dst(e))%2At.iw/t.d)+"px";this.dr=true}}).mouseout(f=function(e){this.d=false;if(this.dr)return false}).click(f)).append($('<span />').html('%26#8635;').click(function(e){(i=$(t=th
@papanikge
papanikge / alert.rb
Created June 8, 2013 18:37
alert user after some time interval (sec,min, of hours)
#!/usr/bin/env ruby
require "daemons"
exit -1 unless ARGV.size == 1
Daemons.daemonize
given = ARGV[0]
if given =~ /^\d*s$/
how_much = given.chop.to_i