Skip to content

Instantly share code, notes, and snippets.

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

Leo Smith p4p1

🐧
🍖 🍋 🍑 🍆 🍤
View GitHub Profile
@p4p1
p4p1 / ytm_extractor.py
Created April 7, 2020 02:17
🎹🎹🎹🎹
#!/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 / svnbyleo.sh
Last active April 10, 2020 11:23
SVN script to simplify it's usage
#!/bin/bash
# svnbyleo.sh
#
# Description:
# Simple script to use svn as if it was git
echo -n "Check SVn -> "
if hash svn;then
echo -e "\e[1;34m:)\e[m"
else
@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 */
@p4p1
p4p1 / blih
Last active April 14, 2020 14:55
Bas c'est blih enfaite, changer la variable passwd
#!/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 / 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 / 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 / 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 / tools.sh
Last active May 21, 2020 00:35
🍨🍨🍨🍨
#!/bin/bash
# tools.sh
# Created on: mer. 06 mai 2020 09:54:03 CEST
#
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Usage:
/* 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 / wallpaper-gen
Last active June 21, 2020 00:25
🍪🍪🍪🍪
#!/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: