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| // const Web3 = require('web3') | |
| // const Tx = require('ethereumjs-tx'); | |
| // const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')) | |
| // .... | |
| const data = contractInstance.methods.myMethods(param...).encodeABI() | |
| const tx = new Tx(null) | |
| tx.nonce = await web3.eth.getTransactionCount(hd_wallet_address) | |
| tx.from = hd_wallet_address | |
| tx.gasPrice = GAS_PRICE |
| # To Update | |
| curl -sI https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz | awk '/Location:/ {print $2}' | |
| # compute the hash | |
| nix-prefetch-url --type 256 unpack <URL> |
| #!/bin/sh | |
| echo "Start loopback scaffolding for $1" | |
| echo "Enter name for application:" | |
| read app | |
| echo "Creating $app" |
| import boto3 | |
| dynamodb = boto3.resource('dynamodb') | |
| table = dynamodb.Table('table') | |
| response = table.scan( | |
| ProjectionExpression='#k,#s', | |
| ExpressionAttributeNames={ | |
| '#k' : 'id', #partition key |
| #!/bin/bash | |
| # install node.js - v4 and v6 have problem running strong-pm? | |
| curl -sL https://rpm.nodesource.com/setup_5.x | bash - | |
| apt-get install -y nodejs git | |
| # install strong-pm | |
| npm install -g strong-pm | |
| # or sudo sl-pm-install --http-auth user:password | |
| sudo sl-pm-install |
| <?php | |
| class Custom_Module_Model_Observer { | |
| public function customRedirect() { | |
| $url = Mage::helper('core/url')->getCurrentUrl(); | |
| $url = Mage::getSingleton('core/url')->parseUrl($url); | |
| $path = $url->getPath(); | |
| $action = Mage::app()->getRequest()->getActionName(); | |
| $pattern = '/[.*]?\/custommodule\/index\/[.*]?|[.*]?\/admin[$.*]?/'; |
| // This #include statement was automatically added by the Particle IDE. | |
| #include "TM1637Display/TM1637Display.h" | |
| TM1637Display display(4, 5); // connect CLK to D4, DIO to D5 | |
| int followers = 0; // or start with number that in your profile | |
| void setup() | |
| { | |
| Serial.begin(9600); | |
| #pragma mark -MFMEssageComposeViewControllerDelegate | |
| - (void)messageComposeViewController:(MFMessageComposeViewController *)controller | |
| didFinishWithResult:(MessageComposeResult)result { | |
| switch(result) { | |
| case MessageComposeResultCancelled: | |
| // user canceled sms | |
| [self dismissViewControllerAnimated:YES completion:nil]; | |
| break; |
| // ATLMIMETypeImageJPEGPreview, ATLMIMETypeTextPlain defined in Altas to present the MIME tpye for the medias | |
| self.layerClient = [LYRClient clientWithAppID:YOUR_APP_ID]; | |
| self.layerClient.autodownloadMIMETypes = [NSSet setWithObjects:ATLMIMETypeImageJPEGPreview, ATLMIMETypeTextPlain, nil]; | |