Skip to content

Instantly share code, notes, and snippets.

@jakesylvestre
jakesylvestre / gist:f09006e03908f485c07d
Last active August 29, 2015 14:02 — forked from jordelver/gist:3139365
requires sudo priveleges

Find the SD card device

In this case, the SD card is /dev/disk4. DO NOT get this wrong or you may destroy all the data on the wrong disk/card/drive.

diskutil list

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *160.0 GB   disk0

1: EFI 209.7 MB disk0s1

/*
* Part of Tipped - The jQuery Tooltip
* http://projects.nickstakenburg.com/tipped
*
* Documentation:
* http://projects.nickstakenburg.com/tipped/documentation/skins
*
* IMPORTANT!:
* It's recommended to add CSS for custom skins in a separate file,
* that way this file can be updated without losing your own skins.
@jakesylvestre
jakesylvestre / confidential.txt
Created October 2, 2014 00:13
Sample Confidentiality Notice
This electronic message is confidential and is intended only for the use of the individual to whom it is addressed. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, you are hereby notified that any use, dissemination, distribution or reproduction of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender and delete the message from your system.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="http://schemas.live.com/Web/" xmlns:fb="http://ogp.me/ns/fb#">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<script type="text/javascript">
//<![CDATA[
si_ST = new Date
//]]>
@jakesylvestre
jakesylvestre / laravel.gitignore
Created October 11, 2014 02:34
Laravel gitignore
#laravel
/bootstrap/compiled.php
/vendor
composer.phar
composer.lock
.env.*.php
.env.php
.DS_Store
Thumbs.db
/*! jQuery v2.0.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],f="2.0.0",p=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=f.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.no
/*!
* jQuery JavaScript Library v2.1.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
@jakesylvestre
jakesylvestre / gist:868ad567c2f6be64bd26
Created November 27, 2014 06:18
Insomnia speed test
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
oTesting from Ziggo (80.112.131.85)...
Selecting best server based on latency...
Hosted by NFOrce Entertainment B.V. (Amsterdam) [12.29 km]: 6.524 ms
Testing download speed.......................................
Download: 93.38 Mbits/s
Testing upload speed..................................................
Upload: 91.66 Mbits/s
sudo add-apt-repository ppa:webupd8team/brackets && sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 && sudo apt-get update -qq && sudo apt-get install spotify-client && sudo apt-get install vlc build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev tmux irssi mosh screen chromium-browser bsdgames ytree git docker.io vim emacs brackets -y && wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-2-installer.run/download && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo chmod +x xampp-linux-x64-1.8.3-2-installer.run && sudo ./xampp-linux-x64-1.8.3-2-installer.run && wget http://download.skype.com/linux/skype-ubuntu-precise_4.3.0.37-1_i386.deb && ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
@jakesylvestre
jakesylvestre / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console