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
| # delete all local merged branches with no activity within the last week | |
| for k in $(git branch --merged | sed /\*/d); do | |
| if [ -z "$(git log -1 --since='1 week ago' -s $k)" ]; then | |
| echo git branch -d $k | |
| fi | |
| done | |
| # delete all merged remote branches with no activity within the last month | |
| for k in $(git branch -r --merged | cut -d ' ' -f3 | sed /\*/d); do | |
| if [ -z "$(git log -1 --since='1 month ago' -s $k)" ]; then |
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
| -- -------------------------------------------------------------------------------- | |
| -- Routine DDL | |
| -- Note: comments before and after the routine body will not be stored by the server | |
| -- -------------------------------------------------------------------------------- | |
| DELIMITER $$ | |
| CREATE PROCEDURE `select_zero_date_columns`() | |
| BEGIN | |
| DECLARE current_table_name CHAR(255); | |
| DECLARE current_column_name CHAR(255); |
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
| #!/bin/bash | |
| PHPVERSION=$1 | |
| if [[ ! $1 =~ ^5\.[234]\.[0-9]{1,2}$ ]]; then | |
| echo $PHPVERSION is not a valid php version. | |
| exit | |
| fi | |
| INSTALL_PACKAGES="" | |
| for PACKAGE in build-essential bzip2 gcc libbz2-dev libcurl3-openssl-dev libcurl4-openssl-dev libgd2-xpm-dev libicu-dev libmcrypt-dev libmhash-dev libmysqlclient-dev libxml2-dev libxslt1-dev libxslt1-dev make wget; do |
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
| .myform { | |
| $label-width: 80px; | |
| .form-horizontal .control-label { | |
| width: $label-width; | |
| } | |
| .form-horizontal .controls { | |
| margin-left: $label-width + 20px; | |
| } | |
| } |
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 | |
| $ini = ini_get_all('session', false); | |
| $ini['url_rewriter.tags'] = ini_get('url_rewriter.tags'); | |
| foreach($ini as $k => $v) | |
| { | |
| echo $k . ' = ' . $v . "\n<br/>\n"; | |
| } |
NewerOlder