ssh-keygen -lf ~/.ssh/id_rsa
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
| chrome://flags/ |
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
| RewriteEngine on | |
| # Redirect from anyhost to www | |
| RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] | |
| RewriteCond %{HTTP_HOST} !^$ | |
| RewriteRule ^/?(.*) http://www.example.com/$1 [L,R,NE] | |
| # Remove www from the request uri | |
| RewriteCond %{HTTP_HOST} ^www\. | |
| RewriteCond %{HTTPS}s ^on(s)|off |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project> | |
| <!-- Copied almost verbatim from: http://stackoverflow.com/questions/2974106/how-to-lookup-the-latest-git-commit-hash-from-an-ant-build-scripto--> | |
| <available file=".git" type="dir" property="git.present"/> | |
| <target name="git.revision" description="Store git revision in ${repository.version}" if="git.present"> | |
| <exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty=""> | |
| <arg value="describe"/> |
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
| watch "ls -lrt | tail -10" |
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
| #!/usr/bin/env bash | |
| # Lifted from http://systemterror.com/2012/11/self-signing-osx-applications/ with the addition of --deep | |
| # Open Keychain Access and from the menu select Keychain Access > Certificate Assistant > Create a Certificate | |
| # Name: fill in any name you like, e.g. "MyCodesign" | |
| # Identity Type: Self Signed Root | |
| # Certificate Type: Code Signing | |
| codesign --deep -s "MyCodesign" -f /Applications/PhpStorm.app/ |
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 | |
| $diff = array_diff(array('one', 'two'), array_keys($input)); | |
| if (0 < count($diff)) { | |
| throw new Exception( | |
| sprintf( | |
| 'Missing configuration parameter%1$s "%2$s".', | |
| 1 === count($diff) ? '' : 's', | |
| implode(', ', $diff) |
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
| #!/usr/bin/env php | |
| ./vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php |
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/env bash | |
| sudo apt-get update | |
| apt-get install vsftpd | |
| # Modify /etc/vsftp.conf | |
| useradd -m ldsc -s /usr/sbin/nologin | |
| passwd ldsc |