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
@ericelliott
ericelliott / manifest.json
Created November 8, 2016 00:35
Sample manifest.json
{
"name": "My Progressive Web Application",
"short_name": "Progressive",
"start_url": "/?home=true",
"icons": [
{
"src": "/icons/icon36.png",
"sizes": "36x36",
"type": "image/png"
},
@jcanfield
jcanfield / devenv.sh
Created October 27, 2016 01:59
A small bashscript to setup an web-development environment with gulp, bower, nodejs in Ubuntu/Ubuntu-based distributions. !!! Be careful: I recommend to only use it on a fresh installed system, otherwise it could mess up something !!!
#!/bin/bash
# Echo to nowhere for a more beautiful console output
sudo echo > /dev/null
# Add nodejs and sublime text ppa
echo ':: adding ppas'
sudo add-apt-repository -y ppa:chris-lea/node.js > /dev/null 2>&1
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 > /dev/null 2>&1
@jcanfield
jcanfield / dmesg.md
Last active October 25, 2016 23:26
Debugging and Fixing up an "old" HP Desktop turned headless-linux shell. Just, Repairing "old" HP Desktop which serves as a 'headless-linux' server for over 8 years now.

Re: Repairing "old" HP Desktop which serves as a 'headless-linux' server for over 8 years now

Pasted via Hastebin.com

[ 1264.077530] nouveau E[ PFIFO][0000:02:00.0] DMA_PUSHER - ch 4 [webbrowser-app[5933]] get 0x002005488c put 0x00200548a0 ib_get 0x0000014e ib_put 0x0000014f state 0x80000000 (err: INVALID_CMD) push 0x00400040

[ 1264.078772] nouveau E[ PGRAPH][0000:02:00.0] DATA_ERROR INVALID_ENUM

[ 1264.078791] nouveau E[ PGRAPH][0000:02:00.0] ch 4 [0x000f97f000 webbrowser-app[5933]] subc 3 class 0x8397 mthd 0x15dc data 0x00107b00

#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active June 19, 2025 10:22
tmux Cheat Sheet
@jcanfield
jcanfield / index.html
Created August 17, 2016 07:44 — forked from arkaitzgarro/index.html
HTML5 Boilerplate
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Plantilla HTML5</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.css">
@noeljackson
noeljackson / docker-compose-swarm.sh
Last active September 27, 2020 17:56
Run docker-compose with docker-machine and docker-swarm on digital ocean
#from https://www.linux.com/learn/how-use-docker-machine-create-swarm-cluster
#export digital ocean token
export DO_TOKEN="abcdefghijklmnopqrstuvwxyz"
#make keystore
docker-machine create -d digitalocean \
-digitalocean-access-token ${DO_TOKEN} \
--digitalocean-region "nyc1" \
--digitalocean-image="ubuntu-14-04-x64" \
--digitalocean-size "512mb" \
directory: ../Original
library: ./library.blb
import:
copy: yes
write: yes
move: no
ignore: .AppleDouble ._* *~ .DS_Store
@jcanfield
jcanfield / how-to-set-up-stress-free-ssl-on-os-x.md
Created December 9, 2015 10:39 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@manigandham
manigandham / rich-text-html-editors.md
Last active June 2, 2025 03:59
Rich text / HTML editors and frameworks

Strictly Frameworks

Abstracted Editors

These use separate document structures instead of HTML, some are more modular libraries than full editors