Skip to content

Instantly share code, notes, and snippets.

View siffring's full-sized avatar

Jason Siffring siffring

View GitHub Profile
@marcedwards
marcedwards / high-dpi-media.css
Last active November 19, 2023 12:56
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
@ianbarber
ianbarber / calcreate.php
Created November 28, 2012 12:19
Create hangout link via calendar
<?php
/*
* example usage:
* First call to get the url
* php calcreate.php
* After authorising, grab the code from the redirect URL
* php calcreate.php "long_code_value_from_oauth_callback"
* This will var_dump out the new calendar entry
*/
require_once 'google-api-php-client/src/Google_Client.php';
@jtallant
jtallant / vagrant-demo.md
Last active August 29, 2015 14:02
vagrant-demo

Generate an SSH Key

You probably already have a public and private key. Check and make sure.

ls -a ~/.ssh | grep id

=> id_rsa
=> id_rsa.pub