Skip to content

Instantly share code, notes, and snippets.

View rginnow's full-sized avatar
Coffee ❤️

Ryan Ginnow rginnow

Coffee ❤️
View GitHub Profile
@rginnow
rginnow / config.json
Last active August 29, 2015 14:11 — forked from anonymous/config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@rginnow
rginnow / install_module.php
Last active February 17, 2021 08:47 — forked from jmertic/gist:6294266
Silent install a package on an instance from the command line in SugarCRM with this script
#!/usr/local/bin php
<?php
function usage()
{
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n");
exit(1);
}
$opts = getopt('i:p:z:');
@rginnow
rginnow / list_files.php
Created April 26, 2017 22:23
List files in directory using PHP (Linux or Windows)
<?php
// From https://tympanus.net/codrops/2009/09/01/how-to-list-files-in-a-directory-with-php/
$row = exec('ls -ls',$output,$error);
while(list(,$row) = each($output)){
echo $row, "<BR>\n";
}
if($error){
echo "Error : $error<BR>\n";
exit;
}
@rginnow
rginnow / .gitignore
Last active November 27, 2018 15:35
My Laravel Files
/node_modules
/public/hot
/public/storage
/storage
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml