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 | |
include_once 'common.php'; | |
$onlineReceipts =& getInstance('OnlineReceipts'); | |
$orId = 1; | |
$manager =& getInstance('Manager'); | |
$manager->init('update', 'admin', 'onlineReceipts', null); | |
$manager->useView=1; | |
$fileRef = $onlineReceipts->generatePDF($orId, $manager); |
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
function checkDevice(mode) { | |
if (mode == 'ios') { | |
device = ['ipad', 'iphone', 'ipod']; | |
} else if (mode == 'android') { | |
device = ['android']; | |
} | |
var i = 0; | |
for ( ; i < device.length ; i++ ) { | |
if( navigator.platform.toLowerCase() == device[i]){ |
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 | |
include_once 'common.php'; | |
print_r(debug_backtrace()); | |
logDebug("this is a test debug message #6", __FILE__, __LINE__, debug_backtrace()); |
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
setInterval(function(){ | |
$('.fleft').each(function() { | |
var randVal = Math.floor((Math.random() * 10) + 1); | |
if (randVal == 1 || randVal == 7) { | |
return; | |
} | |
if (this.src != undefined) { | |
var randVal = Math.floor((Math.random() * 2) + 1); | |
switchFrom = '_' + randVal + '_'; |
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
#! /usr/bin/env python | |
# Sample Usage: ./optimizeSolr.py http://solr1:8970 | |
import xml.etree.ElementTree as ET; | |
import requests; | |
import time; | |
import sys; | |
if len(sys.argv) > 1 : | |
rootSolrUrl = sys.argv[1]; | |
r = requests.get(rootSolrUrl + '/solr/admin/cores'); | |
root = ET.fromstring(r.content); |
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 | |
#Redis Servers | |
array=( cache2 cache1 cache3 ) | |
#output file | |
outputConfig='/config/redis.json' | |
function outputRedisConfig { | |
echo "{ |
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
193.202.10.29 | |
194.156.124.120 | |
146.185.202.97 | |
83.171.227.33 | |
147.78.183.235 | |
185.102.112.249 | |
176.9.9.125 | |
62.138.8.193 | |
213.108.2.40 | |
193.202.87.190 |
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
@file,1,Ableton Push User Port | |
NoFunction,,Button,,B016,,,,,B016,,,,, | |
NoFunction,,DdjSxPad,,8025,B040,,8029,,8025,,,A040,Fast;, | |
NoFunction,,DdjSxPad,,8026,C040,,802A,,8026,,,A041,Fast;, | |
NoFunction,,DdjSxPad,,8027,,,802B,,8027,,,A042,Fast;, | |
NoFunction,,DdjSxPad,,802C,,,8030,,802C,,,A043,Fast;, | |
NoFunction,,DdjSxPad,,802D,,,8031,,802D,,,A038,Fast;, | |
NoFunction,,DdjSxPad,,802E,,,8032,,802E,,,A039,Fast;, | |
NoFunction,,DdjSxPad,,802F,,,8033,,802F,,,A03A,Fast;, | |
NoFunction,,DdjSxPad,,8034,,,8038,,8034,,,A03B,Fast;, |
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
128.108.0.0/16 | |
62.234.0.0/16 | |
101.32.0.0/16 | |
101.33.0.0/16 | |
124.156.0.0/16 | |
129.226.0.0/16 | |
132.232.0.0/16 | |
175.178.0.0/16 | |
43.163.0.0/17 | |
81.68.0.0/14 |