git checkout -b otherrepo-master master
git pull https://github.com/otherrepo/my-repo-name.git master
Works with Dreamhost's hosting style: directories in ~
like /home/joe/blog.joe.com/
$('body').find('a').each(function() {
var href=$(this).attr('onclick');
if(href) {
href=href.replace("location.href='", '').replace(/'$/g, '');
$(this).attr('href',href);
}
Bookmarklet with https://mrcoles.com/bookmarklet/ : (include jQuery)
Shell in the kobo, from the root :
sqlite3 -header .kobo/KoboReader.sqlite "SELECT ContentID FROM content WHERE BookTitle is null and ReadStatus = 2 ORDER BY Title;" | grep epub | sed 's!file:///mnt/onboard/!!' | while read f; do rm -f "$f"; done
// ************************ | |
// * OZH QUAKELIVE CONFIG * | |
// ************************ | |
unbindall | |
unaliasall | |
// ********* | |
// * BINDS * | |
// ********* |
$ git checkout --orphan NEWBRANCH
$ git rm -rf .
--orphan
creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.
<?php | |
// http://terenceyim.wordpress.com/2009/01/09/adding-ping-function-to-pdo/ | |
class NPDO { | |
private $pdo; | |
private $params; | |
public function __construct() { | |
$this->params = func_get_args(); |