Skip to content

Instantly share code, notes, and snippets.

@renowncoder
renowncoder / README.md
Created October 14, 2021 23:39 — forked from aronwoost/README.md
Build auto-deploy with php and git(hub) on an EC2 Amazon AMI instance

Kind of continue from the other gist how to install LAMP on an Amazon AMI

##Install git

sudo yum install git-core

##Create ssh directory since it doesn't exists by default on the Amazon AMI

@renowncoder
renowncoder / README.md
Created October 14, 2021 23:39 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@renowncoder
renowncoder / prepare-commit-msg.sh
Created October 11, 2021 11:53 — forked from wingleung/prepare-commit-msg.sh
Automatically prepend JIRA issue key to commit message
#!/bin/sh
#
# Automatically adds Jira key to commit message
#
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
@mixin neumorphism($background) {
$highlight: lighten($background, 4%);
$lowlight: darken($background, 4%);
$shadowhigh: lighten($background, 9%);
$shadowlow: darken($background, 9%);
background: linear-gradient(145deg, $highlight, $lowlight);
box-shadow: 2em 2em 4em $shadowlow, -2em -2em 4em $shadowhigh;
}
@renowncoder
renowncoder / app.scss
Created October 6, 2021 18:52 — forked from kball/app.scss
@charset 'utf-8';
@import 'settings';
@import 'foundation';
@import 'motion-ui';
@include foundation-global-styles;
// @include foundation-grid;
// @include foundation-flex-grid;
//
import $ from 'jquery';
import { Foundation } from 'foundation-sites/js/foundation.core';
import { rtl, GetYoDigits, transitionend } from 'foundation-sites/js/foundation.util.core';
import { Box } from 'foundation-sites/js/foundation.util.box'
import { onImagesLoaded } from 'foundation-sites/js/foundation.util.imageLoader';
import { Keyboard } from 'foundation-sites/js/foundation.util.keyboard';
import { MediaQuery } from 'foundation-sites/js/foundation.util.mediaQuery';
import { Motion, Move } from 'foundation-sites/js/foundation.util.motion';
import { Nest } from 'foundation-sites/js/foundation.util.nest';
import { Timer } from 'foundation-sites/js/foundation.util.timer';
@renowncoder
renowncoder / app.js
Created October 6, 2021 18:52 — forked from kball/app.js
import $ from 'jquery';
require('what-input');
window.$ = $;
import Foundation from 'foundation-sites';
// If you want to pick and choose which modules to include, comment out the above and uncomment
// the line below
//import './lib/foundation-explicit-pieces';
'use strict';
import plugins from 'gulp-load-plugins';
import yargs from 'yargs';
import browser from 'browser-sync';
import gulp from 'gulp';
import panini from 'panini';
import rimraf from 'rimraf';
import sherpa from 'style-sherpa';
import yaml from 'js-yaml';
@renowncoder
renowncoder / gulpfile.js
Created October 6, 2021 15:36 — forked from dyarfi/gulpfile.js
Gulp 3 gulpfile.js config
/*global require*/
"use strict";
var gulp = require('gulp'),
gulpCopy = require('gulp-copy'),
path = require('path'),
data = require('gulp-data'),
// pug = require('gulp-pug'),
twig = require('gulp-twig'), // Decided to use twig, because already familiar with it
prefix = require('gulp-autoprefixer'),