Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian Popescu jpopesculian

View GitHub Profile
@jpopesculian
jpopesculian / generate.sh
Created Apr 23, 2020
Generating Test PKI
View generate.sh
#!/bin/sh
set -xe
rm -rf generated/
mkdir -p generated/
openssl ecparam -name prime256v1 -out generated/nistp256.pem
openssl ecparam -name secp384r1 -out generated/nistp384.pem
@jpopesculian
jpopesculian / .gitignore
Last active Dec 23, 2019
Javascript SGX remote attestation samples
View .gitignore
node_modules
.env
@jpopesculian
jpopesculian / github.service
Created Dec 17, 2019
Diogos stupid service
View github.service
[Unit]
Description=Github Service
[Service]
Type=simple
WorkingDirectory=/home/demo/ci-scone/actions-runner/
ExecStart=/bin/bash run.sh
User=demo
[Install]
@jpopesculian
jpopesculian / .gitignore
Last active Mar 10, 2020
Python SGX utils sample
View .gitignore
py_sgx_utils-0.1.0-py2.py3-none-linux_x86_64.whl
Pipfile
View keybase.md

Keybase proof

I hereby claim:

  • I am jpopesculian on github.
  • I am jpopesculian (https://keybase.io/jpopesculian) on keybase.
  • I have a public key ASAaaRhoInUVJXR0phCrlM8GPMwl7RzA517bmMpGmX37lgo

To claim this, I am signing this object:

View zen_example.py
import hashlib
import base58
import base64
import json
from zenroom_minimal import Zenroom
from cryptoconditions import read_zencode
from cryptoconditions import ZenroomSha256
from datetime import datetime
from bigchaindb_driver.crypto import generate_keypair
from bigchaindb_driver import BigchainDB
@jpopesculian
jpopesculian / Dockerfile
Last active Jun 28, 2019
Failing SCONE ECKeyPair generator
View Dockerfile
FROM openjdk:8-alpine
COPY HelloEc.java .
RUN javac -g HelloEc.java
CMD ["java", "HelloEc"]
View Makefile
CFLAGS=-Wall
LDFLAGS=-leprimus -lprimusP11 -I/usr/local/primus/include -L/usr/local/primus/lib -lsodium
CC = gcc
SRC = pkcs11_play.c
OUT = pkcs11_play.o
LOG = /tmp/primus.log
.PHONY:all clean watch build
@jpopesculian
jpopesculian / .env
Last active May 14, 2019
evan create identity test
View .env
PRIVATE_KEY="PARENT PRIVATE KEY"
ACTIVE_PROFILE_ID="PARENT ACTIVE PROFILE ID"
ACCOUNT_ID="PARENT ACCOUNT ID"
CHILD_ACCOUNT="CHILD ACCOUNT ID (generated by register-identity.js)"
CHILD_PRIVATE_KEY="CHILD PRIVATE KEY (generated by register-identity.js)"
DBCP_LOGLEVEL="debug"
@jpopesculian
jpopesculian / sprint
Created Jun 5, 2017
Get current sprint using node-jira
View sprint
#!/bin/bash
CACHE=$HOME/.sprintcache
function updatecache {
sprint=$(jira sprint \
| grep ACTIVE \
| awk '{split($0,a,"│"); gsub(/^[ \t]+/, "", a[3]); gsub(/[ \t]+$/, "", a[3]); print a[3]}')
echo "Updated Active Sprint -> $sprint"
echo -n $sprint > $CACHE
}
You can’t perform that action at this time.