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
--- jquery.bxSlider.js | |
+++ (clipboard) | |
@@ -670,10 +670,10 @@ | |
top: 0, | |
left: 0, | |
zIndex: 98 | |
- }); | |
+ }); | |
$outerWrapper = $parent.parent().parent(); | |
- $children.not(':eq('+currentSlide+')').fadeTo(0, 0); |
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
# This is an Applescript to trigger the Detect Displays functionality quickly on OS X | |
# 1. save this to a file with a `.scpt` extension | |
# 2. make sure that the Displays menu is set to display in the OS X menu bar | |
# 3. use your favorite quick access app (Spotlight, LaunchBar, Quicksilver, etc...) to call the script | |
# | |
# See: http://top-frog.com/2010/05/29/automatically-download-chromium-nightly-builds/ for a | |
# caveat if you have trouble and are using AppleScript when you have Adobe applications installed | |
to click_menu_extra at menu_list | |
tell application "System Events" to tell process "SystemUIServer"'s menu bar 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 // do not copy this line | |
// Add this code to `OpenVBX/controllers/iframe.php` | |
// In the 1.0.x branch insert the following on line 53 | |
// In the 1.1.x branch insert the following on line 66 | |
// Create a list of extra caller id numbers to add | |
// These numbers need to be validated in Twilio | |
// Validated numbers are listed in your Twilio Account: https://www.twilio.com/user/account/phone-numbers/verified | |
$custom_numbers = array( |
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
#! /bin/bash | |
# | |
# A script that will upgrade the version of OpenVBX that resides in the /OpenVBX | |
# directory, back-up the database, copy the current version for backup and replace | |
# it with the develop branch. The old version is not deleted. | |
# | |
# Used for testing, not approved for production! | |
# Does not take 3rd party plugins in to account. | |
# customize this for your install |
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 | |
/** | |
* Allow content templates to be loaded by page name | |
* | |
* ie: a page named "home" can load a special content template by adding a file | |
* to the content templates folder: `content/page-home.php` | |
* | |
* @param string $filename | |
* @param string $type |
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
// Convert all Category input checkboxes in to radio selects | |
// It completely replaces the elements with new ones and transfers | |
// the attributes from the old element to the new. | |
// We can't just change the type because of, you guessed it, Internet Explorer | |
// Yes, sometimes a hand grenade is easier than a scalpel ;) | |
jQuery('form#post').find('.categorychecklist input').each(function() { | |
var new_input = jQuery('<input type="radio" />'), | |
attrLen = this.attributes.length; | |
for (i = 0; i < attrLen; i++) { |
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
server { | |
listen 80; | |
server_name openvbx.tld; | |
access_log /var/www/logs/access.log; | |
error_log /var/www/logs/error.log; | |
location /(favicon.ico|robots.txt) { | |
access_log off; | |
log_not_found off; | |
error_page 404 /404; |
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 | |
// template for setting CURL proxy options for OpenVBX | |
// add the configuration lines below to the file | |
// `OpenVBX/libraries/OpenVBX.php` on line 375 with the | |
// config below and then enter the values for your Proxy | |
// proxy type | |
$_proxy_type = 'HTTP'; // proxy type | |
// The address of your proxy server |
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 | |
/** | |
* Allow Shortcodes to be validated as normal phone numbers in OpenVBX | |
* | |
* Open the file `OpenVBX/libraries/PhoneNumber.php` and replace the function | |
* `PhoneNumbers::normalizePhoneNumbertoE164` with the function definition below. | |
* Then replace the `$shortcodes` array members with a list of numbers to | |
* be considered valid shortcodes. | |
*/ |
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
#! /bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo 'This script must be run as root' | |
exit 1 | |
fi | |
launchctl unload -w /System/Library/LaunchDaemons/org.postfix.master.plist | |
mkdir -p /Library/Server/Mail/Data/spool/maildrop | |
/usr/sbin/postfix set-permissions |
OlderNewer