Skip to content

Instantly share code, notes, and snippets.

View eddieoz's full-sized avatar
🏴‍☠️
Hacking

Edilson Osorio Jr eddieoz

🏴‍☠️
Hacking
View GitHub Profile
@eddieoz
eddieoz / CountYoutubeVideosTime.js
Created December 31, 2023 11:18 — forked from RafalJDev/CountYoutubeVideosTime.js
Count all videos time duration on youtube channel
//You need to run this in javascript console inside chrome
//Assumptions:
//1. Will count only "expanded" videos on page, you may first need to run script to scroll to last video or do it manually
//2. Tested on chrome, ubuntu, 2019
//3. Time format: hh:mm:ss
var array = document.getElementsByClassName("style-scope ytd-thumbnail-overlay-time-status-renderer");
var arrLength = array.length;
@eddieoz
eddieoz / ProofOfExistence
Last active December 8, 2015 19:58 — forked from anonymous/Untitled
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity?gist=
contract proofOfExistence {
mapping (bytes32 => Document) public documents;
struct Document {
uint date;
address creator;
bytes32 hash;
address[] signers;
}
@eddieoz
eddieoz / DocSignEther
Last active November 24, 2015 22:04 — forked from anonymous/Assinatura1
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity?gist=
/*
Contract Manual:
Begin with document name (hash) and signers:
var _docHash = "abcd-1234" ;
var _signers = ["0xdcdb59990a6115b062a3a98f985a21170fa11588","0x7855d719c027691a0e79300209ff532547f68afa"];
Start contract sending 900000000000000000 weis per signer to the contract.address
eth.sendTransaction({from: eth.accounts[1], to: assinatura.address, value: 18000000000000000, gas:1000000})