Skip to content

Instantly share code, notes, and snippets.

Bogdan BUCUR bbog

Block or report user

Report or block bbog

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
@bbog
bbog / .footer.html
Created Jun 1, 2017
Custom mod autoindex - footer
View .footer.html
@bbog
bbog / .header.html
Created Jun 1, 2017
Custom mod autoindex - header
View .header.html
<html>
<head>
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@bbog
bbog / .htaccess
Created Jun 1, 2017
Custom mod autoindex
View .htaccess
# STRONG HTACCESS PROTECTION
<Files ~ "^.*.([Hh][Tt][Aa])">
order allow,deny
deny from all
</Files>
# DIRECTORY CUSTOMIZATION
<IfModule mod_autoindex.c>
# SET INDEX OPTIONS
IndexOptions IgnoreCase FoldersFirst SuppressHTMLPreamble
View gist:34d67a37989c12dedb9b
var request = function (options) {
// just in case
options = options || {};
var url = options.url,
method = options.method || 'GET',
onSuccess = options.onSuccess,
onError = options.onError,
params = options.params,
View gist:61ca2b878071c0df7167
function fizzbuzz(n){
var ft='Fizz',bt='Buzz',f=(n%3==0),b=(n%5==0);
return (f&&b)?ft+bt:f?ft:b?bt:n;
}
You can’t perform that action at this time.