Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
🍖 🍋 🍑 🍆 🍤

Leo Smith p4p1

🐧
🍖 🍋 🍑 🍆 🍤
View GitHub Profile
@p4p1
p4p1 / tools.sh
Last active May 21, 2020
🍨🍨🍨🍨
View tools.sh
#!/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
🍅🍅🍅🍅
View convert_my_shell.py
#!/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 Apr 30, 2020
🍤🍤🍤🍤
View phone.sh
#!/bin/bash
# phone.sh
# Created on: ven. 24 avril 2020 06:21:51 CEST
#
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) __ (_)(__) _(__) ____ __ ____
# ( \/ )( _ )( _ \(_ _)( ) ( ___)
# ) ( )(_)( ) _ < _)(_ )(__ )__)
@p4p1
p4p1 / xvwm.sh
Last active May 12, 2020
🍖🍖🍖🍖
View xvwm.sh
#!/bin/bash
# xvwm.sh
# Created on: 18 April 2020
#
# tutorial: https://p4p1.github.io/posts/xvwm.html
# __ ____ ____ ___ __ ___
# \ \/ /\ \ / /\ \ /\ / / \'_ ` _ \
# > < \ V / \ V V /| | | | | |
# /_/\_\ \_/ \_/\_/ |_| |_| |_|
#
View dwm-fibonaccigaps-6.2.diff
/* 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 */
@p4p1
p4p1 / backup.sh
Last active Jul 12, 2021
🍉🍉🍉🍉
View backup.sh
#!/bin/bash
# backup.sh
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Description:
# Backup script made to save my config to a tar ball for
# later unpacking
View ytm_extractor.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Made by papi
# ytm_extractor.py
# Description:
# Downloads album, covers from youtube music gallery
# You need to extract all of the links using the network tab in inspector element
# and then load all of your albums by scrolling down then extract the .har file
# and run it through this script to download every album cover to a
# youtube_music_artwork folder.
@p4p1
p4p1 / wallpaper-gen
Last active Jun 21, 2020
🍪🍪🍪🍪
View wallpaper-gen
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Made by p4p1
# wallpaper-gen
# can be found on a website: https://p4p1.github.io/wallpaper-gen.html
#
# Description:
# Script to generate a wallpaper from a folder of different images
# And displays them in a grid layout as followed:
@p4p1
p4p1 / blih
Last active Apr 14, 2020
Bas c'est blih enfaite, changer la variable passwd
View blih
#!/usr/bin/env python3
#-
# Copyright 2013-2014 Emmanuel Vadot <elbarto@bocal.org>
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@p4p1
p4p1 / ubuntu_install.sh
Last active Aug 17, 2020
🍋🍋🍋🍋
View ubuntu_install.sh
#/bin/bash
# ubuntu_install.sh
# Created on: Fri, 27 March 2020
# https://p4p1.github.io/#config
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Description: