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
/** | |
* Replacement callback function | |
* | |
* @param array $match | |
* @return string | |
*/ | |
private function queryReplacementCallback($match) { | |
if (!isset($this->queryReplacementData[$match[2]]) || $this->queryReplacementData[$match[2]] === null) { | |
$replace = 'null'; | |
} else { |
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
<div class='content'> | |
<h1>Demo</h1> | |
<div id='testupdate'>AJAX Update</div> | |
<a href='/ajax/remote' data-update='testupdate' data-dialog='confirm_delete' class='confirm'>Update something</a> | |
<a id='removetest' href='/ajax/remote2' data-remove='removetest' data-dialog='confirm_delete' class='confirm'>Remove something</a> | |
</div> | |
<div id='confirm_delete' title='Delete Confirmation' data-confirm='Ok' data-cancel='Cancel' class='confirm_dialog'> | |
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Are you shure?</p> |
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
/* | |
* nginx configuration snippet for dynamic image manipulation using HttpImageFilterModule | |
* | |
* URL example: http://www.yourserver.com/imgresize/250-100-0/demo.jpg | |
* Parameters are width-height-rotation | |
* You need to compile nginx with --with-http_image_filter_module | |
* More information at http://wiki.nginx.org/HttpImageFilterModule | |
*/ | |
location ~/imgresize/(?P<width>[0-9]+)-(?P<height>[0-9]+)-(?P<rotate>[0-9]+)/(?P<filename>.+)$ { | |
rewrite /imgresize/[0-9]+-[0-9]+-[0-9]+/(.+)$ /images/$1 break; |
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
# Fail2Ban configuration file | |
# | |
# Author: Cyril Jaquier | |
# Modified: Yaroslav O. Halchenko <[email protected]> | |
# made active on all ports from original iptables.conf | |
# Modified: Andreas Behringer | |
# made fail2ban block whole /24 subnets | |
# put this file in /etc/fail2ban/action.d/ | |
# |
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
ffmpeg -hwaccel cuvid -hwaccel_output_format cuda -i frameserv.avs -map 0:0 -map 0:1 -c:a ac3 -ab 1536k -disposition:a:0 default -async 1 -c:v h264_nvenc -b:v 9000k -preset slow -maxrate 15000k -bufsize 15000k -r 24000/1001 -s 1920x1080 -aspect 16:9 -pix_fmt yuv420p -bsf:v h264_mp4toannexb -preset medium -level 41 -bluray-compat 1 -coder ac -trellis 1 -bf 1 -b_strategy 1 -flags +loop -mbd rd -sc_threshold 40 -keyint_min 24 -g 24 -qmin 2 -qmax 51 -qdiff 4 -f mpegts -mpegts_m2ts_mode 1 -slices 4 -y output-a4.264 |
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
/** | |
* You can use this script to export Vegas regions to the .srt format to use | |
* it with ffMpeg and other subtitle readers. You can also export the .sub format | |
* for use in DVDA as subtitles and .txt regions | |
* as tab separated text. | |
* | |
* Copy script to \Script Menu in your Vegas program path. | |
* If Vegas is running rescan via menu Tools>Scripting>Rescan Script Menu Folder | |
* | |
* To use this script: |
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
/** | |
* You can use this script to export Vegas markers to the ffMpeg format to use | |
* as chapters in mp4 metadata. You can also export the .xml, .csv and .txt format | |
* for use in other applications. | |
* | |
* Copy script to \Script Menu in your Vegas program path. | |
* If Vegas is running rescan via menu Tools>Scripting>Rescan Script Menu Folder | |
* | |
* To use this script: | |
* |