Skip to content

Instantly share code, notes, and snippets.

View phortx's full-sized avatar

Ben Klein phortx

View GitHub Profile
@r00takaspin
r00takaspin / puma.service
Created May 11, 2018 15:29
Run puma web server with RVM from systemd
[Unit]
Description=Puma HTTP Server
After=network.target
# Uncomment for socket activation (see below)
# Requires=puma.socket
[Service]
# Foreground process (do not use --daemon in ExecStart or config.rb)
Type=simple
@phortx
phortx / model.js
Last active May 3, 2020 22:27
Vuex-ORM model base class with convenience methods
import { Model as ORMModel } from '@vuex-orm/core';
/**
* Wrapper for models to provide model level convenience methods for interacting with the store and persistence.
* Will be built into vuex-orm in the future. See https://github.com/vuex-orm/vuex-orm/issues/60
*
* Requires the inflected npm package.
*/
export default class Model extends ORMModel {
/**
@velmuruganvelayutham
velmuruganvelayutham / .gitlab-ci.yml
Last active June 10, 2022 23:36
Gitlab-CI - Review Apps - Spring Boot - Heroku
variables:
REVIEW_APP_NAME: "$CI_COMMIT_REF_SLUG-$CI_PROJECT_NAME"
stages:
- build
- review
- deploy
build:
stage: build
import Vue from 'vue'
import {DataStore, Record} from 'js-data'
// define a base class that enables property-level vue reactivity.
export class VueReactiveRecord extends Record {
constructor (...args) {
// among other things, this will apply js-data schema if configured to do so; be sure to do `track: true`
super(...args)
@chetan
chetan / yardoc_cheatsheet.md
Last active May 10, 2024 02:53
YARD cheatsheet
@nicalpi
nicalpi / facebook_registration.rb
Created September 7, 2011 11:48
Testing Omniauth with Devise, Rspec and Capybara
background do
set_omniauth()
click_link_or_button 'Sign up with Facebook'
end