This file contains 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
""" | |
Originally developed by https://github.com/pietjepuk2 | |
Ported to Prysm by https://twitter.com/mohamedmansour | |
Support my gitcoin https://gitcoin.co/mohamedmansour | |
""" | |
import json | |
import math | |
import time | |
import urllib | |
import sys |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Aliased</title> | |
</head> | |
<body> | |
<example-app></example-app> | |
<script type="module" src="./dist/app.js"></script> | |
</body> | |
</html> |
This file contains 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
// We just need to check if the IFrame origin is from discus.com | |
if (location.hostname.indexOf('.disqus.com') != -1) { | |
// Extract the textarea (there must be exactly one) | |
var commentBox = document.querySelector('#comment'); | |
if (commentBox) { | |
// Inject some text! | |
commentBox.innerText = 'Google Chrome Injected!'; | |
} | |
} |
This file contains 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 GENESIS_TIME = "2020-12-01T12:00:23Z" | |
const MILLISECONDS_PER_SLOT = 12000 | |
function toUTCTimestamp(time) { | |
return Date.UTC( | |
time.getUTCFullYear(), | |
time.getUTCMonth(), | |
time.getUTCDate(), | |
time.getUTCHours(), | |
time.getUTCMinutes(), |
This file contains 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
<!doctype html> | |
<script> | |
chrome.browserAction.onClicked.addListener(function(tab) { | |
chrome.tabs.sendRequest(tab.id, {method: "getLocalStorage"}, function(response) { | |
var myObjectRetrieved = JSON.parse(response.data); | |
console.log(myObjectRetrieved); | |
}); | |
}); | |
// Automatically inject all pages with the content script when the extension |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
const API_KEY = 'SOME_KEY'; | |
/** | |
* Use HTML5 Canvas to get the image data | |
* @param {HTMLImageElement} img An Image Tag |
This file contains 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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
}, |
This file contains 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 IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Debug", |
This file contains 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
// | |
// 8% ETA: 53 minutes @ 1477.9bps | |
// 9% ETA: 27 minutes @ 2918.6bps | |
// 9% ETA: 34 minutes @ 2323.4bps | |
// 10% ETA: 34 minutes @ 2304.8bps | |
// 10% ETA: 37 minutes @ 2149.6bps | |
// 11% ETA: 36 minutes @ 2186bps | |
// 11% ETA: 35 minutes @ 2268bps | |
// 12% ETA: 30 minutes @ 2630.4bps | |
// |
This file contains 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 cheerio = require('cheerio') | |
const request = require('request') | |
const { URL } = require('url') | |
const async = require('async') | |
var links = {} | |
fetchAllLinks('https://crawl.codeferret.net/1.html', links, () => { | |
let listLinks = Object.keys(links).map(link => {return `"${link}"`}) | |
console.log(`[\n ${listLinks.join(',\n ')}\n ]`) | |
}) |
NewerOlder