SSH into Root
$ ssh [email protected]
Change Root Password
/* | |
* Utility to only call Redux updates in RequestAnimationFrame's | |
* Also uses React-dom's batchedUpdates | |
*/ | |
import raf from 'raf'; | |
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom'; | |
let rafID; | |
let notifyFunc; | |
function animFrame() { |
module BulkUpdatable | |
def bulk_update(objects, attribute) | |
return unless objects.any? | |
query = build_query_for(objects, attribute) | |
connection.execute(query) | |
end | |
private |
SSH into Root
$ ssh [email protected]
Change Root Password
// Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem | |
// throw QuotaExceededError. We're going to detect this and just silently drop any calls to setItem | |
// to avoid the entire page breaking, without having to do a check at each usage of Storage. | |
if (typeof localStorage === 'object') { | |
try { | |
localStorage.setItem('localStorage', 1); | |
localStorage.removeItem('localStorage'); | |
} catch (e) { | |
Storage.prototype._setItem = Storage.prototype.setItem; | |
Storage.prototype.setItem = function() {}; |