Skip to content

Instantly share code, notes, and snippets.

Avatar

Dincho Todorov dincho

View GitHub Profile
@dincho
dincho / cloudflare_update.script
Created Jan 19, 2017 — forked from kiler129/cloudflare_update.script
Automatic script for Mikrotik RouterOS updating record on CloudFlare.
View cloudflare_update.script
#########################################################################
# ================================================== #
# $ 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
View keybase.md

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 / git-branch-cleanup
Created Nov 17, 2014
Git local branches cleanup
View git-branch-cleanup
git branch --merged | grep -v "master" | xargs git branch -D
View gist:7d8d4ca4e1f5dede925b
<?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
View options-state-patch.diff
@@ -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();