Skip to content

Instantly share code, notes, and snippets.

Virgil Ratiu vratiu

Block or report user

Report or block vratiu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vratiu / cheats.js
Last active Feb 28, 2017
Sidecar CheatSeet
View cheats.js
//create a bean from console
var callbean ='Calls', {
"name": "issue 80737 call log",
"date_start": "2016-10-08T03:15:30+00:00",
"duration_minutes": 15,
"duration_hours": 0,
"assigned_user_id": "6ff50560-3589-23fa-eced-56ebf8835e3d"
// save the bean to server;
vratiu / qrr.php
Created Mar 26, 2015
Quick repair and rebuild script
View qrr.php
if (php_sapi_name() !== "cli") {
define('sugarEntry', true);
$runSQL = false;
if (!empty($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'true') {
vratiu / sugarapi.diff
Last active Aug 29, 2015
buildFileURL clear cache fix
View sugarapi.diff
diff --git a/lib/sugarapi/sugarapi.js b/lib/sugarapi/sugarapi.js
index e2c2b86..a052b95 100644
--- a/lib/sugarapi/sugarapi.js
+++ b/lib/sugarapi/sugarapi.js
@@ -270,6 +270,8 @@ SUGAR.Api = (function() {
_accessToken = null,
_refreshToken = null,
_downloadToken = null,
+ //Api Initialization time
+ _apiInitTime = null,
vratiu / .bash_aliases
Created Mar 26, 2014
Git shell coloring
View .bash_aliases
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart -
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
vratiu / gist:9780082
Created Mar 26, 2014
Git log improvement
View gist:9780082
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
You can’t perform that action at this time.