Skip to content

Instantly share code, notes, and snippets.

View evo42's full-sized avatar

Rene Kapusta evo42

View GitHub Profile
@evo42
evo42 / pnginator.rb
Created August 7, 2012 09:51 — forked from gasman/pnginator.rb
pnginator: pack Javascript into a self-extracting PNG
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos
@evo42
evo42 / example.css
Created August 29, 2012 08:10
Aloha/UI: toolbar with fixed position / shown on page load
#alohaContainer {
margin-bottom: 10px;
height: 60px;
}
.aloha-ui-pin {
display: none !important;
}
.aloha-ui-toolbar {
@evo42
evo42 / commands-api-example.html
Created August 29, 2012 09:29
Aloha/UI: using Aloha Editor commands API for your own toolbar
<html>
<head>
<link rel="stylesheet" href="http://aloha-editor.org/builds/development/latest/src/css/aloha.css"
type="text/css">
<script src="http://aloha-editor.org/builds/development/latest/src/lib/aloha.js"></script>
</head>
<body>
<button id="bold">Bold</button>
@evo42
evo42 / start.html
Created March 13, 2013 10:49
Aloha Editor: create a plugin
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Aloha Editor Example</title>
<!-- load the require.js and jQuery libraries -->
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/require.js"></script>
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js"></script>
<!-- load the Aloha Editor core and some plugins -->
@evo42
evo42 / onsnap-editable.htm
Created June 4, 2013 18:24
Aloha Editor: onSnap editable!
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Aloha Editor: onSnap editable!</title>
<style>
body {
font-family: arial;
}
.editable {
@evo42
evo42 / .htaccess
Last active April 29, 2017 15:20
due payment reminder for WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .(wp-login)\.php*
RewriteCond %{HTTP_REFERER} !.*(no.payment|what.the.fuck).* [OR]
RewriteRule (.*) /pay-due-invoice-to-login.htm [R=301,L]
</ifModule>
@evo42
evo42 / keybase.md
Created August 13, 2014 20:09
keybase.md

Keybase proof

I hereby claim:

  • I am evo42 on github.
  • I am renekapusta (https://keybase.io/renekapusta) on keybase.
  • I have a public key whose fingerprint is CFE6 7688 4773 EB0C E7AE FD9F 1895 91D0 242E 763D

To claim this, I am signing this object:

@evo42
evo42 / cash.htm
Created April 28, 2015 01:40
€cash
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>SEPA.co &middot; cash</title>
<style>
.amount-currency {
font-size: 7em;
}
@evo42
evo42 / AT-BitATM-list.js
Last active March 8, 2017 09:39
Export a list of ATMs supporting BitATM ('barTAN' / 'smartCash') in Austria
/*
// Export a list of ATMs supporting BitATM in Austria
//
// navigate to the ATM listing page:
https://www.psa.at/karteninhaber/bankomatsuche/bankomatsuche-national/ergebnis/?tx_atmsearch_pi1%5B__referrer%5D%5B%40extension%5D=Atmsearch&tx_atmsearch_pi1%5B__referrer%5D%5B%40vendor%5D=TYPO3&tx_atmsearch_pi1%5B__referrer%5D%5B%40controller%5D=Atm&tx_atmsearch_pi1%5B__referrer%5D%5B%40action%5D=displayAtmSearchForm&tx_atmsearch_pi1%5B__referrer%5D%5Barguments%5D=YTowOnt949725be06d0290af79f75c756798c9d4cb5b63e1&tx_atmsearch_pi1%5B__trustedProperties%5D=a%3A1%3A%7Bs%3A10%3A%22searchData%22%3Ba%3A9%3A%7Bs%3A9%3A%22atmnumber%22%3Bi%3A1%3Bs%3A8%3A%22bankname%22%3Bi%3A1%3Bs%3A8%3A%22district%22%3Bi%3A1%3Bs%3A3%3A%22zip%22%3Bi%3A1%3Bs%3A8%3A%22zip_drop%22%3Bi%3A1%3Bs%3A4%3A%22city%22%3Bi%3A1%3Bs%3A9%3A%22city_drop%22%3Bi%3A1%3Bs%3A7%3A%22address%22%3Bi%3A1%3Bs%3A7%3A%22atmtype%22%3Bi%3A1%3B%7D%7D9ab20f6e4d382a7c71faf4ef1f6c0d7dba92b811&tx_atmsearch_pi1%5BsearchData%5D%5Batmnumber%5D=&tx_atmsearch_pi1%5BsearchData%5D%
Verifying that +rene_kapusta is my blockchain ID. https://onename.com/rene_kapusta