Skip to content

Instantly share code, notes, and snippets.

View MeryllEssig's full-sized avatar
🌸

Meryll Essig MeryllEssig

🌸
View GitHub Profile
@MeryllEssig
MeryllEssig / proxy.apache.conf
Created May 26, 2020 08:12 — forked from chrisjhoughton/proxy.apache.conf
Sample Nginx reverse proxy to Apache set up for Wordpress.
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin mail@domain.com
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny

Inspired by lots of gitmoji proposals here on github.

Commit type Emoji
Git related
Initial commit 🎉 :tada:
Version tag 🔖 :bookmark:
New feature :sparkles:
Reverting changes :rewind:
Merging branches 🔀 twisted_rightwards_arrows:
@MeryllEssig
MeryllEssig / gulpfile.js
Created August 29, 2017 18:30
Sass live reload, error handling prevent gulp.watch from crash with system notification
let gulp = require('gulp');
let sass = require('gulp-sass');
let concat = require('gulp-concat');
let minifyCss = require('gulp-cssnano');
let uglify = require('gulp-uglify');
let plumber = require('gulp-plumber');
let autoprefixer = require('gulp-autoprefixer');
let notify = require('gulp-notify');
gulp.task('sass', function() {
@MeryllEssig
MeryllEssig / optimizely-js-api-cheatsheet.js
Created August 28, 2017 15:12 — forked from LeCoupa/optimizely-js-api-cheatsheet.js
Optimizely Javascript API Cheatsheet
// Optimizely JavaScript API
// http://developers.optimizely.com/javascript/
// To opt a visitor out of Optimizely tracking
// http://www.example.com/page.html?optimizely_opt_out=true
// 1. API Function Calls
// http://developers.optimizely.com/javascript/#api-function-calls-2
@MeryllEssig
MeryllEssig / mixpanel-cheatsheet.js
Created August 28, 2017 15:11 — forked from LeCoupa/mixpanel-cheatsheet.js
Mixpanel Library CheatSheet
// Mixpanel Cheatsheet
// This requires the mixpanel javascript library to be embedded on your site
// https://mixpanel.com/help/reference/javascript-full-api-reference
// 1. API Methods.
mixpanel.init('new token', { your: 'config' }, 'library_name'); // initialize a new instance of the Mixpanel tracking object
mixpanel.push(['register', { a: 'b' }]); // push() keeps the standard async-array-push behavior around after the lib is loaded. This is only useful for external integrations that do not wish to rely on our convenience methods (created in the snippet).
@MeryllEssig
MeryllEssig / gopath-auto.txt
Created August 28, 2017 15:10
Automatic Gopath setup on current directory
alias go="export GOPATH=$(pwd) ; go"
==> Allow making go get at the root of our projects without setting gopath explicitly
// Alerts
@include alert-variant($background, $border, $text-color);
// Background Variant
@include bg-variant($parent, $color);
// Border Radius
@include border-top-radius($radius);
@include border-right-radius($radius);
@include border-bottom-radius($radius);
@MeryllEssig
MeryllEssig / python_snippets.py
Created January 14, 2017 13:42
python snippets
food = ["pizza", "tacos", "ice cream", "cupcakes", "burgers"]
print(', '.join(str(x) for x in food))
print(*food, sep=", ")
#output: pizza, tacos, ice cream, cupcakes, burgers
p = backwards
print p[::-1]
#output: sdrawkcab