[ Launch: Tributary inlet ] 3af2c82dbf2817667e99 by davisford
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm list packages -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir C:\Program Files (x86)\J River\Media Center 18\Data\Custom Resources | |
cp "C:\Program Files (x86)\J River\Media Center 18\Data\Default Resources\FileAssociations.xml" "C:\Program Files (x86)\J River\Media Center 18\Data\Custom Resources\" | |
edit ..\CustomResources\FileAssociations.xml | |
e.g. in <Video> tag append: `Sony PMB Metadata (moff);Sony PMB Metadata (modd);</Video>` | |
Then in <MimeAssociations><Video> append: | |
`<Item Name="moff">text/plain</Item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#fixed-container').css('width', '100%') | |
At http://gradle.org and specifically in the documentation for Gradle set the width of this div container to a fixed pixel of 1600 which is ridiculous and requires horizontal scrolling. jQuery is already on the page, just open up the console and paste the snippet in to fix the width so you can read the docs. | |
I can never remember what the div id is, so that's the purpose of this gist, to quickly copy/paste |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = | |
array( | |
"AF" => "Afghanistan", | |
"AL" => "Albania", | |
"DZ" => "Algeria", | |
"AS" => "American Samoa", | |
"AD" => "Andorra", | |
"AO" => "Angola", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
$script = <<SCRIPT | |
echo "-------------------- updating package lists" | |
apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install markdown htmldoc | |
$ markdown <file.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > <file.pdf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global _, d3 */ | |
'use strict'; | |
angular.module('app.warehouse') | |
/** | |
* directive to make the charts responsive (at least for the widths); | |
* chart heights are typically fixed. Use this directive like so: | |
* <div id='mychart'> |