Skip to content

Instantly share code, notes, and snippets.

View azhurb's full-sized avatar

Oleksii Zhurbytskyi azhurb

View GitHub Profile
{
"keys":[
{
"kty":"RSA",
"e":"AQAB",
"use": "sig",
"alg": "RS256",
"n":"3lyqXJwyPLBthnQZCOFnZdrMdwgZ9C9xoY7soimq5mCkY7-ku_OiMw4t7ZtSqJkr44_m9nS9vnsyDN_xPS3D7ucfpTyOTtKL31Br3ooxJlA-E5h4NzOmm_gw9Xc64nIsQtmUjETfAnY8WJ5cosaBPNq9qU2oLgcUnuz_xN_HA9M"
}
@azhurb
azhurb / jwks.json
Last active February 11, 2021 13:24
{
"keys":[
{
"kty":"RSA",
"e":"AQAB",
"use": "sig",
"alg": "RS256",
"kid":"573f0bc0-7ea7-4bef-8dc9-6f93b2f6ab01",
"n":"3lyqXJwyPLBthnQZCOFnZdrMdwgZ9C9xoY7soimq5mCkY7-ku_OiMw4t7ZtSqJkr44_m9nS9vnsyDN_xPS3D7ucfpTyOTtKL31Br3ooxJlA-E5h4NzOmm_gw9Xc64nIsQtmUjETfAnY8WJ5cosaBPNq9qU2oLgcUnuz_xN_HA9M"
}
@azhurb
azhurb / xpcom.common.js
Last active October 26, 2021 16:10
Change loading order
/**
* Common XPCOM STB constructor.
* @constructor
*/
function common_xpcom(){
this.user = {};
this.mac = '';
this.ip = '';
this.hd = 1;
@azhurb
azhurb / update_app_config.php
Last active January 4, 2019 14:36
Update launcher config in DB using modified package.json
<?php
if (php_sapi_name() != "cli") {
exit;
}
include "../common.php";
use Stalker\Lib\Core\Mysql;
use Stalker\Lib\Core\Config;
@azhurb
azhurb / photo.py
Created February 18, 2018 09:04
Capture image from camera
import cv2
# Run this script from the same directory as your Data folder
# Grab your webcam on local machine
cap = cv2.VideoCapture(1)
# Initialize photo count
number = 0
@azhurb
azhurb / rot.py
Last active January 29, 2018 08:17
Images augmentation
import numpy as np
import cv2
def rotateImage(image, angle):
image_center = tuple(np.array(image.shape[1::-1]) / 2)
rot_mat = cv2.getRotationMatrix2D(image_center, angle, 1.0)
result = cv2.warpAffine(image, rot_mat, image.shape[1::-1], flags=cv2.INTER_LINEAR)
return result
<?php
/**
* Memcache driver.
* Implementation of http://www.smira.ru/2008/10/29/web-caching-memcached-5/
*
* @package stalker_portal
* @author zhurbitsky@gmail.com
*/
namespace Stalker\Lib\Core;
Index: c/vclub.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/vclub.js (revision 271c5b6577b3d5eca58b6133611e04b6960d90e0)
+++ c/vclub.js (revision 8cceabfec92b7fa1c503cb6cfb4636cf4cd373a1)
@@ -828,6 +828,19 @@
this.load_data.bind(key.REFRESH, this);
};
@azhurb
azhurb / robodngazebo.yml
Created June 8, 2017 06:31
Anaconda environment for Gazebo - Udacity Robotics Nanodegree
name: RoboNDGazebo
channels:
- defaults
dependencies:
- _license=1.1=py27_1
- alabaster=0.7.10=py27_0
- anaconda-client=1.6.3=py27_0
- anaconda=custom=py27_0
- anaconda-navigator=1.6.2=py27_0
- anaconda-project=0.6.0=py27_0
@azhurb
azhurb / Fix_message_lifetime__issue__11418_.patch
Created March 22, 2017 10:56
Fix message lifetime (issue #11418)
Index: c/alert.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/alert.js (revision ff79bf4c36ac0a7b2968e24beb7c4dd22b8e4793)
+++ c/alert.js (revision cf16b1d28aaa90ac0dc713fa523c0311f8495aa5)
@@ -131,6 +131,13 @@
this.show(msg);
}else if (typeof(msg) == 'object'){