Skip to content

Instantly share code, notes, and snippets.

View nvanselow's full-sized avatar

Nick Vanselow nvanselow

  • MA
View GitHub Profile
@nvanselow
nvanselow / Build Android Binary.md
Last active April 22, 2022 14:19
Generate Android Signed APK File for Google Play with Ionic
  1. Navigate to the project folder

  2. In the command line run ionic build android --release

  3. Then in the command line run jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name

    Change "my-release-key.keystore" and "alias_name" to match your app. You may also need to change the name of the apk file.

    Also, after the build process in step 2, you should see the path to your release apk at the bottom of the output.

  4. The zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk MyApp.apk

You may need to change the name of the apk file. The signed apk will be in the main folder unless you specify a different folder.

@nvanselow
nvanselow / gist:f00b890c921da937ddb6
Last active July 7, 2023 19:02
Installing Selenium on Laravel Homestead

Install Selenium and PhantomJS on Laravel Homestead

All commands are in the terminal.

  1. SSH into the Homestead Box - vagrant ssh from homestead directory
  2. Create a new folder for Selenium - mkdir selenium from the ~ directory
  3. Navigate to that folder - cd selenium
  4. Get Selenium - wget http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar *Note: This link comes from copying the link on http://docs.seleniumhq.org/download/
  5. Install Java - sudo apt-get install openjdk-7-jre-headless
@nvanselow
nvanselow / gist:3c6fe71bef68554b1bb0
Last active June 7, 2018 12:36 — forked from antonioribeiro/gist:96ce9675e5660c317bcc
Codeception, Laravel, and PhantomJS

You can use Codeception to test Javascript, like DOM manipulations and Ajax requests. Out of the box it can manipulate DOM elements but can't execute Javascript code, like most testing frameworks. But it gives you the option to use a WebDriver, to connect to a headless browser, and mimic a user browsing your website. It gives you some options: Selenium2, ZombieJS and, the easiest to configure, PhantomJS.

This article covers the installation and usage of PhantomJS, and assumes you are using Laravel Homestead, but it will work on any relatively new Debian based distro, like Ubuntu 14.04.

###Install PhantomJS

Just run those commands to install it:

sudo apt-get update