Skip to content

Instantly share code, notes, and snippets.

View Gipetto's full-sized avatar
💩
Doing the day-to-day.

Shawn Parker Gipetto

💩
Doing the day-to-day.
View GitHub Profile
@Gipetto
Gipetto / gist:1733948
Created February 4, 2012 00:12
Simple OpenVBX Upgrade Script
#! /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
@Gipetto
Gipetto / gist:1447888
Created December 8, 2011 18:12
Inserting custom numbers in to the CallerId list (hack)
<?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(
@Gipetto
Gipetto / detect-displays.scpt
Created November 21, 2011 22:34
Detect Displays Applescript Trigger
# 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
@Gipetto
Gipetto / gist:1295925
Created October 18, 2011 16:53
bxSlider IE8 Fade (actually jQuery.animate) fix
--- 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);