Skip to content

Instantly share code, notes, and snippets.

@ricog
ricog / 00-deploy-quasar-framework-using-aws-amplify-console.md
Last active January 2, 2024 06:53
Deploy Quasar Framework using AWS Amplify Console
  1. Modify build image settings to use the node:12 image (see screenshot below).
  2. Replace the amplify.yml file in the console with this one.

This will start the build using node:12, install Quasar CLI, run quasar build and speficy dist/spa as the output directory.

image

@ricog
ricog / Dockerfile
Created November 8, 2016 15:54
Docker wait for mysql to be ready and then load sql
FROM mysql:5.6
MAINTAINER Your Name <you@yourplace.com>
COPY wait-for-mysql.sh /
CMD /wait-for-mysql.sh

Keybase proof

I hereby claim:

  • I am ricog on github.
  • I am ricog (https://keybase.io/ricog) on keybase.
  • I have a public key whose fingerprint is D7FA 65DA 4CA0 7552 CA59 4550 0DA3 010B 5ADA 2730

To claim this, I am signing this object:

@ricog
ricog / gist:9df21476cc7ff697aad3
Last active August 29, 2015 14:07
Disabling SSLv3 on HTTPS web servers
@ricog
ricog / gist:e5f468f24a475f89e9cf
Created October 8, 2014 17:20
Intro to Docker on OSX

Intro to Docker

Installing Docker on OSX (using boot2docker)

Look at Docker Installation or if you already have VirtualBox and Homebrew installed:

`brew update && brew install docker`

Running the Docker VM

-- Looking for records that will expire 3 or 9 months from today.
-- Original query.
-- DATE(NOW()) = DATE_SUB(`Dress`.`expiration_date`, INTERVAL 3 MONTH) OR
-- DATE(NOW()) = DATE_SUB(`Dress`.`expiration_date`, INTERVAL 9 MONTH)
-- Start a select query.
SELECT
-- PROBLEM
@ricog
ricog / vim-vundle
Created June 30, 2014 20:04
Easy Vim plugin installation using Vundle (add to your ~/.vimrc)
" ===== Vundle Setup - the vim plugin bundler =====
" This will install Vundle if not installed
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
let iCanHazVundle=0
@ricog
ricog / deployment-workflow.md
Last active December 18, 2015 15:58
Deployment workflow

Below is a branching strategy using rebase that maintains a deployable master branch and stable staging branch for quality assurance testing.

###Branch Concepts

  • master - always deployable to production
  • staging - stable code base ready for pre-production testing, also the feature branch merge target
  • features - one branch per feature, testable in development environments, only merged to staging once stable and ready to deploy
  • patches - one branch per patch, urgent items that need applied to master branch ahead of staging and feature branches

Feature branches are agressively rebased on the staging branch by the feature developer. After completed, tested, and signed off (by at least one other developer), the feature branch is merged into staging for final testing. Patch/fix branches are derived from master and rebased if necessary before merging back in.

@ricog
ricog / html5-skeleton
Created April 30, 2012 21:15
HTML5 skeleton
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</body>
</html>
@ricog
ricog / gist:2022105
Created March 12, 2012 13:59
Include DebugKit on-the-fly when debug >= 3

This gist shows an easy way to include DebugKit as a new debug level in your CakePHP applications. You'll first need to install the DebugKit plugin and then add the following code:

CakePHP >= 2.0

In Config/bootstrap.php

// Load DebugKit only if debug level is greater than 3
if (Configure::read('debug') >= 3) {

CakePlugin::load("DebugKit");