Skip to content

Instantly share code, notes, and snippets.

@nvrossett
nvrossett / gist:4f0b1c5d9c694c01bf24bc7b6b3af8aa
Created September 21, 2019 01:51 — forked from kapkaev/gist:4619127
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. Resque
$ redis-cli
> config set stop-writes-on-bgsave-error no
@nvrossett
nvrossett / simplefx.js
Created April 10, 2019 03:28
SimpleFX - Favorites (Swing)
var SimpleFX = {
minNegotiation : 0,
marginRequired : 0,
totalFavorites : 0,
addFavoritos : false,
useTableCache : false,
elements : {
groupsInvestiments : $('.marketwatch__category-section'),
allInvestiments : $('.marketwatch-item__col-symbol'),
@nvrossett
nvrossett / undone-unit-task.js
Created April 7, 2019 07:43
Unidades do Facebook: Desfazer concluído
document.querySelectorAll('form[ajaxify]').forEach(function( el ){
var path = el.getAttribute('ajaxify')
el.setAttribute('ajaxify', path.replace( 'is_completed=1','is_completed=0' ) )
el.style.display = 'block';
el.querySelector('span').innerText = 'Desfazer';
})
@nvrossett
nvrossett / playlist_time.js
Last active December 24, 2020 21:02 — forked from fredericogg/playlist_time.js
Calcula o tempo total de uma playlist no Youtube. É só colar no console na página da playlist. Fiz esse script porque não achei o tempo total da playlist 😅.
(function() {
var timeSeconds = 0;
var timestampDivList = document.querySelectorAll("#length");
for(var i = 0; i < timestampDivList.length; i++) {
var timestampDiv = timestampDivList[i];
var timeStr = timestampDiv.innerHTML;