Skip to content

Instantly share code, notes, and snippets.

Gaspadlo

Block or report user

Report or block Gaspadlo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Gaspadlo
Gaspadlo / stuff_to_del.bat
Last active May 4, 2019
Fastest possible way to delete large number of files/folders for MS Win (thousands to millions of folders)
View stuff_to_del.bat
@echo off
cd /d %~dp0
set /p Input=Enter Folder name to delete:
:ConfPromt
set /p Confirm=Are you sure you want to delete "%CD%\%Input%"?(y/n):
IF /I "%Confirm%" == "n" (
Echo Canceling.
pause
EXIT /b
)
@Gaspadlo
Gaspadlo / DocumentScaling.js
Last active Apr 12, 2017
Vanilla Javascript Bookmarlet for document scaling. (Zoom in/Zoom out)
View DocumentScaling.js
javascript:var HtmlES = document.documentElement.style;
setTimeout(function () {
HtmlES.transform = "scale(" + (prompt("Enter zoom level in %", "100") / 100) + ")";
HtmlES.transformOrigin = "top";
}, 10);
@Gaspadlo
Gaspadlo / PasteImgToBase64.js
Last active Apr 12, 2017
javascript Bookmarklet
View PasteImgToBase64.js
javascript:document.body.innerHTML += "<textarea style='" +
"position:fixed;" +
"top: 0;" +
"left:0;" +
"width:80%;" +
"margin:auto;" +
"border:2px solid;" +
"z-index:999999;" +
"resize:vertical;" +
"height:25%;' id='ToBase64' " +
@Gaspadlo
Gaspadlo / getIMG.js
Last active Apr 12, 2017
JS bookmarklet
View getIMG.js
javascript:(function () {
if (typeof ZHJ10W1lcg === 'undefined') {/*Append jQuery into Documents Head*/
var jQuery = document.createElement('script');
jQuery.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js');
var head = document.getElementsByTagName('head');
head[0].appendChild(jQuery);
ZHJ10W1lcg = true;
}
setTimeout(function () {
$(document).ready(function () {
You can’t perform that action at this time.