To change your server’s timezone per session you can use the following query:
set timezone TO 'GMT';
If you need to permanently update the timezone, find your postgresql.conf file in psql:
find ./ -name "*.php" -o -name "*.htm" -o -name "*.html" -o -name "*.css" -o -name "*.js" -o -name "*.txt" -type f | | |
while read file | |
do | |
if ! file -bi $file | grep -q 'utf-8' | |
then | |
echo " $file" | |
mv "$file" "$file".icv | |
iconv -f WINDOWS-1251 -t UTF-8 "$file".icv > "$file" | |
rm -f "$file".icv | |
fi |
tryES6.com/9WS4pMfJT | |
function runSerial(tasks, fn) { | |
return tasks.reduce((promise, task) => promise.then(previous => fn(task, previous)), Promise.resolve(null)) | |
} | |
function runParallel(tasks, fn) { | |
return Promise.all(tasks.map(task => fn(task))) | |
} |
function createMachine(stateMachineDefinition) { | |
const machine = { | |
value: stateMachineDefinition.initialState, | |
transition(currentState, event) { | |
const currentStateDefinition = stateMachineDefinition[currentState] | |
const destinationTransition = currentStateDefinition.transitions[event] | |
if (!destinationTransition) { | |
return | |
} | |
const destinationState = destinationTransition.target |
/** | |
@class BroadcastChannel | |
A simple BroadcastChannel polyfill that works with all major browsers. | |
Please refer to the official MDN documentation of the Broadcast Channel API. | |
@see <a href="https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API">Broadcast Channel API on MDN</a> | |
@author Alessandro Piana | |
@version 0.0.6 | |
*/ | |
/* |
// ==UserScript== | |
// @name Save page in reader mode | |
// @namespace https://github.com/gildas-lormeau/SingleFile/ | |
// @version 1.0 | |
// @description Save page in reader mode with SingleFile | |
// @author Gildas Lormeau | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
/* | |
The MIT License (MIT) | |
Copyright (c) 2016 Gildas Lormeau (Capsule Code) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT O |
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
} |
NB! command-R
is replaced with holding the power button on M1 macs.
a. Boot into recovery using command-R
during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
b. Initial installation will run for approximately 1 hour, and reboot once