Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/bin/bash | |
set -e | |
CURRENT_NAME="CurentName" | |
CURRENT_OTP="current_name" | |
NEW_NAME="NewName" | |
NEW_OTP="new_name" |
/* demonstrating uint overflow and underflow in ethereum solidity | |
this is why you need guards like: | |
if (balances[_to] + _amount < balances[_to]) throw; | |
*/ | |
contract C { | |
// (2**256 - 1) + 1 = 0 | |
function overflow() returns (uint256 _overflow) { | |
uint256 max = 2**256 - 1; | |
return max + 1; | |
} |
/** | |
* Ethereum Account Scanner | |
* | |
* To run this, you need your own geth node, accepting RPC | |
* connections on a port you can access. | |
* | |
* Install pre-requisites: | |
* sudo npm install -g web3 | |
* | |
* Usage: |
ansible-playbook --connection=local 127.0.0.1 playbook.yml
127.0.0.1 ansible_connection=local
command line
$ PYTHON_CONFIGURE_OPTS="--enable-shared" \
LDSHARED="clang -bundle" \
LDCXXSHARED="clang++ -bundle" \
BLDSHARED="clang -bundle -lpython2.7" \
pyenv install 2.7.11
node_modules | |
_build |
private static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException { | |
WritableMap map = new WritableNativeMap(); | |
Iterator<String> iterator = jsonObject.keys(); | |
while (iterator.hasNext()) { | |
String key = iterator.next(); | |
Object value = jsonObject.get(key); | |
if (value instanceof JSONObject) { | |
map.putMap(key, convertJsonToMap((JSONObject) value)); | |
} else if (value instanceof JSONArray) { |
'use strict'; | |
var metalsmith = require('metalsmith'); | |
var layouts = require('metalsmith-layouts'); | |
var fs = require('fs'); | |
var lorem = fs.readFileSync('./lorem.txt', 'utf8'); | |
var n = 0; | |
// generates a single page |
# Python 2.7 on Jupyter | |
# Libraries: Keras, pandas, numpy, matplotlib, seaborn | |
# For compatibility | |
from __future__ import absolute_import | |
from __future__ import print_function | |
# For manipulating data | |
import pandas as pd | |
import numpy as np | |
from keras.utils import np_utils # For y values |