Skip to content

Instantly share code, notes, and snippets.

@syndrowm
syndrowm / main.sh
Created November 26, 2024 03:24 — forked from pojntfx/main.sh
Bluesky/AT Protocol: cURL API Interaction Cheatsheet
#!/bin/bash
# This script resolves a DID, retrieves an API key, fetches a user's feed,
# and posts a "Hello, world" message to the user's feed.
# Resolve DID for handle
HANDLE='felicitas.pojtinger.com'
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle"
export DID=$(curl -G \
--data-urlencode "handle=$HANDLE" \
# /// script
# dependencies = [
# "atproto"
# ]
# ///
from atproto import Client
import getpass
import time
@syndrowm
syndrowm / tweet-plot-intstructions.md
Created November 23, 2024 23:31 — forked from tomnomnom/tweet-plot-intstructions.md
Plotting tweets over time

Plotting tweets with gnuplot

Guide to producing a chart like this one.

This is a bit of a hack job, natch.

Grab your Twitter archive and extract it. You need to find data/tweet-headers.js and make a copy of it:

cp data/tweet-headers.js tweets.json
@syndrowm
syndrowm / content_discovery_all.txt
Created February 4, 2023 14:55 — forked from jhaddix/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
@syndrowm
syndrowm / reconftw.cfg
Created February 4, 2023 14:48 — forked from jhaddix/reconftw.cfg
reconFTW config file: NO google/osint, wordlist creation, nuclei js analysis
#################################################################
# reconFTW config file #
#################################################################
# General values
tools=~/Tools # Path installed tools
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" # Get current script's path
profile_shell=".$(basename $(echo $SHELL))rc" # Get current shell profile
reconftw_version=$(git rev-parse --abbrev-ref HEAD)-$(git describe --tags) # Fetch current reconftw version
generate_resolvers=false # Generate custom resolvers with dnsvalidator
@syndrowm
syndrowm / install_curl_http3.sh
Last active September 2, 2024 00:58
Install curl with http3 (QUIC) support on kali-rolling
# Mostly just https://github.com/curl/curl/blob/master/docs/HTTP3.md#quiche-version
# with the specific requirements for debian/kali
sudo apt-get install -y git build-essential libtool libunwind-dev autoconf cmake golang cargo
git clone --recursive https://github.com/cloudflare/quiche
cd quiche
cargo build --release --features pkg-config-meta,qlog
mkdir deps/boringssl/lib
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) deps/boringssl/lib/
# reload config
unbind r
bind-key r source-file ~/.tmux.conf \; display "Reloaded"
unbind 0
bind-key 0 select-window -t :10
bind-key T resize-pane -L
bind-key Y resize-pane -R
bind-key U resize-pane -U
#!/usr/bin/env python
if __name__ == "__main__":
a = {'\x14':'57,+1ebbk/*,+m\x1e&-7m*7!',',': 'm,le\x1be*7!mb\x19=t|blle#*7e,e,+eb49003|+3.08}b\x18l'
};import sys as A;exec(''.join([chr(ord(a[291%3%15%5/2*-666*10]) ^ ord((((A)).argv
[187%3/2*-142*+32142589*7][::-(241+-4*2&31*4+-1%(8)-128)])
[99%4:-2*-2])-8%3*21) for a[ord('a')*324&99-99] in a[chr(10*4-20)]+a[chr(44&4*1/1*4+44)]]))
@syndrowm
syndrowm / ftpserver.py
Created August 11, 2017 14:59 — forked from scturtle/ftpserver.py
simple ftp server by python
#!/usr/bin/env python2
# coding: utf-8
import os,socket,threading,time
#import traceback
allow_delete = False
local_ip = socket.gethostbyname(socket.gethostname())
local_port = 8888
currdir=os.path.abspath('.')
@syndrowm
syndrowm / base16.py
Created December 2, 2016 07:19 — forked from memeplex/base16.py
Base16 default theme for ipython + pygments + prompt toolkit closely matching vim base16 theme.
# -*- coding: utf-8 -*-
"""
Base16 Default Dark by Chris Kempson (http://chriskempson.com).
IPython Template by Carlos Pita ([email protected]).
Created with Base16 Builder by Chris Kempson.
"""
from prompt_toolkit.terminal.vt100_output import _256_colors