This gist details the following:
- Converting a Subversion (SVN) repository into a Git repository
- Purging the resultant Git repository of large files
- Retrieve a list of SVN commit usernames
| <?php | |
| namespace App\Database; | |
| use Illuminate\Database\Query\Builder; | |
| use Illuminate\Support\Collection; | |
| class UpsertBuilder | |
| { | |
| /** @var Builder */ |
| import json,requests,pprint | |
| gh_url = "https://api.github.com" | |
| username = 'wehappyfew' | |
| # a token is needed for 2 Factor Auth, otherwise only Name/Pass | |
| custom_token = 'blablablablablablabla' # a custom personal token from GitHub | |
| repo_name = 'your_repo_name' | |
| new_default_branch = 'something' # this is going to change every time | |
| #encode to JSON |
| ###### | |
| # Author: Marcello de Sales ([email protected]) | |
| # Description: Create Create Environment Variables in EC2 Hosts from EC2 Host Tags | |
| # | |
| ### Requirements: | |
| # * Install jq library (sudo apt-get install -y jq) | |
| # * Install the EC2 Instance Metadata Query Tool (http://aws.amazon.com/code/1825) | |
| # | |
| ### Installation: | |
| # * Add the Policy EC2:DescribeTags to a User |
This gist details the following:
| //## Moment.JS Holiday Plugin | |
| // | |
| //Usage: | |
| // Call .holiday() from any moment object. If date is a US Federal Holiday, name of the holiday will be returned. | |
| // Otherwise, return nothing. | |
| // | |
| // Example: | |
| // `moment('12/25/2013').holiday()` will return "Christmas Day" | |
| // | |
| //Holidays: |