Skip to content

Instantly share code, notes, and snippets.

View PanosJee's full-sized avatar

Panos Papadopoulos PanosJee

View GitHub Profile
@PanosJee
PanosJee / B.json
Created October 20, 2018 21:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=true&gist=
{
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
Verifying my Blockstack ID is secured with the address 1JcqJ3ZfYXtA3cfDdmVTATfHPKC5DoyqiJ https://explorer.blockstack.org/address/1JcqJ3ZfYXtA3cfDdmVTATfHPKC5DoyqiJ
@PanosJee
PanosJee / gist:68a53703c0c44a7efb8c
Created April 15, 2015 21:40
Splunk MINT iOS web view
// Initialize WebView programmatically
MintUIWebView *webView = [[MintUIWebView alloc] init];
// Or initialize WebView from Interface Builder
//Go to the identity inspector, and change the class from UIWebView to MintUIWebView
// Enable Hybrid
[webView setDelegate:self];
//MintWKWebView
@PanosJee
PanosJee / css
Created February 25, 2015 00:46
#image_overlay_panel .image{
background: transparent 50% 50% no-repeat url('https://www.dropbox.com/s/9556bq4h0bnd7q0/retail_floor_plan.jpg?dl=0');
min-height: 500px;
}
#image_overlay_panel .dashboard-panel {
position: relative;
height: 520px;
}
#image_overlay_panel .panel-element-row {
width: 1200px;
### Keybase proof
I hereby claim:
* I am panosjee on github.
* I am panosjee (https://keybase.io/panosjee) on keybase.
* I have a public key whose fingerprint is 3979 5DB8 0196 2BD4 47F4 7FFA 8BE3 A860 4568 46CE
To claim this, I am signing this object:
@PanosJee
PanosJee / gist:d2e3d8160ceb5eef9685
Created June 20, 2014 21:13
Get last day errors across all BugSense projects
import requests
import json
base = 'https://www.bugsense.appspot.com'
def get_all_projects(token, **kwargs):
from datetime import datetime, timedelta
timestamp = (datetime.utcnow() - timedelta(days=1)).replace(hour=23,minute=59,second=59)
base_url = "%s/api/v1/projects.json" % (base)
# run atos
sub symbolize_frames {
my ($images,$bt) = @_;
# create mapping of framework => address => bt frame (adjust for slid)
# and for framework => arch
my %frames_to_lookup = ();
my %arch_map = ();
my %base_map = ();
@PanosJee
PanosJee / bugsense_cli.py
Last active August 29, 2015 13:56
Upload Proguard Mappings files to BugSense via API
# -*- coding: utf-8 -*-
"""
bugsense_cli.py
~~~~
Sample script to upload dSYMSs and access the Read API
:version: 0.1
:copyright: 2013 by bugsense.com.
"""
from urllib import quote
init([]) ->
% Start the scheduled GC job every minute. Naive!
erlang:send_after(60 * 1000, self(), {gc}),
{ok, no_state}.
handle_info({gc}, State) ->
case erlang:memory(binary) of
% We use more than 500 MB of binary space
Binary when Binary > 500000000 ->
erlang:garbage_collect(self())
function fetchdata()
local phandle = assert(io.open('event.json', 'r'))
local pdata = phandle:read('*all')
phandle:close()
return pdata
end
wrk.method = 'POST'
wrk.body = fetchdata()
wrk.headers['Content-Type'] = 'application/json'