This file contains 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
#!/usr/bin/env bash | |
restricted_branches=("develop") | |
forbidden_branches=("master") | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
if [[ " ${forbidden_branches[@]} " =~ " ${current_branch} " ]]; then | |
echo "Direct commits to ${current_branch} are not allowed." | |
exit 1 |
This file contains 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 | |
$conf = array( | |
// specify the url under which this directory listing runs | |
'url' => 'http://localhost/dirindex', | |
// specify the directory that should be listed (relative to this script) | |
'path' => '.', | |
// if true, files beginning with a dot (.) will be shown, false hides them | |
'showHidden' => false, | |
// page title | |
'title' => 'directory index', |
This file contains 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
document.getElementById('activitylog').removeAttribute('style'); | |
var styles = document.createElement('style'); | |
styles.type = 'text/css'; | |
styles.textContent = '#activeinlanecontainer:hover {height:auto;background:rgba(50,50,50,0.9);padding-bottom:10px;position:absolute;z-index:1} #activeinlanecontainer:hover + #activitylog {margin-top:97px} #activitylog {margin-top: 29px}'; | |
document.getElementsByTagName('head')[0].appendChild(styles); |