Skip to content

Instantly share code, notes, and snippets.

View jcanfield's full-sized avatar
💭
If I do not respond quickly, try me on Twitter at @creativeboulder.

Joshua Canfield jcanfield

💭
If I do not respond quickly, try me on Twitter at @creativeboulder.
View GitHub Profile
@jcanfield
jcanfield / index.html
Created September 4, 2012 04:30
HTML Meta Data for DublinCore and Geolocation
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
<meta name="DC.title" content="Title of Website">
<meta name="DC.creator" content="Author">
<meta name="DC.subject" content="Subject. IE Business Type">
<meta name="DC.description" content="Complete Description of your Website">
<meta name="DC.publisher" content="Author">
<meta name="DC.contributor" content="Author and Contributors">
<meta name="DC.type" content="Text" scheme="DCTERMS.DCMIType">
<meta name="DC.format" content="text/html" scheme="DCTERMS.IMT">
195.114.173.153 # ns1.internetia.pl - Netia
195.116.55.69 # ns2.internetia.pl - Netia
8.8.8.8 # google-public-dns-a.google.com - Google
8.8.4.4 # google-public-dns-b.google.com - Google
208.67.222.222 # resolver1.opendns.com - OpenDNS
208.67.220.220 # resolver2.opendns.com - OpenDNS
208.67.222.220 # resolver3.opendns.com - OpenDNS
208.67.220.222 # resolver4.opendns.com - OpenDNS
149.156.1.3 # nms.cyf-kr.edu.pl
149.156.4.11 # info.cyf-kr.edu.pl
@jcanfield
jcanfield / index.html
Created July 28, 2012 02:28
DublinCore, Facebook Meta Tag and Geolocation Meta Tags (HTML5)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Lonely Women Cooks For Nobody</title>
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
<meta name="DC.title" content="Lonely Women Cooks For Nobody<">
<meta name="DC.creator" content="William Clinton (http://www.man-has-his-needs.com/">
<meta name="DC.subject" content="Politics">
@jcanfield
jcanfield / gistrepo-shorten.sh
Created September 29, 2012 21:18
Git.io Generator (Bash Script)
#!/bin/bash
##
## Usage: gist-shorten.sh gistID urlshortenedname
echo "--> Creating git.io address for your Gist..."
curl -i http://git.io -F "url=https://gist.github.com/$1" \
-F "code=$2"
echo "--> Created http://git.io/$2 ..."
@jcanfield
jcanfield / sources.list
Created April 27, 2017 17:19
Ubuntu 16.10 Sources for APT
# Ubuntu Sources List Generator
>>> NEWS: Now available on SSL
>>> Replace your /etc/apt/sources.list with the following one. For adding GPG keys of new repos, see instruction (if available) in the sources.list below itself.
## curl https://repogen.simplylinux.ch/txt/yakkety/sources_dccbf34a40895c1d9b7a7e7d24ee21dbbbccc385.txt | sudo tee /etc/apt/sources.list
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
@jcanfield
jcanfield / gist:4522839
Created January 13, 2013 07:33
htaccess Configuration for Wordpress (Developed for a client project and utilizes Caching, Correct Timezones, ETAG Configuration, Compression and Basic Rewrites.
# .htaccess for some-website.com
# By Joshua Canfield (Code Clarity)
# Features include Page Caching by FilesMatch, mod_expires & mod_header. Also uses old website 301 Redirections
# Sets Timezone to Mountain
SetEnv TZ America/Denver
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
@jcanfield
jcanfield / 404.html
Created October 11, 2012 03:17
404 Not Found Template (via SusyBird.net and Modified)
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Error</title>
<style>
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
html { padding: 30px 10px; font-size: 20px; line-height: 1.4; color: #737373; background: #f0f0f0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, input { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
@jcanfield
jcanfield / tmux-cheatsheet.markdown
Last active July 27, 2018 10:32 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Cheatsheet for `tmux`

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jcanfield
jcanfield / dnsupdater.sh
Created July 15, 2018 04:38 — forked from fibergames/dnsupdater.sh
DigitalOcean dynamic DNS updater script for your subdomain
#!/bin/bash
# Created by fibergames.net // Loranth Moroz // v.0.5
# Required tools to run this script as is: curl (https://curl.haxx.se/) & jq (https://stedolan.github.io/jq/)
# This only works for Digitalocean - 10$ credit referral link: https://m.do.co/c/fed75101475f
# Edit token, domain, subdomain to fit your needs
# Substitute ipinfo.io with your own ip-checker e.g. ipecho.net/plain
# This is to be used with crontab -> example entry to run it every 3hours:
# 0 */3 * * * sh /path/to/script/dnsupdater.sh
# Don't forget to make it executable: chmod +x /path/to/script/dnsupdater.sh
@jcanfield
jcanfield / sublime-text_20180711.log
Created July 11, 2018 20:42
Sublime Text 3dev Freezes
error 14:31:51.003155 -0600 Sublime Text AEGetDescData of non-desc type 'reco' not a good idea
default 14:31:51.863304 -0600 Sublime Text TIC Enabling TLS [1:0x608000173a40]
default 14:31:51.863414 -0600 Sublime Text TIC TCP Conn Start [1:0x608000173a40]
default 14:31:51.863727 -0600 Sublime Text Task <B3A60CA8-6401-45EC-8631-813C1710F547>.<0> setting up Connection 1
default 14:31:51.863770 -0600 Sublime Text [1 <private> <private>] start
default 14:31:51.928317 -0600 Sublime Text TIC TLS Event [1:0x608000173a40]: 1, Pending(0)
default 14:31:51.976038 -0600 Sublime Text TIC TLS Event [1:0x608000173a40]: 2, Pending(0)
default 14:31:51.989940 -0600 Sublime Text UNIX error exception: 17
default 14:31:52.016819 -0600 Sublime Text UNIX error exception: 17
default 14:31:52.025569 -0600 Sublime Text UNIX error exception: 17