Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// Google Tag Manager | |
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s);j.async=true;j.src= | |
'//www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-ABCDEF'); | |
// End Google Tag Manager | |
App.GtmUtil = { |
# by Matt Harzewski | |
# Read more: http://www.webmaster-source.com/2013/09/25/finding-a-websites-favicon-with-ruby/ | |
require "httparty" | |
require "nokogiri" | |
require "base64" | |
class Favicon |
//php code fixes | |
add_filter('tribe_get_embedded_map','avia_deactivate_google_api',10,1); | |
function avia_deactivate_google_api($google_map){ | |
global $avia_config; | |
if(!empty($google_map)) $avia_config['g_maps_widget_active'] = 1; | |
return $google_map; | |
} | |
//custom css |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<!-- /app/views/admin/users/new_invitiations.html.erb --> | |
<h2>Send invitation</h2> | |
<%= form_for @user, :url => send_invitation_admin_users_path do |f| %> | |
<table style='width: 50%'> | |
<tr> | |
<td><%= f.label :first_name %></td> | |
<td><%= f.text_field :first_name %></td> |
<?php | |
add_filter('avf_title_args', 'fix_events_page_title', 10, 2); | |
function fix_events_page_title($args,$id) | |
{ | |
if (get_query_var('post_type') == 'tribe_events' && !is_single()) | |
{ | |
if((tribe_is_upcoming() || tribe_is_past())) | |
{ | |
$args['title'] = 'Events List'; | |
} |
#!/usr/bin/env ruby | |
require 'aws' | |
if ARGV.length < 5 | |
print <<-EOF | |
Usage: mfa-delete.rb <bucket_name> <aws_id> <aws_secret> <mfa_serial> <mfa_token> <s3_endpoint> | |
<s3_endpoint> is optional | |
EOF | |
exit | |
end |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |