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/sh | |
| iptables -I INPUT -s $1 -j DROP; | |
| sleep $2; | |
| iptables -D INPUT -s $1 -j DROP; |
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 | |
| function slugify( $str ) { | |
| $str = preg_replace( '/\%/' , ' percentage' , $str ); | |
| $str = preg_replace( '/\@/' , ' at ' , $str ); | |
| $str = preg_replace( '/\&/' , ' and ' , $str ); | |
| $str = preg_replace( '/\s[\s]+/' , '-' , $str ); // Strip off multiple spaces | |
| $str = preg_replace( '/[\s\W]+/' , '-' , $str ); // Strip off spaces and non-alpha-numeric | |
| $str = preg_replace( '/^[\-]+/' , '' , $str ); // Strip off the starting hyphens | |
| $str = preg_replace( '/[\-]+$/' , '' , $str ); // Strip off the ending hyphens | |
| $str = strtolower( $str ); |
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
| {% block collection_widget %} | |
| {% spaceless %} | |
| <div class="collection"> | |
| {% if prototype is defined %} | |
| {% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %} | |
| {% endif %} | |
| <div {{ block('widget_container_attributes') }}> | |
| {{ form_errors(form) }} | |
| <ul> | |
| {% for rows in form %} |