This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * This file is part of HTMLPurifier Bundle. | |
| * (c) 2012 Maxime Dizerens | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # vim:set ts=4 sw=4 et ai: | |
| # Retrieve SSH public keys from GitHub and install to authorized_keys. | |
| GITHUB_USERS=(USER1 USER2) | |
| INSTALL_FILE=/home/USER/.ssh/authorized_keys | |
| TMP_KEY=/tmp/ssh.key | |
| CURL=/usr/bin/curl | |
| CURLOPTS="--retry 3 --retry-delay 2 --silent --fail -o $TMP_KEY" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class ApiController extends \BaseController { | |
| // extend apicontroller from homecontroller | |
| // | |
| // build functions for 400, 403, 500, and other ones that we may use | |
| // return errors with: | |
| // $this->respondNotFound('blah blah cant be found'); | |
| // | |
| // return success with: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -y -i input.mkv -vcodec copy -acodec copy -ss 00:10:05 -t 30 output.mkvs |
OlderNewer