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 / vmware-loempiashop.md
Last active November 5, 2024 17:46
de loempiashop gemaakt met vmware

Een loempiashop box maken met VMWare

Na het success van de lxc nu de vmware variant.

Downloaden van de image

Je kan de Debian cloud vm hier vinden: https://www.debian.org/distrib/

Download dan de "local QEMU virtual machine" in qcow2 format.

Of volg deze link (bookworm release):

@LevitatingBusinessMan
LevitatingBusinessMan / archnews
Created October 16, 2024 09:16
Print archnews rss feed
#!/usr/bin/env ruby
require 'rss'
require 'open-uri'
require 'rainbow/refinement'
using Rainbow
puts 'https://archlinux.org/'
url = 'https://archlinux.org/feeds/news/'
URI.open(url) do |rss|

Een loempiashop box maken met lxc

LXC installatie

lxc kan geintalleerd worden op praktish alle distributies met de lxc package.

Een container aanmaken

Als root maken we een debian bookworm container aan met de naam "loempiashop".

root@r-mint ~# lxc-create --name loempiashop --template download -- --dist debian --release bookworm --arch amd64
Downloading the image index
Downloading the rootfs
Downloading the metadata
@LevitatingBusinessMan
LevitatingBusinessMan / out.dot
Created October 13, 2024 20:27
this sentence has
digraph {
20
21
22
23
24
25
26
27
28
@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