Skip to content

Instantly share code, notes, and snippets.

View miclaus's full-sized avatar
🕸️

Iosif Miclaus miclaus

🕸️
View GitHub Profile
@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';
@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 / __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 / phpinfo.php
Last active April 23, 2020 11:49
phpinfo
<?php
phpinfo();
exit;
@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 / 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 / .csscomb.json
Last active January 17, 2017 20:14
.csscomb.json
{
"exclude": [
".git/**",
"node_modules/**",
"bower_components/**"
],
"always-semicolon": true,
"block-indent": " ",
"color-case": "lower",
"color-shorthand": true,
@miclaus
miclaus / .profile
Created November 8, 2016 11:10
.profile
export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:$PATH
@miclaus
miclaus / php-modules-grep-mcrypt.sh
Last active November 8, 2016 10:57
php-modules-grep-mcrypt.sh
php -m | grep mcrypt
alias rnios=“react-native run-ios”
alias rhynos=rnios