Skip to content

Instantly share code, notes, and snippets.

View p4p1's full-sized avatar
🐧
🍖 🍋 🍑 🍆 🍤

Leo Smith p4p1

🐧
🍖 🍋 🍑 🍆 🍤
View GitHub Profile
@p4p1
p4p1 / xss_bomb.js
Created August 25, 2020 03:52
💣💣💣💣
/*
* _ _ ___ ___ ,--.!,
* ( \/ )/ __)/ __) __/ -*-
* ) ( \__ \\__ \ ,d08b. '|`
* (_/\_)(___/(___/ 0088MM
* `9MMP'
*
* File Name: xss_bomb.js
* Made by: p4p1 (Leo Smith)
* Web Page: https://leosmith.xyz
@p4p1
p4p1 / virtual_machine.sh
Created August 11, 2020 09:08
🍯🍯🍯🍯
#!/bin/bash
# virtual_machine.sh
# Created on: Tue 11 Aug 2020 10:28:44 AM CEST
#
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Description:
@p4p1
p4p1 / arch_install.sh
Last active November 4, 2021 16:40
🍊🍊🍊🍊
#/bin/bash
# arch_install.sh
# Created on: Tue, 16 Jun 2020
# https://p4p1.github.io/#config
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Description:
/* diff file for startup commands in dwm */
diff -up a/config.def.h b/config.def.h
--- a/config.def.h 2019-02-02 13:55:28.000000000 +0100
+++ b/config.def.h 2020-05-30 17:23:39.085114250 +0200
@@ -18,6 +18,16 @@ static const char *colors[][3] = {
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
+/* Run things on startup */
+static unsigned int child_pid = 0;
@p4p1
p4p1 / problem.sh
Last active July 6, 2020 17:15
📁📁📁📁
#!/bin/bash
# problem.sh
# Created on: Wed 27 May 2020 07:08:31 PM CEST
# Creator: Leo Smith (aka p4p1)
# Creator website: https://p4p1.github.io/
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
@p4p1
p4p1 / tools.sh
Last active May 21, 2020 00:35
🍨🍨🍨🍨
#!/bin/bash
# tools.sh
# Created on: mer. 06 mai 2020 09:54:03 CEST
#
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Usage:
@p4p1
p4p1 / convert_my_shell.py
Last active May 6, 2020 20:54
🍅🍅🍅🍅
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Made by papi
# Created on: dim. 03 mai 2020 10:43:43 CEST
# convert_my_video.py
# https://p4p1.github.io/writeups/convertmyvideo-tryhackme-writeup.html
# Description:
# Command injection shell from https://tryhackme.com/room/convertmyvideo
import sys, requests, json
@p4p1
p4p1 / phone.sh
Last active April 30, 2020 22:30
🍤🍤🍤🍤
#!/bin/bash
# phone.sh
# Created on: ven. 24 avril 2020 06:21:51 CEST
#
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) __ (_)(__) _(__) ____ __ ____
# ( \/ )( _ )( _ \(_ _)( ) ( ___)
# ) ( )(_)( ) _ < _)(_ )(__ )__)
@p4p1
p4p1 / xvwm.sh
Last active May 12, 2020 23:37
🍖🍖🍖🍖
#!/bin/bash
# xvwm.sh
# Created on: 18 April 2020
#
# tutorial: https://p4p1.github.io/posts/xvwm.html
# __ ____ ____ ___ __ ___
# \ \/ /\ \ / /\ \ /\ / / \'_ ` _ \
# > < \ V / \ V V /| | | | | |
# /_/\_\ \_/ \_/\_/ |_| |_| |_|
#
@p4p1
p4p1 / dwm-fibonaccigaps-6.2.diff
Last active April 14, 2020 12:56
🍒🍒🍒🍒
/* diff file for gaps in dwm fibonacci mode */
diff -up a/config.def.h b/config.def.h
--- a/config.def.h 2019-02-02 13:55:28.000000000 +0100
+++ b/config.def.h 2020-04-14 14:53:13.966170662 +0200
@@ -2,6 +2,7 @@
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
+static const unsigned int gappx = 5; /* gaps between windows */
static const unsigned int snap = 32; /* snap pixel */