This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "royalgarter.id" is my Blockstack ID. https://explorer.blockstack.org/name/royalgarter.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", function(event) { | |
setTimeout( ()=> { | |
location.reload(true); | |
}, 30e3); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CoinHive = require('coin-hive'); | |
(async () => { | |
// Options are not mandatory, defaults values: | |
const options = { | |
interval: 1000, // interval for "update" | |
port: 3002, // puppeteer port | |
host: 'localhost', // puppeteer host, | |
threads: -1 // number of threads to start with, defaults to navigator.hardwareConcurrency see https://coin-hive.com/documentation/miner#constructor-options | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fnOnload = () => { | |
if (!~window.location.href.indexOf('Transfer.aspx')) return; | |
let citad = localStorage.getItem('ATADI-CK-CITAD'); | |
if (!citad) { | |
const $input = $('<input type="button" value="Nhập CITAD" id="btcitad"/>'); | |
if ($('#btcitad').length <= 0) $input.appendTo($('[class="tbllisting hasborder"]')); | |
$('#btcitad').one('click', x => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# size of swapfile in megabytes | |
swapsize=512 | |
if [ -z "$2" ]; then | |
echo "Argument[2]=null" | |
else | |
echo "Argument[2]=$2" | |
swapsize=$2 | |
fi | |
echo "swapsize = $swapsize" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fnMain = function () { | |
// console.log('fnMain', window.location.href, document.querySelectorAll('.amn').length); | |
if (!(/mail.google.com.*mail.*inbox\/\S{16}/).test(window.location.href) || !document.querySelector('.amn')) | |
return setTimeout(fnMain, 500); | |
console.log('Reply box appeared'); | |
document.querySelector('.amn span[class="ams bkI"]').onclick = | |
document.querySelector('.amn span[class="ams bkH"]').onclick = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var exports = module.exports; | |
exports.setup = function(callback) { | |
var write = process.stdout.write; | |
process.stdout.write = (function (stub) { | |
return function (string, encoding, fd) { | |
stub.apply(process.stdout, arguments); | |
callback(string, encoding, fd); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const sync = function(fnGenerator) { | |
var args = Array.prototype.slice.call(arguments, 1); | |
/**/ console.log('sync args', args.length, args) | |
const callAsync = (funcAndArgs, callback) => { | |
const argsOnly = Array.prototype.slice.call(funcAndArgs, 1); | |
argsOnly.push(callback); | |
/**/ console.log('callAsync', argsOnly) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doSetup = function () { | |
if (document.querySelector('#q')) | |
document.querySelector('#q').value = '[ATADI] initializing...'; | |
if (document.readyState != 'complete' || !document.querySelectorAll('._24tx').length) | |
return setTimeout(doSetup, 1e4); | |
document.querySelector('._24tx').addEventListener('DOMSubtreeModified', function() { | |
// console.log('DOMSubtreeModified'); | |
var inboxes = document.querySelectorAll('._24tx li'); |
NewerOlder