Skip to content

Instantly share code, notes, and snippets.

Alex of6

Block or report user

Report or block of6

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ericandrewlewis
ericandrewlewis / gist:95239573dc97c0e86714
Last active Oct 8, 2019
Setting up a WordPress site on AWS
View gist:95239573dc97c0e86714

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active Nov 26, 2019
Mac OS X 10.10 Yosemite Setup
View osx-10.10-setup.md

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@awhedbee22
awhedbee22 / Hide-Foundation-Modal-BG-Scroll.js
Last active Oct 12, 2017
Stop body from scrolling with Foundation 5 Reveal-Modal
View Hide-Foundation-Modal-BG-Scroll.js
$(".reveal-modal").on("open", function () {
$("body").addClass("modal-open");
});
$('.close-reveal-modal').bind("click touchstart", function () {
$('body').removeClass('modal-open');
});
@rtt
rtt / tinder-api-documentation.md
Last active Dec 2, 2019
Tinder API Documentation
View tinder-api-documentation.md

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details

@davidmh
davidmh / custom-post-type-archive-menu-links.php
Last active Oct 14, 2016 — forked from helgatheviking/custom-post-type-archive-menu-links.php
Adds Custom Post Type archives to the WordPress-powered menus. Compatible with WP 3.8
View custom-post-type-archive-menu-links.php
<?php
/*
Plugin Name: Custom Post Type Archive Menu Links
Plugin URI: http://codeseekah.com/2012/03/01/custom-post-type-archives-in-wordpress-menus-2/
Description: Easily Add Custom Post Type Archives to the Nav Menus
Version: 1.1
Author: soulseekah
Author URI: http://codeseekah.com
License: GPL2
@Dillie-O
Dillie-O / gist:6140774
Last active Nov 6, 2016
Mount ReadyShare network drives and TimeMachine sparsebundle script
View gist:6140774
try
mount volume "smb://readyshare/MacBackup"
end try
do shell script "hdiutil attach -mountpoint /Volumes/MacBackup/ /Volumes/MacBackup/TimeMachine.sparsebundle"
@JamesDullaghan
JamesDullaghan / digitalocean.md
Created Jul 6, 2013
Deploy rails app to digitalocean with nginx, unicorn, capistrano & postgres
View digitalocean.md

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email

@edmundojr
edmundojr / gist:2228169
Last active Oct 2, 2015 — forked from hagenburger/jQuery HTML5 placeholder fix.js
jQuery: Placeholder Fix for IE #snippet
View gist:2228169
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() == '' || input.val() == input.attr('placeholder')) {
You can’t perform that action at this time.