Skip to content

Instantly share code, notes, and snippets.

View chemicalkosek's full-sized avatar
🏀

chemicalkosek

🏀
View GitHub Profile
@chemicalkosek
chemicalkosek / TaxRateModel.ts
Created February 20, 2021 15:11 — forked from dsumer/TaxRateModel.ts
Apply the correct VAT Rate to your customer in Stripe Checkout
import { Model } from 'objection';
export default class TaxRateModel extends Model {
countryCode!: string;
stripeId!: string;
static tableName = 'tax_rate';
}

Dokku

Creating dokku app

Create the application on the Dokku host. You will need to ssh onto the host to run this command.

 # on the Dokku host
 dokku apps:create my-app-name

Deploy the app

Now you can deploy the my-app-name app to your Dokku server. All you have to do is add a remote to name the app. Applications are created on-the-fly on the Dokku server.

@chemicalkosek
chemicalkosek / 0_reuse_code.js
Created July 29, 2017 19:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console