Skip to content

Instantly share code, notes, and snippets.

Avatar

Albirew

View GitHub Profile
@Albirew
Albirew / InviReg.user.js
Last active Aug 20, 2020 — forked from Tazeki/Reghook.js
YouTube / Invidious RegEx based URL conversion.
View InviReg.user.js
// ==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
@Albirew
Albirew / ipmi.php
Last active Jun 10, 2019
affichage IPMI vers une page web
View ipmi.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stats IPMI</title>
<meta name="description" content="page IPMI">
<style type="text/css">
tr:nth-child(even) {background-color: #f2f2f2;}
table{
@Albirew
Albirew / dcs-5020l-camera-control.php
Created Apr 4, 2019
Simple D-Link DCS-5020L camera web control
View dcs-5020l-camera-control.php
<?php
$camIP="172.16.3.14";
$camUser="admin";
$camPass="";
?>
<!DOCTYPE html>
<html>
<head>
<title>D-Link DCS-5020L cam control for <?php echo($camIP); ?></title>
<meta charset="UTF-8">
@Albirew
Albirew / windows-1252.sh
Created Feb 18, 2019
rename files with shitty windows-1252 characters into normal format
View windows-1252.sh
#!/bin/bash
find -name *é* -exec rename 's/é/é/g' '{}' \;
find -name *è* -exec rename 's/è/è/g' '{}' \;
find -name *ç* -exec rename 's/ç/ç/g' '{}' \;
find -name *à* -exec rename 's/à/à/g' '{}' \;
find -name *ù* -exec rename 's/ù/ù/g' '{}' \;
find -name *ø* -exec rename 's/ø/ø/g' '{}' \;
find -name *â* -exec rename 's/â/â/g' '{}' \;
find -name *ë* -exec rename 's/ë/ë/g' '{}' \;
find -name *ÿ* -exec rename 's/ÿ/ÿ/g' '{}' \;
View hash2magnet.php
<?php
if(isset($_POST['novar']))
{
$hash=$_POST['hache'];
$hash = trim($hash);
$hash = stripslashes($hash);
$hash = htmlspecialchars($hash);
}
if(isset($_POST['avar']))
{
@Albirew
Albirew / capture-error-winload.bat
Created May 24, 2018
2012r2 bypass error 0xc000000f (failed to start winload.*)
View capture-error-winload.bat
@echo off
:: script to use when capture image capture shows error 0xc000000f (failed to start winload.*) under 2012r2
:: https://gist.github.com/Albirew/ff86c4871b252acf6d7b5c298283859c
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Bypass error 0xc000000f on capture.wim (failed to start winload.*) º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍŒ
echo.
if [%1]==[] goto noarg
:: UAC privilege escalation
:checkPrivileges
@Albirew
Albirew / anti-disabled.user.js
Last active Aug 1, 2019
Remove fuckin password and button limitation on websites
View anti-disabled.user.js
// ==UserScript==
// @name anti-disabled
// @description Remove fuckin password and button limitation on websites
// @version 1.2
// @author sysadmin_fr | https://discord.gg/ejJ4dsg
// @namespace https://gist.github.com/Albirew/
// @grant none
// @include http://*
// @include https://*
// @run-at document-start
@Albirew
Albirew / pocketmine.sh
Last active Mar 4, 2018
PocketMine (Minecraft Pocket Edition) server init start script using SCREEN
View pocketmine.sh
#!/bin/bash
# /etc/init.d/pocketmine
### BEGIN INIT INFO
# Provides: pocketmine
# Required-Start: $local_fs $network $remote_fs screen-cleanup
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PocketMine server
@Albirew
Albirew / winkey-extract.bat
Created Feb 23, 2018
Simple batch file to extract windows product key in a text file
View winkey-extract.bat
@echo off
setlocal
set v=Unimplemented version of Windows...
for /f "tokens=4-7 delims=[.] " %%i in ('ver') do (if %%i==Version (set v=%%j.%%k) else (set v=%%i.%%j))
if "%v%" == "10.0" set v=Windows10
if "%v%" == "6.3" set v=Windows8.1
if "%v%" == "6.2" set v=Windows8
if "%v%" == "6.1" set v=Windows7
echo %v%...
echo.
View wannaPatch.bat
@echo off
:: https://gist.github.com/Albirew/613cbf63595647ff26b269d5271871a0
:: added rev.18 of Matt's privilege escalation script: http://stackoverflow.com/posts/12264592/revisions
:: UAC privilege escalation
: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)
You can’t perform that action at this time.