Skip to content

Instantly share code, notes, and snippets.

View miclaus's full-sized avatar
🕸️

Iosif Miclaus miclaus

🕸️
View GitHub Profile
@miclaus
miclaus / remove-webkit-scrollbar.scss
Created March 14, 2017 14:33
Remove webkit scrollbar
::-webkit-scrollbar {
// remove scrollbar space
width: 0px;
// optional: just make scrollbar invisible
// background: transparent;
}
@miclaus
miclaus / __fullpath__.php
Last active May 9, 2017 13:33
Use for finding fullpath of underlying .htpasswd
<?php
$dir = dirname(__FILE__);
echo $dir;
?><br><?php
echo "PATH [{$_SERVER['PATH']}]";
?><br><?php
echo "HTTP_HOST [{$_SERVER['HTTP_HOST']}]";
?><br><?php
echo "SERVER_NAME [{$_SERVER['SERVER_NAME']}]";
exit;
@miclaus
miclaus / phpinfo.php
Last active April 23, 2020 11:49
phpinfo
<?php
phpinfo();
exit;
@miclaus
miclaus / __current_user__.php
Last active May 9, 2017 13:33
Echoes the current user executing the PHP file
<?php
echo get_current_user();
exit;
@miclaus
miclaus / session_kill.php
Last active April 20, 2017 14:34
Kills PHP session.
<?php
// NOTE: see http://www.php.net/manual/en/function.session-destroy.php
function session_kill() {
// Unset all of the session variables.
session_unset();
// $_SESSION = [];
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
@miclaus
miclaus / rm_piano_backdrop.js
Last active January 27, 2021 23:08
rm_piano_backdrop
document.querySelector('#piano-modal-backdrop').remove();document.querySelector('#piano-modal-container').remove();document.querySelector('body').style.overflow='auto';