Skip to content

Instantly share code, notes, and snippets.

Zahhar Kirillov zahhar

Block or report user

Report or block zahhar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View func.patch
--- func.php 2018-11-13 20:36:18.000000000 +0100
+++ func.php 2018-11-13 20:35:59.000000000 +0100
@@ -1096,7 +1096,8 @@
fn_pp_set_orders_lock($order_ids, true);
$mode = fn_pp_get_mode(reset($order_ids));
$url = ($mode == 'test') ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
- $result = Http::post($url, $data);
+ $extra['headers'] = ['User-Agent: php/'.phpversion()];
+ $result = Http::post($url, $data, $extra);
}
@zahhar
zahhar / gs_igm.js
Last active Jul 17, 2018
Google Spreadsheet script for Instagram metrics
View gs_igm.js
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Instagram')
.addItem('Update metrics', 'appendInstagramMetrics')
.addToUi();
}
function appendInstagramMetrics() {
var today = Utilities.formatDate(new Date(), "GMT+2", "dd.MM.yyyy HH:mm");
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets().forEach(function (s) {
View sh-downloader.py
import sys
import json
import shutil
import unicodedata
import re
import os
from six.moves import urllib
target = "Downloads"
You can’t perform that action at this time.