To Mount
sudo mkdir /mnt/usbdrive
sudo mount /dev/sda1/ /mnt/usbdrive
ls /mnt/usbdrive
var g = G$('John', 'Snow'); | |
// console.log(g); | |
// g.greet().setLang('es').greet(true).log(); | |
$('#login').click(function () { | |
var lang = $('#lang').val(); | |
g.setLang(lang).HTMLGreeting('#greeting', true).log(); | |
}); |
function curry(func) { | |
var slice = Array.prototype.slice, | |
args = slice.call(arguments, 1); | |
return function () { | |
return func.apply( | |
null, | |
args.concat(slice.call(arguments, 0)) | |
); | |
}; | |
} |
https://github.com/rg3/youtube-dl#format-selection-examples
youtube-dl --yes-playlist -f 'best[ext=mp4]' https://www.youtube.com/playlist\?list\=XXX
this_is_an_example
ThisIsAnExample
orders
, thid_parties
#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/ |
# update | |
sudo apt-get update | |
# install apache | |
sudo apt-get install -y apache2 | |
# install mysql and php-mysql | |
sudo apt-get install mysql-server php5-mysql | |
# install mysql and init |
// Copyright (c) 2012 Sutoiku, Inc. (MIT License) | |
// Some algorithms have been ported from Apache OpenOffice: | |
/************************************************************** | |
* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file |
Source -- http://craftcms.stackexchange.com/a/6996
Untested, but you should be able to do this by using the [merge filter in Twig][1] to join the two results together.
Get the top level 'landing page' for this section:
{% set landingPage = entry.getAncestors().level(1) %}