Skip to content

Instantly share code, notes, and snippets.

View puria's full-sized avatar
🍩
🧘🏼‍♀️👷🏻‍♀️

Puria Nafisi Azizi puria

🍩
🧘🏼‍♀️👷🏻‍♀️
View GitHub Profile
credentialissuer@decidim:~$ cd dddc-credential-issuer/
credentialissuer@decidim:~/dddc-credential-issuer$ !30
/home/credentialissuer/dddc-credential-issuer/venv/bin/gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 127.0.0.1:8080 app.main:api
[2019-03-05 18:01:37 +0000] [30894] [INFO] Starting gunicorn 19.9.0
[2019-03-05 18:01:37 +0000] [30894] [INFO] Listening at: http://127.0.0.1:8080 (30894)
[2019-03-05 18:01:37 +0000] [30894] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2019-03-05 18:01:37 +0000] [30897] [INFO] Booting worker with pid: 30897
[2019-03-05 18:01:37 +0000] [30898] [INFO] Booting worker with pid: 30898
[2019-03-05 18:01:37 +0000] [30900] [INFO] Booting worker with pid: 30900
[2019-03-05 18:01:37 +0000] [30902] [INFO] Booting worker with pid: 30902
zenroom/examples/zencode_coconut git/master
(venv) ❯ ./run_coconut_example.sh
Generate credential issuer keypair
[*] Zenroom v0.8.1 - crypto language restricted VM
. Copyright (C) 2017-2019 Dyne.org foundation
. reading Zencode from stdin
. loaded file (188 bytes)
. using default configuration
. loading lua initialisation
. starting execution.
❯ docker run -ti cslog /bin/bash
root@fcdcfb86b0a5:/app# make tail-node
tail -f chainspacecore-0-0/screenlog.0
Session Created, active clients=0
Session Created, active clients=0
Session Created, active clients=0
Session Created, active clients=0
[thread-38] NettyClient.reconnect - re-connecting to replica [3] at [/127.0.0.1:17000]
Channel active
[thread-42] NettyClient.reconnect - re-connecting to replica [3] at [/127.0.0.1:17000]
▲ src/zenroom/src llvm-nm zenroom.bc develop :: 5h :: ⬡
U __errno_location
U act
U error
U exit
U fclose
U feof
U fflush
U fgets
U fopen
▲ ~/src/zenroom make js 10s develop :: 3h :: ⬡
./build/apply-patches
xxd -i src/lua/schema.lua | sed 's/src_lua_schema_lua/lualib_schema/g' > src/lualib_schema.c
xxd -i src/lua/inspect.lua | sed 's/src_lua_inspect_lua/lualib_inspect/g' > src/lualib_inspect.c
-- Building lua_sandbox
mkdir -p /Users/puria/src/zenroom/build/lua_sandbox && cd /Users/puria/src/zenroom/build/lua_sandbox && CC=/Users/puria/src/emsdk/emscripten/1.37.34/emcc cmake /Users/puria/src/zenroom/lib/lua_sandbox -DCMAKE_C_FLAGS="-O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 -fno-strict-overflow"
The optional documentation tools were not found; the doc target has not been created
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/puria/src/zenroom/build/lua_sandbox
@puria
puria / mncTable
Created May 17, 2013 10:12
Android HashMap from mnc mcc countryISO to International prefix to retrieve them just: TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); mncTable.get(tm.getSimOperator() + tm.getSimCountryIso());
HashMap mncTable = new HashMap<String, int>();
mncTable.put("00", 0);
mncTable.put("20210gr", 30);
mncTable.put("2021gr", 30);
mncTable.put("2025gr", 30);
mncTable.put("2029gr", 30);
mncTable.put("20412nl", 31);
mncTable.put("20415nl", 31);
mncTable.put("20416nl", 31);
mncTable.put("20420nl", 31);
@puria
puria / 0001-Added-italian-translation.patch
Created November 18, 2011 09:54
italian patch for lettuce
From 6fd0c2757761ff4d6e910e1a687dc888b0080b8e Mon Sep 17 00:00:00 2001
From: Puria Nafisi Azizi <puria.nafisi@axant.it>
Date: Fri, 18 Nov 2011 10:49:53 +0100
Subject: [PATCH] Added italian translation
---
lettuce/languages.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/lettuce/languages.py b/lettuce/languages.py
@puria
puria / fabfile.py
Created November 5, 2011 00:16 — forked from jeremi/fabfile.py
A fabfile to manage git+appengine deployement
from __future__ import with_statement
import functools
import os
import sys
from fabric.api import *
from fabric.colors import green, red, green
import datetime
import re