Skip to content

Instantly share code, notes, and snippets.

@on4r
on4r / mdn-remove-deprecated-methods.js
Last active January 30, 2022 15:17
Greasemonkey script to remove deprecated methods from MDN
// ==UserScript==
// @name Remove Deprecated Methods
// @version 1
// @grant none
// @match https://developer.mozilla.org/*
// ==/UserScript==
document.querySelectorAll('.icon-deprecated').forEach(node => node.parentNode.remove())
@on4r
on4r / archiver.php
Created February 14, 2019 10:32
FTP only? No SSH? » Archive you webspace with this script
<?php
// https://www.emvee-solutions.com/blog/create-tar-files-archive-files-server-using-php-script/
try {
//make sure the script has enough time to run (300 seconds = 5 minutes)
ini_set('max_execution_time', '300');
ini_set('set_time_limit', '0');
$target = isset($_GET["targetname"]) ? $_GET["targetname"] : 'archive.tar'; //default to archive.tar
$dir = isset($_GET["dir"]) ? $_GET["dir"] : './.'; //defaults to all in current dir
//setup phar