Skip to content

Instantly share code, notes, and snippets.

@OleVik
OleVik / .gitignore
Created May 15, 2016 17:42
.gitignore for Grav deployments
# Grav Root and Unused
/*.*
!.gitignore
/assets
/backup
/bin
/cache
/images
/logs
/system
@sim642
sim642 / DI.m3u
Created July 5, 2015 12:52
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
@benmarwick
benmarwick / rsync.md
Last active May 9, 2020 05:14
rsync Windows to Linux, or Windows to a USB external hard drive
  • from Windows to a remote linux server (view as raw to see diagram), I am using Mysys (ie. same as Git bash)
$ cd to_my_dir

                                     source is everything in my_dir
  show progress for large files           |
                |        dir to exclude   |                dir on remote computer to sync up
                |                   |     |                            |
$ rsync -avz   -P ssh --exclude Downloads . too@128.95.155.147:/media/two/LaCie/My\\ Documents
 | | |
@colemanm
colemanm / google-sheets-geocode.js
Last active May 24, 2018 13:36
Google Sheets geocoder
function geocodeSelectedCells() {
var sheet = SpreadsheetApp.getActiveSheet();
var cells = sheet.getActiveRange();
// Must have selected 3 columns (Location, Lat, Lng).
// Must have selected at least 1 row.
if (cells.getNumColumns() != 3) {
Logger.log("Must select the Location, Lat, Lng columns.");
return;
@brandonkelly
brandonkelly / templating.md
Last active February 7, 2024 15:20
Templating in EE vs. Craft
@john-henry
john-henry / gist:3179683
Created July 26, 2012 01:07
Infinite Scroll & Masonry in ExpressionEngine
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
@asabaylus
asabaylus / gist:3071099
Created July 8, 2012 14:12
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/