Skip to content

Instantly share code, notes, and snippets.

View dincho's full-sized avatar

Dincho Todorov dincho

View GitHub Profile
<?php
/*
$Id$
The PayPal class implements the dynamic encryption of PayPal "buy now"
buttons using the PHP openssl functions. (This evades the ISP restriction
on executing the external "openssl" utility.)
Author: Ivor Durham (ivor.durham@ivor.cc)
Author/Modified: Dincho Todorov
@dincho
dincho / git-branch-cleanup
Created November 17, 2014 12:22
Git local branches cleanup
git branch --merged | grep -v "master" | xargs git branch -D
@@ -400,6 +400,9 @@
return this.each(function () {
if (typeof options == 'string') {
+ //restore options state before public method calls
+ tagManagerOptions = obj.data('tagManager-options');
+
switch (options) {
case "empty":
empty();

Keybase proof

I hereby claim:

  • I am dincho on github.
  • I am dincho (https://keybase.io/dincho) on keybase.
  • I have a public key whose fingerprint is DF2F D650 CA92 034E 4B70 BAA2 2090 D774 DDF9 043A

To claim this, I am signing this object:

@dincho
dincho / cloudflare_update.script
Created January 19, 2017 15:40 — forked from kiler129/cloudflare_update.script
Automatic script for Mikrotik RouterOS updating record on CloudFlare.
#########################################################################
# ================================================== #
# $ Mikrotik RouterOS update script for CloudFlare $ #
# ================================================== #
# #
# - You need a CloudFlare account & api key (look under settings), #
# a zone and A record in it #
# - All variables in first section are obvious, except CFid, #
# To obtain CFid use following command in any unix shell: #
# curl https://www.cloudflare.com/api_json.html -d 'a=rec_load_all' -d 'tkn=YOUR_API_KEY' -d 'email=email@example.com' -d 'z=domain.com'|python -mjson.tool