Short explanation about the series
Introdution, explaining which is the gloal of the post and what are the motivation to face this problem, is basically a very short resume or explanation about what the user is going to read.
| #!/bin/sh | |
| version="1.4.15" | |
| priority="10415" | |
| libevent="/usr/local/libevent/2.0.20-stable/" | |
| supervisordir="/etc/supervisord.d" | |
| # create user | |
| sudo groupadd memcached | |
| sudo useradd -r -g memcached -s /sbin/nologin -M -d /var/run/memcached memcached |
| local function loadFormInput () | |
| local result = { | |
| data = {}, | |
| indexes = {} | |
| } | |
| -- Should be set to 4096 or 8192 for real-world settings | |
| local chunk_size = 4096 | |
| local form, err = upload:new(chunk_size) |
| $page = $request->input('page') ?: 1; | |
| $total = $collection->count(); | |
| $start = ($page - 1) * $request->input('limit'); | |
| $slice = $collection->slice($start, $request->input('limit'), true); | |
| $paginator = new LengthAwarePaginator( | |
| $slice->all(), | |
| $total, | |
| $request->input('limit'), | |
| $request->input('page') ?: null, |
| #!/bin/sh | |
| # If you would like to do some extra provisioning you may | |
| # add any commands you wish to this file and they will | |
| # be run after the Homestead machine is provisioned. | |
| echo "Updating machine software" | |
| locale-gen en_GB.UTF-8 | |
| # Updating composer |
| $(document).ready -> | |
| Stripe.setPublishableKey(window.stripe_pk); | |
| stripeResponseHandler = (status, response) -> | |
| if (response.error) | |
| # re-enable the submit button | |
| #$('.submit-button').removeAttr("disabled") | |
| else | |
| form$ = $("#formPaymentDetails") | |
| # token contains id, last4, and card type |
| java -jar /opt/jenkins-cli.jar -s http://localhost:8080 get-job Contactzilla > contactzilla.xml |
| # | |
| # Jenkins build cleaner | |
| # Cleans out all builds for projects that exist in the directory | |
| # Resets the build number to 1 | |
| # Backup all projects before running this | |
| function cleanbuild { | |
| echo "cleaning $1" | |
| cd $1 |
| <?xml version="1.0" encoding="utf-8" ?> | |
| <phpdox xmlns="http://phpdox.net/config"> | |
| <project name="MyProjectName" source="MyBaseDir" workdir="phpdox"> | |
| <collector publiconly="false"> | |
| <include mask="*/source1/**/*.php" /> | |
| <include mask="*/source2/**/*.php" /> | |
| <exclude mask="*autoload.php" /> | |
| </collector> | |
| <generator output="."> |
| <?php | |
| // credential to access github, you should choose between username/password authentication or token (for two step verification accounts) | |
| $githubUser = 'YOURGITHUBUSER'; | |
| $githubPasswd = 'YOURGITHUBPASSWD'; | |
| // or | |
| //$githubToken = 'YOURGITHUBTOKEN'; | |
| $githubOrganization = 'YOURGITHUBORGANIZATION'; |