Skip to content

Instantly share code, notes, and snippets.

View videoMonkey's full-sized avatar
🐐

Jamie videoMonkey

🐐
View GitHub Profile
@videoMonkey
videoMonkey / Arabic.html
Created May 20, 2020 12:19
Just a test of arabic text
<!-- wp:heading {"level":1,"className":"book-title"} -->
<h1 class="book-title">
الْإِنْجِيلْ كِمَا رْوَاهْ مَتَّى
</h1>
<!-- /wp:heading -->
<!-- wp:heading {"className":"chapter-title"} -->
<h2 class="chapter-title">
الْفَصْلْ اللّْوّْلْ
</h2>
- name: myvhost
local_path: /Users/example/Sites/vhost
port: 8808
live_url: www.vhost.org
public_html: html
# the VAGRANT_GUEST_DOMAIN will be appended to the name
# local_path is required
# port is optional and creates a port based vhost
# live_url enables image proxying for wordpress sites (that way you don't need to sync wp-uploads
@videoMonkey
videoMonkey / .env
Last active May 12, 2016 08:54
vwww .env file
# https://github.com/gosuri/vagrant-env
# BRETANY_SALT='y@8Y:Ubv{8-Y-EL>[GV&f,mX`I.@9.xyD<fe&e/@ VH8]H?B},TE6[;1Um!O7qQ7'
VAGRANT_GUEST_IP="192.168.12.3"
VAGRANT_GUEST_DOMAIN="example.com"
# Apache Config
APACHE_HTTP_PORT="80"
APACHE_HTTPS_PORT="443"
- name: 'site1'
port: 8801
local_path: '/Users/test/Projects/site1'
live_url: 'http://site1.example.com'
- name: 'site2'
port: 8802
local_path: '/Users/test/Projects/site2'
live_url: 'http://site2.example.com'
- name: 'app1.host'
local_path: '/Users/test/Projects/app1'
- name: 'app2.host'
local_path: '/Users/test/Projects/app2'
@videoMonkey
videoMonkey / Customfile
Created March 9, 2016 17:51
my vagrant-www repo customfile
# a few more config options that probably shouldn't be part of the git repo
config.vm.provider :parallels do |vm, override|
# this should save space, but if you ever delete the original
# box you ruin the clone
vm.linked_clone = true
# Autostart server on machine boot
# I don't know if I want this.
@videoMonkey
videoMonkey / gist:f4605fc181eecdc53ef5
Last active August 29, 2015 14:14
biblesociety.ma
<div class="video-wrap">
<iframe id="bible-reading" width="950" height="530" border="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="">
</iframe>
<noscript>
<iframe id="bible-reading" src="//player.vimeo.com/video/74715762" width="950" height="530" border="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="">
</iframe>
</noscript>
</div>
<style>
.video-wrap {

404 and 500 error reporting (before I forget)

The following snippet will make it easier to find content that is erroring:

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXX-X']);
  _gaq.push(['_setDomainName', 'xxxxxxx.com']);
<% if(title.indexOf('404') != -1 ) { %>

_gaq.push(['_trackPageview'],'/404.html/?url=' + document.location.pathname + document.location.search + '&ref=' + document.referrer]);

@videoMonkey
videoMonkey / pinned-sites.html
Last active December 15, 2015 18:09
pinned sites code.
<!-- pinned site icons for various applications -->
<!-- ios and android -->
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-icon-57x57-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-icon-72x72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-icon-144x144-precomposed.png" />
<!-- http://mrgan.tumblr.com/post/708404794/ios-app-icon-sizes -->
<!-- splash screen for saved app -->