Skip to content

Instantly share code, notes, and snippets.

@jhennin
jhennin / create_rg.ps1
Last active July 27, 2017 14:49
Azure Automation: Leveraging Runbooks
param (
[Parameter(Mandatory=$true)]
[string]
$environment
)
$Conn = Get-AutomationConnection -Name AzureRunAsConnection
Add-AzureRMAccount -ServicePrincipal -Tenant $Conn.TenantID `
-ApplicationId $Conn.ApplicationID -CertificateThumbprint $Conn.CertificateThumbprint
@jhennin
jhennin / custom_genesis_file.json
Last active October 3, 2017 17:44
Genesis file for private blockchain.
{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"difficulty": "400000",
"gasLimit": "2100000",
"alloc": {
[
{
"name" : "my_private_network",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"max_restarts" : 10,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",