Skip to content

Instantly share code, notes, and snippets.

Avatar

Rodrigo Garcia el-rotny

  • Design Collective
  • United States
View GitHub Profile
View gist:537153cc0fb743a28e1b394c522600ad
[
{
"country": "Ireland",
"created_at": "2013-09-19T01:29:12Z",
"description": "Europe",
"id": "ed30241c-ed8c-4bb6-9714-61953675d0b4",
"locale": "Dublin",
"name": "eu",
"private_capable": false,
"provider": {
View gist:285863f8ea94168a269b38c096395753
"*":
"atom-ide-ui":
"atom-ide-code-format":
formatOnSave: true
"atom-package-deps":
ignored: [
"linter-tidy"
"linter-sass-lint"
"linter-scss-lint"
"linter-scss-lint"
@el-rotny
el-rotny / comment_cache_for_seo.php
Last active Jan 11, 2018
Cache Comment List for Disqus
View comment_cache_for_seo.php
<?php
/*
* Adds Author Box Extending Qode
*
*/
// Allow HTML in author bio section
function abtw_comment_cache(){
$cache_key = '_abtw_comment-cache-key';
@el-rotny
el-rotny / wp-author-import-auto-select.js
Created Jul 5, 2017 — forked from webercoder/wp-author-import-auto-select.js
Auto-select authors for posts during WordPress import. They must already be assigned to the project. Enable jQuery in a plugin or functions.php, and paste this in the browser console.
View wp-author-import-auto-select.js
(function($){
$('#authors li').each(function(key, value) {
var name = $(this).children('strong').first().html();
var re = /\s\([^\)]+\)/gi;
name = name.replace(re, '');
$(this).find('select').first().children('option').each(function(){
if ($(this).html() == name) {
console.log('Comparing ' + $(this).html() + ' to ' + name + ".\n");
$(this).attr('selected', 'selected');
@el-rotny
el-rotny / .gitconfig
Created Jul 1, 2016
Gitconfig with Aliases
View .gitconfig
[core]
filemode = false
excludesfile = /Users/sugarskull/.gitignore_global
pager = less -r
whitespace = trailing-space,space-before-tab
[color]
ui = auto
branch = auto
diff = true
interactive = auto
@el-rotny
el-rotny / README.md
Created Jun 15, 2016 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
View README.md
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
View gist:30a36e3267e780b31434
*** LOCAL GEMS ***
actionmailer (4.1.9)
actionpack (4.1.9)
actionview (4.1.9)
activemodel (4.1.9)
activerecord (4.1.9)
activeresource (4.0.0)
activesupport (4.1.9)
acts-as-taggable-on (3.5.0)
View Gemlist
source 'https://rubygems.org'
ruby '2.2.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.9'
gem 'sprockets-rails', '~> 2.1.4', :require => 'sprockets/railtie'
# Using postgresql as the database for ActiveRecord
gem 'pg'
@el-rotny
el-rotny / deploy.rb
Last active Dec 18, 2016
Bedrock / Sage Capistrano Deploy
View deploy.rb
set :repo_url, 'git@github.com:Design-Collective/some-repo.git'
set :application, 'the-app-name.com'
set :theme_name, 'sage'
# Branch options
# Prompts for the branch name (defaults to current branch)
#ask :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp }
# Hardcodes branch to always be master
# This could be overridden in a stage config file
@el-rotny
el-rotny / gist:9a317e9a2f2a5ae1fe42
Last active Aug 29, 2015
Bootstrap Carousel Fade - SCSS
View gist:9a317e9a2f2a5ae1fe42
// Carousel Styles
.carousel {
height: 520px;
min-height: 520px;
@media (max-width: $screen-xs-max) {
& {
}
}
.carousel-inner {