Skip to content

Instantly share code, notes, and snippets.

@bradymiller
bradymiller / updateGitOpenemrRepository
Created May 22, 2010 17:52
Script to build and update the OpenEMR github mirror
#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
#
@bradymiller
bradymiller / refresh
Created July 16, 2010 19:15
Mandriva script to prepare a github repository for testing the OpenEMR Development tip.
#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Mandriva script to prepare a github repository for testing. This is
@bradymiller
bradymiller / refresh
Last active May 25, 2020 08:49
Ubuntu script to prepare a github repository for testing the OpenEMR Development tip
#!/bin/bash
#
# Copyright (C) 2014 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Ubuntu script to prepare a github repository for testing. This is
@bradymiller
bradymiller / StartupDeveloperAppliance2
Created October 19, 2010 18:42
Just to illustrate the script the runs the OpenEMR Developer Appliance and Online demos
#!/bin/sh
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
# author Brady Miller
# email brady@sparmy.com
# date 02/20/09
@bradymiller
bradymiller / mirrorOpenEMR_sf_git
Created October 31, 2010 09:18
Script to mirror the SF git repo to github, gitorious, bitbucket, assembla and google code
#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
#
@bradymiller
bradymiller / clinicical_decisions_functions
Created November 16, 2010 10:29
Clinical Decisions Functions
// Display the clinical summary widget.
// Parameters:
// $patient_id - pid of selected patient
// $dateTarget - target date. If blank then will test with current date as target.
function clinical_summary_widget($patient_id,$dateTarget='')
// Test the clinic rules of entire clinic
// Parameters:
// $provider - id of a selected provider. If blank, then will test entire clinic.
// $type - rule filter (active_alert,passive_alert,cqm). If blank then will test all rules.
@bradymiller
bradymiller / buildTranslations
Created March 12, 2011 22:29
Script to build OpenEMR translation tables from most current Google Docs Spreadsheet.
#!/bin/bash
#
# Copyright (C) 2011 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Script to test most current Google Docs OpenEMR Translation Spreadsheet.
@bradymiller
bradymiller / updateTranslationsGoogleDocs
Last active September 25, 2015 05:07
Script to routinely test the google docs openemr translations and update development translations if it passes testing.
#!/bin/bash
#
# Copyright (C) 2011 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Script to test most current Google Docs OpenEMR Translation Spreadsheet.
#!/bin/bash
#
# Copyright (C) 2019 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Script to build releases (tarball,zip,anddeb) for openemr
@bradymiller
bradymiller / phpcbf.sh
Last active July 21, 2019 19:06 — forked from robertdown/phpcbf.sh
Apply code standards to OpenEMR
# run without fixing items
php ~/git/PHP_CodeSniffer/bin/phpcs -n --extensions=php,inc --standard=ci/phpcs.xml --report=full .
# run and fix items
php ~/git/PHP_CodeSniffer/bin/phpcbf -n --extensions=php,inc --standard=ci/phpcs.xml .