These diffs were taken from the following two locations:
It shows what the expected diff would look like for a successful migration of a reasonably complex smart contract.
To see the diff view the diff of this gist.
# Run this in an elevated PowerShell prompt | |
<# This script worked on a fresh Windows Server 2012 VM in Azure and the following were the latest versions of each package at the time: | |
* Chocolatey 0.9.8.27 | |
* java.jdk 7.0.60.1 | |
* apache.ant 1.8.4 | |
* android-sdk 22.6.2 | |
* cordova 3.5.0-0.2.6 | |
* nodejs.install 0.10.29 | |
#> | |
# Note: there is one bit that requires user input (accepting the Android SDK license terms) |
These diffs were taken from the following two locations:
It shows what the expected diff would look like for a successful migration of a reasonably complex smart contract.
To see the diff view the diff of this gist.
The _'s in the file names are representative of a folder path.
The following is the console output of how these files were generated:
C:\Windows\system32>cordova -v
3.5.0-0.2.6
C:\Windows\system32>phonegap -v
3.5.0-0.20.7
# If you want to give owner access to the whole server to a particular user account this is how | |
exec sp_addrolemember 'db_owner', 'NT AUTHORITY\NETWORK SERVICE'; | |
GO | |
# If you want to idempotently ensure a particular database with name DatabaseName exists this is how | |
IF NOT db_id('DatabaseName') IS NOT NULL BEGIN | |
PRINT 'Creating database...' | |
CREATE DATABASE [DatabaseName] | |
PRINT 'Created database.' |
param($installPath, $toolsPath, $package, $project) | |
Import-Module (Join-Path $toolsPath "webdriver_installs.psm1") |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Task.WaitAll(new[] {DoStuff()}); | |
} | |
private static async Task DoStuff() | |
{ | |
var client = new DocumentClient(new Uri("https://<documentdbtenant>.documents.azure.com:443/"), |
pgb-wrapper.js
is a generic wrapper module around the phonegap-build-api NodeJS package to add promise support and some helpful functions to make it easier to create a build script.
pgb.example.js
is one example of such a build script, but you might decide to do it differently.
You can execute pgb.example.js
by:
node pgb.example.js --appId {PGB_APP_ID} --apiKey {PGB_API_KEY} --zipFile {path/to/deployment_file.zip} --iosOverTheAirKey {NAME_OF_IOS_OVER_THE_AIR_KEY_IN_PGB} --iosOverTheAirKeyPassword {PASSWORD_OF_IOS_OVER_THE_AIR_KEY_IN_PGB} --iosKey {NAME_OF_IOS_PRODUCTION_KEY_IN_PGB} --iosKeyPassword {PASSWORD_OF_IOS_PRODUCTION_KEY_IN_PGB} --androidKey {NAME_OF_ANDROID_PRODUCTION_KEY_IN_PGB} --androidKeyPassword {PASSWORD_OF_ANDROID_PRODUCTION_KEY_IN_PGB}
The following node packages need to be installed for it all to work:
Following https://mdavies.net/2014/11/27/migrating-wpjekyll/#migrate-from-wordpress you can convert your posts across to Jekyll format, but it adds superfluous metadata and also doesn't correctly handle Wordpress shorttags. This program helps with that.
Fair warning: it's deliberately dirty / hacky code. I ran it with the posts in a Git repo and inspected file-by-file tweaking as I went.