Skip to content

Instantly share code, notes, and snippets.

View LevitatingBusinessMan's full-sized avatar
🕴️
Ricing my polybar...

Rein Fernhout LevitatingBusinessMan

🕴️
Ricing my polybar...
View GitHub Profile
@LevitatingBusinessMan
LevitatingBusinessMan / loempiashop_sqlmap.txt
Created October 8, 2024 14:15
sqlmap op de loempiashop
$ sqlmap http://localhost/item.php?id=1 --batch --dump
___
__H__
___ ___["]_____ ___ ___ {1.8.8#stable}
|_ -| . [,] | .'| . |
|___|_ [']_|_|_|__,| _|
|_|V... |_| https://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
@LevitatingBusinessMan
LevitatingBusinessMan / ngircd
Created August 22, 2024 17:54
ngircd PAM config for FreeBSD
auth requisite pam_group.so group=irc luser no_warn
auth required pam_unix.so no_warn
[Match]
Name=eth0
[Network]
Address=10.20.30.40/24
Address=10.20.30.135/24
Gateway=10.20.30.1
DNS=10.20.30.1
From=10.20.30.40
#!/usr/bin/env ruby
require "dbus"
system_bus = DBus::SystemBus.instance
session_bus = DBus::SessionBus.instance
$networkd_service = system_bus.service("org.freedesktop.network1")
$networkd_object = $networkd_service.object("/org/freedesktop/network1")
$networkd_properties = $networkd_object["org.freedesktop.DBus.Properties"]
$networkd_manager = $networkd_object["org.freedesktop.network1.Manager"]
require 'nokogiri'
require 'open-uri'
require 'rss'
URL = URI("https://community.elitedangerous.com/")
doc = Nokogiri::HTML(URL.open)
articles = doc.css("div.article").map {|article| [
article.css("h3.galnetNewsArticleTitle a").first.content.strip, #title
article.css("h3.galnetNewsArticleTitle a").first.attr("href").strip, #link
#include <asm-generic/socket.h>
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <netinet/tcp.h>
#define NONAGLE 1
@LevitatingBusinessMan
LevitatingBusinessMan / authenticate.rb
Created May 7, 2024 23:58
Proving that spotify isn't random
RSpotify.authenticate CLIENT_ID, CLIENT_SECRET
REDIRECT_URI = "http://localhost:3000"
SCOPE = [
"user-read-playback-state",
"streaming"
]
begin
@LevitatingBusinessMan
LevitatingBusinessMan / wrap.fish
Created April 9, 2024 01:48
like rlwrap but in 10 lines of fish
#!/usr/bin/env fish
while true
read -P "" input
if test $status -ne 0
break
end
echo $input
end | $argv
@LevitatingBusinessMan
LevitatingBusinessMan / recipient_email.js
Last active March 23, 2024 01:39
Userscript to ensure that a recipients email address is shown when composing in roundcube
// ==UserScript==
// @name RecipientEmailFixerRoundcube
// @version 1
// @grant none
// ==/UserScript==
function on_mutation() {
document.querySelectorAll("body.action-compose li.recipient").forEach(recipient => {
if (!recipient.fixed) {
const [name, email] = recipient.children
#!/usr/bin/env fish
set packages (paclist core | cut -f1 -d' ')
set --erase IFS
set parallel 10
set mirror 'http:\/\/ftp.snt.utwente.nl\/pub\/os\/linux\/archlinux\/$repo\/os\/$arch'
# setup the config
set config (cat pacman.conf | sed \
-e "s/Include = \/etc\/pacman.d\/mirrorlist/Server = $mirror/" \
-e "s/\#ParallelDownloads = 5/ParallelDownloads = $parallel/"