Skip to content

Instantly share code, notes, and snippets.

View matthewpoer's full-sized avatar

Matthew Poer matthewpoer

View GitHub Profile
<?php
//-----------------------------------------------------------------------------
if(!defined('sugarEntry'))define('sugarEntry', true);
require_once('include/entryPoint.php');
//-----------------------------------------------------------------------------
$db = DBManagerFactory::getInstance();
//-- TEMPLATE = birgit
$query = "SELECT id from users where user_name='birgit'";
$result = $db->query($query, true,"Error fetching birgit: ");
@patpawlowski
patpawlowski / sugarbackupdownload.php
Last active June 30, 2017 03:54
PHP Script to download Sugar backups from the pbs_Backups module
<?php
/**
* Created by NetBeans.
* User: patpawlowski
* Date: Mar 3, 2017 at 3:25:54 PM <- My 51st birthday ;) -pat
* File: sugarbackupdownload.php
* Create: curl https://gist.github.com/patpawlowski/486ea6d6b84bb6b7e90c5474ae5f001c/raw/ce08c191c8b3656d8749ef15c446b706a786b02b/sugarbackupdownload.php > sugarbackupdownload
* Make Executable: chmod +xxx sugarbackupdownload
* Run: php sugarbackupdownload
@tdlm
tdlm / how-i-work.md
Last active December 22, 2024 08:35
How I Work

When I Work

I am in the Pacific time zone (UTC -8/-7). Typically, I work from 9:00am - 6pm after waking up at about 5:30am, hopefully with a brief walk around the block, and getting the kids started with their day. I try to take a lunch anywhere between 11:30am and 2pm. Sometimes I'll step away for a short sanity break. Other than that, I'm usually at my desk. At the very least, I have my phone with me.

All that being said, I try my best to stay mindful, wherever I am. When I'm at work, my priority is work. When I'm with family, however, work becomes a close second.

Where I Work

I work from my home office in Yorba Linda, California.