Skip to content

Instantly share code, notes, and snippets.

@rginnow
rginnow / .gitignore
Last active Nov 27, 2018
My Laravel Files
View .gitignore
/node_modules
/public/hot
/public/storage
/storage
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
@rginnow
rginnow / list_files.php
Created Apr 26, 2017
List files in directory using PHP (Linux or Windows)
View list_files.php
<?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 / install_module.php
Last active Feb 17, 2021 — forked from jmertic/gist:6294266
Silent install a package on an instance from the command line in SugarCRM with this script
View install_module.php
#!/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:');
View 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",