This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.
It will run in the following way:
brew update
every day at 12:10brew upgrade
every day at 12:20
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |
if (Modernizr.getusermedia) { | |
var getUM = Modernizr.prefixed('getUserMedia', navigator); | |
getUM({video: true}, function( //... | |
//... | |
} |
// angular | |
import {Component, ViewEncapsulation} from '@angular/core'; | |
declare var Reflect: any; | |
const _reflect: any = Reflect; | |
// Usage: | |
// @BaseComponent({ etc... }) | |
export function BaseComponent(metadata: any = {}) { |
#!/bin/bash | |
sudo /etc/init.d/transmission-daemon stop | |
sudo chown -R pi:pi /etc/transmission-daemon | |
sudo rm -rf ~pi/.config/transmission-daemon | |
sudo mv /etc/transmission-daemon ~pi/.config/ | |
sudo ln -s ~pi/.config/transmission-daemon /etc/transmission-daemon | |
sudo chown pi:pi /etc/default/transmission-daemon |