This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $key = 'your-secret-key-here'; | |
| $header = [ | |
| 'typ' => 'JWT', | |
| 'alg' => 'HS256' | |
| ]; | |
| $header = json_encode($header); | |
| $header = base64_encode($header); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false)) { | |
| //is IE 11 or below | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteRule ^wp-admin/includes/ - [F,L] | |
| RewriteRule !^wp-includes/ - [S=3] | |
| RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] | |
| RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] | |
| RewriteRule ^wp-includes/theme-compat/ - [F,L] | |
| RewriteRule (vendor|node_modules) - [R=404,L,NC] | |
| RewriteRule Gruntfile.js - [R=404,L,NC] | |
| RewriteRule gulpfile.js - [R=404,L,NC] | |
| RewriteRule package.json - [R=404,L,NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'rest_endpoints', 'disable_default_endpoints' ); | |
| function disable_default_endpoints( $endpoints ) { | |
| $allowed = ['/some/route/here']; | |
| foreach ( $endpoints as $maybe_endpoint => $object ) { | |
| if ( ! in_array($maybe_endpoint, $allowed) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <files *.ini> | |
| order allow,deny | |
| deny from all | |
| </files> | |
| <files *.sh> | |
| order allow,deny | |
| deny from all | |
| </files> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('admin_init', function () { | |
| // Redirect any user trying to access comments page | |
| global $pagenow; | |
| if ($pagenow === 'edit-comments.php') { | |
| wp_redirect(admin_url()); | |
| exit; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #bloqueia o acesso ao git | |
| RedirectMatch 404 /\\.git(/|$) | |
| #bloqueia o acesso em arquivos e pastas ocultas | |
| RedirectMatch 404 (?i)/\..+ | |
| #bloqueia o acesso ao node_modules e vendor | |
| RedirectMatch 403 (?i)/View/node_modules | |
| RedirectMatch 403 (?i)/vendor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [XDebug] | |
| zend_extension = "c:\xampp\php\ext\php_xdebug.dll" | |
| xdebug.remote_autostart = 1 | |
| xdebug.profiler_append = 0 | |
| xdebug.profiler_enable = 1 | |
| xdebug.profiler_enable_trigger = 0 | |
| xdebug.profiler_output_dir = "c:\xampp\tmp" | |
| ;xdebug.profiler_output_name = "cachegrind.out.%t-%s" | |
| xdebug.remote_enable = 1 | |
| xdebug.remote_handler = "dbgp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| archlinux-keyring | |
| archlinux-wallpaper | |
| ark | |
| atom | |
| bluez | |
| bluez-utils | |
| darktable | |
| dialog | |
| dnsutils | |
| docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for line in `cat file.csv | sed -e 's/\r//g'`; do qrencode -o ${line}.png -s 10 ${line}; done |
NewerOlder