Skip to content

Instantly share code, notes, and snippets.

@markVnl
markVnl / Mailer.services.404.js
Created June 5, 2021 14:14
WebServerResources/js/Mailer.services.js
!(function () {
"use strict";
function c(e) {
"function" != typeof e.then &&
(angular.extend(this, e),
_.forEach(this.identities, function (e) {
e.fullName ? (e.full = e.fullName + " <" + e.email + ">") : (e.full = "<" + e.email + ">");
}),
c.$log.debug("Account: " + JSON.stringify(e, void 0, 2)));
}
@markVnl
markVnl / gist:92e60f9f1da79dbd254ce0f7ed669d3e
Created December 26, 2020 14:07
create a poll on discourse
[poll type=regular results=always public=true chartType=bar]
* Yes, do it
* No, don't
[/poll]
To prepare your SD-Card and flash-uboot using the Generic image
As always: **Be sure you got the right device (/dev/.....) pointing to your sd-card**
Replace X with your appropriate value
export sdcard="/dev/sdX"
Write to SD-Card:
xzcat Nethserver-7.7.1908-RC1-Uboot-img.raw.xz | sudo dd of=${sdcard} status=progress bs=4M && sudo sync
Mount your sd-card, mountpoint (/mnt) is arbitrary:
sudo mount ${sdcard}2 /mnt