Skip to content

Instantly share code, notes, and snippets.

View josephtaylor's full-sized avatar

J. Taylor O'Connor josephtaylor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am josephtaylor on github.
  • I am josephtaylor (https://keybase.io/josephtaylor) on keybase.
  • I have a public key ASBT9R_b6gfsb52Paeh55Q5kOPP88mYETxEL2D2frQyNTwo

To claim this, I am signing this object:

@josephtaylor
josephtaylor / vypervpn_cli_on_ubuntu_18.md
Last active January 23, 2020 15:00
Vypervpn CLI on Ubuntu 18.04 Bionic

Fixing ViperVPN CLI on Ubuntu 18.04

These are the steps I took to get the vypvrvpn CLI tool working on Ubuntu 18.04

Step 1: Fix the systemd service file

Edit /etc/systemd/system/vyprvpn.service so the contents are:

[Unit]
Description=VyprVPN Manager
$ single account summary -d single-boostlink-demo | jq '.users[] | .email'
"admin@singlemusic.com"
$ single account summary -d single-boostlink-demo
{
"accountId": 1,
"active": true,
"myshopifyDomain": "single-boostlink-demo.myshopify.com",
"name": "Single BoostLink Demo",
"users": [
{
"accountUserId": 1,
"email": "admin@singlemusic.com"
@josephtaylor
josephtaylor / traefik-labels.yml
Created April 26, 2019 19:36
link-shortener-2
labels:
- "traefik.port=80"
- "traefik.enable=true"
- "traefik.click.frontend.rule=Host:link-shortener;AddPrefix:/click"
- "traefik.api.frontend.rule=Host:localhost;
spring.datasource.url=jdbc:mysql://localhost:3307/test_database
spring.datasource.username=test
spring.datasource.password=test
@josephtaylor
josephtaylor / TestSuite.java
Created December 12, 2018 02:17
embedded-mysql-5
package com.singlemusic.example;
import com.wix.mysql.EmbeddedMysql;
import com.wix.mysql.config.MysqldConfig;
import com.wix.mysql.config.SchemaConfig;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@josephtaylor
josephtaylor / DatabaseTest.java
Created December 12, 2018 02:15
embedded-mysql-4
package com.singlemusic.example;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import javax.persistence.EntityManager;
@josephtaylor
josephtaylor / application.properties
Created December 12, 2018 02:12
embedded-mysql-3
spring.application.name=@project.artifactId@
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect