References:
From man page: man apt_preferences
#!/bin/bash | |
### ABOUT | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### Simply edit the rsync line in the script to whatever parameters you need. | |
# Trap interrupts and exit instead of continuing the loop | |
trap "echo Exited!; exit;" SIGINT SIGTERM | |
MAX_RETRIES=50 |
/*jslint onevar: true, undef: true, newcap: true, nomen: true, regexp: true, plusplus: true, bitwise: true, node: true, indent: 4, white: false */ | |
/// Usage: node static_server.js PORT | |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
qs = require("querystring"), | |
port = process.argv[2] || 80, /// Defaults to port 80 |
(function() { | |
try { | |
var a = new Uint8Array(1); | |
return; //no need | |
} catch(e) { } | |
function subarray(start, end) { | |
return this.slice(start, end); | |
} |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
// NEW VERSION AVAILABLE: Check out my GitHub repository at | |
// https://github.com/letorbi/smoothie for a new and improved version. | |
// Require() 0.3.4 unstable | |
// | |
// Copyright 2012,2013 Torben Haase <http://pixelsvsbytes.com/> | |
// | |
// Require() is free software: you can redistribute it and/or modify it under | |
// the terms of the GNU Lesser General Public License as published by the Free | |
// Software Foundation, either version 3 of the License, or (at your option) any |
# Add subtitle track | |
MP4Box -add minecraft_uncut.srt:lang=eng:layout=0x60x0x-1:group=2:hdlr="sbtl:tx3g" Minecraft2_mobile.mp4 | |
# Add audio track | |
# 1. doesnt work in quicktime/itunes | |
MP4Box -add commentary_audio.aac Minecraft2_mobile.mp4 | |
# 2. supposed to work in quicktime/itunes but doesn't seem to; :name at least is definitely not supported | |
MP4Box -add commentary_audio.aac:disable:group1:lang=en:name="Director's Commentary" Minecraft2_mobile.mp4 |
var arr = { | |
max: function(array) { | |
return Math.max.apply(null, array); | |
}, | |
min: function(array) { | |
return Math.min.apply(null, array); | |
}, | |
range: function(array) { |
References:
From man page: man apt_preferences
These instructions are based on this article: https://docs.gitea.io/en-us/install-from-source/.
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
Use Noobs to install Raspian.
Open menu Preferences > Raspberry Pi Settings
We have Rails application which is running tests on circleCI 2.0, we have simplecov configured to track the coverage of our test suite. Now the problem is with parallelism enabled, we have partial coverage reports in all different containers according to the tests those containers ran.
We obviously want to have consolidated simplecov coverage report which actually shows us overall coverage report.