Skip to content

Instantly share code, notes, and snippets.

View piotr-dobrogost's full-sized avatar

Piotr Dobrogost piotr-dobrogost

View GitHub Profile
anonymous
anonymous / i18n.js
Created June 23, 2016 08:07
var i18nModule = angular.module('i18nModule', []);
i18nModule.factory('i18n', function() {
var tokenRE = /\$\{(?:(?:(\d+)|([a-z_][\w\-]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi;
var evaluate = function(text, values) {
var fn = function(match, index, name, formatFn, args) {
if (name === null || name === '') {
name = index;
}
if (values[name]) {
@hkoba
hkoba / sched-reboot.service
Last active January 21, 2025 08:12
systemd service and timer for scheduled reboot.
[Unit]
Description=Scheduled Reboot
[Service]
Type=simple
ExecStart=/usr/bin/systemctl --force reboot

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.