Skip to content

Instantly share code, notes, and snippets.

View peterdemartini's full-sized avatar
😎
being awesome

Peter DeMartini peterdemartini

😎
being awesome
View GitHub Profile
set -g default-command /usr/local/bin/fish
set -g default-shell /usr/local/bin/fish
Getting Started Links
"Windows UI Installer (32-bit)" -> https://s3-us-west-2.amazonaws.com/gateblu/gateblu-ui/latest/gateblu-win32-ia32.exe
"Windows UI Installer (64-bit)" -> https://s3-us-west-2.amazonaws.com/gateblu/gateblu-ui/latest/gateblu-win32-x64.exe
"Windows Service 32-bit" -> https://s3-us-west-2.amazonaws.com/gateblu/gateblu-service/latest/GatebluService-win32-ia32.msi
"Windows Service 64-bit" -> https://s3-us-west-2.amazonaws.com/gateblu/gateblu-service/latest/GatebluService-win32-x64.msi
Windows Docs
Gateblu UI Installer
@peterdemartini
peterdemartini / .travis.yml
Created April 20, 2016 20:04
Build on tags on Travis CI and Appveyor
branches:
only:
- /^v[0-9]/
@peterdemartini
peterdemartini / common-dependencies-rpi-gateblu.md
Created March 18, 2016 14:59
RPi Gateblu common dependencies

apt-get install build-essential python-dev libbluetooth-dev

Citrix Skill

  • task
  • my task
  • notifications
  • podio notifications
  • meetings
  • my meetings
  • create meeting
  • netscaler status
@peterdemartini
peterdemartini / sugar_script.php
Created December 20, 2013 16:54
SugarCRM entryPoint in the root of Sugar. Great for scripts.
<?php
if(!defined('sugarEntry'))define('sugarEntry', true);
chdir(realpath(dirname(__FILE__)));
require_once('include/entryPoint.php');
//Running with SugarCRM
//Custom Code Goes below here
@peterdemartini
peterdemartini / sugarcrm_convert_date.php
Created December 12, 2013 21:56
SugarCRM Convert Date from DB to User Format
<?php
global $timedate;
$timedate->swap_formats(date('Y-m-d'), $timedate->dbDayFormat, $timedate->get_date_format());
@peterdemartini
peterdemartini / SEF_Converter.php
Created December 11, 2013 00:37
Search Engine Friendly String converter.
<?php
function generate_seo_link($string, $replace = '-'){
$string = strtolower($string);
//remove query string
if(preg_match("#^http(s)?://[a-z0-9-_.]+\.[a-z]{2,4}#i",$string)){
$parsed_url = parse_url($string);
$string = $parsed_url['host'].' '.$parsed_url['path'];
}
@peterdemartini
peterdemartini / findinfiles.sh
Created December 4, 2013 17:58
Best Find in Files command for Linux. Show lines number, displays results efficiently using less.
#With Extension (PHP)
find . -iname "*.php" -print0 | xargs -0 grep -i -n 'Search Term' | less
#Without Extension
find . -iname "*" -print0 | xargs -0 grep -i -n 'Search Term' | less