Nick Desaulniers (Open Source @ Mozilla)
- [What does "Open Source" mean to me?][1]
What would a desktop environment look like if it were implemented entirely in a browser?
#Prefix is Ctrl-a | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
#Mouse works as expected |
var mccs = []; | |
try { | |
// navigator.mozMobileConnections is the new API. | |
// navigator.mozMobileConnection is the legacy API. | |
var conn; | |
if ((conn = navigator.mozMobileConnection)) { | |
console.log('navigator.mozMobileConnection available'); | |
// `MCC`: Mobile Country Code |
Some investigation and tests on how to upgrade Mint machine.
Tests performed on Mint Cinnamon 14/15/16, on physical machine 14->15 and VirtualBox VMs for 14->15->16 and 14->16.
As usual you could break your machine, so please do backups before and cross fingers.
ro.secure=0 | |
ro.allow.mock.location=1 | |
ro.debuggable=1 | |
persist.usb.serialno=full_inari | |
persist.sys.usb.config=adb |
LD SP,$fffe ; $0000 Setup Stack | |
XOR A ; $0003 Zero the memory from $8000-$9FFF (VRAM) | |
LD HL,$9fff ; $0004 | |
Addr_0007: | |
LD (HL-),A ; $0007 | |
BIT 7,H ; $0008 | |
JR NZ, Addr_0007 ; $000a | |
LD HL,$ff26 ; $000c Setup Audio |
if (navigator.mozApps && window.locationbar.visible === false) { | |
var externalLinks = document.querySelectorAll("a[href^='http']:not([href*='"+location.host+"'])"); | |
for (var i = 0; i < externalLinks.length; ++i) { | |
externalLinks[i].setAttribute("target", "_blank"); | |
} | |
} |
// Original https://github.com/mozilla/fireplace/blob/c50b5ca51643f13ae2e8b3a003d3aa0432358bf7/hearth/media/js/user.js#L41 | |
// Retrieve MCC and MNC from mozMobileConnection (requires "privileged" app type and "mobileconnection" permission) | |
// and translates them to carrier and region via mobilenetwork.js | |
try { | |
// When Fireplace is served as a privileged packaged app (and not | |
// served via Yulelog) our JS will have direct access to this API. | |
var conn = navigator.mozMobileConnection; | |
if (conn) { |
// Example code, use with caution! | |
// Events and .hidden property requires no prefix since 18 | |
// Set current language on launch | |
document.documentElement.lang = navigator.language; | |
function visibilityChange() { | |
// user went off page, ignore | |
if (document.hidden) return; |