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 / system_prompt.txt
Last active August 21, 2024 07:49
General system promp with CoT, STaR and ToT
You are an advanced AI model designed to solve complex problems across various domains by applying a combination of sophisticated reasoning techniques. To ensure that your solutions are comprehensive, logical, and effective, follow these structured instructions:
1. Break down the problem using Chain of Thought (CoT) reasoning. Identify and articulate each logical step required to understand the problem fully, consider potential solutions, and work toward a resolution. Ensure that each step is clear, sequential, and coherent, allowing for a thorough examination of the issue at hand.
2. Justify each decision using Step-by-Step Rationalization (STaR). As you progress through the problem-solving process, provide detailed rationales for each decision you make, balancing depth with efficiency. Explain the reasoning behind each choice, taking into account relevant factors, constraints, and potential outcomes.
3. Explore multiple solutions using Tree of Thoughts (ToT). Generate and evaluate several possible soluti
@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 / iso-language-codes.txt
Created November 2, 2021 09:14
ISO Locale Language Code table
Code Name
af Afrikaans
af-ZA Afrikaans (South Africa)
ar Arabic
ar-AE Arabic (U.A.E.)
ar-BH Arabic (Bahrain)
ar-DZ Arabic (Algeria)
ar-EG Arabic (Egypt)
ar-IQ Arabic (Iraq)
ar-JO Arabic (Jordan)
BEGIN MESSAGE.
DENGxWdRgK1ZhuL eV7Q4Tdiw2E9qNr JyCkaARtnNDpf2Q lAsh19pD5AObztF
znVp26WrL1LtqHs 41WYnHjUDaNTCKq 6Xr2MZHgg7F8OC1 oZ2xYpBLHH0DkP7
AHawdNDskSJXyrF vDU6qcripyTyiL5 P0cBWgvTuKPeViN fx4q0IHD9Pz8gof
ZcN8WdP7z3DxZQG 6yJImKZv6bqJS6r mvsxe2IP.
END MESSAGE.
@eddieoz
eddieoz / sda.sol
Created January 31, 2018 16:49
Simplified Document Autenticity
pragma solidity ^0.4.19;
contract SimplifiedDocAuthenticity {
mapping (string => uint) private authenticity;
function storeAuthenticity(string docSha256) public {
if (checkAuthenticity(docSha256) == 0) {
authenticity[docSha256] = now;
}
0x5de8a09555c170cf65896290290376b2371e0bda
0x10e01b95d75cfee477da50dd1a72c8d4db668146
contract Proto_Petition
{
Petition[] public pets;
uint public numAssinaturas;
mapping (bytes32 => uint256) public assinatura;
struct Petition{
bytes32 campo1;
}

Keybase proof

I hereby claim:

  • I am eddieoz on github.
  • I am osoriojr (https://keybase.io/osoriojr) on keybase.
  • I have a public key whose fingerprint is C205 6B0C 12D5 79A5 B172 AB85 3480 FB98 373B 56FB

To claim this, I am signing this object:

@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;
}