- Command settings
.bashrc
- Aliases - place the following on a new line in the .bashrc file
alias [alias-name]='[alias command(s)]
- Ex:
alias ls='ls -lh'
- Aliases - place the following on a new line in the .bashrc file
.profile
or.bash_profile
- Add folders to you path
This file contains 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/sh | |
# any2markdown.sh | |
# | |
# A shell script that converts documents to markdown | |
# | |
# https://gist.github.com/creativecoder/4990796 | |
# | |
# Depends on: | |
# pandoc: http://johnmacfarlane.net/pandoc/ |
This file contains 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
// Redirect if not activating multiple plugins at once | |
if( ! isset( $_GET['activate-multi'] ) ) { | |
wp_redirect( admin_url( 'options-general.php?page=my-plugin-options' ) ); | |
} |
This file contains 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
# Place inside a <VirtualHost> or <Directory> declaration | |
# | |
# Particularly useful for displaying images in a local development environment | |
# without actually downloading all of the images | |
# | |
# Props to Mark Jaquith for the suggestion at WordCamp SF 2013 | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*)(png|jpg|jpeg|gif|svg)$ http://www.example.com$1$2 [L] |
This file contains 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
# Ignore all files except for a particular directory | |
* | |
# Don't ignore directories themselves, else we can't add anything to the repository | |
!*/ | |
# Don't ignore any directory with the name "path" | |
!**/path/* | |
# or its subdirectories | |
!**/path/**/* | |
# And don't forget .gitignore itself |
Date: [[Date of Document]] Between [Our Company] and [Your Company]
We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.
This file contains 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 | |
use Illuminate\Foundation\Testing\ApplicationTrait; | |
use Illuminate\Foundation\Testing\AssertionsTrait; | |
use Illuminate\Foundation\Testing\CrawlerTrait; | |
class LaravelContext extends PHPUnit_Framework_TestCase | |
{ | |
use ApplicationTrait, AssertionsTrait, CrawlerTrait; |
This file contains 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
var _ = require('lodash'); | |
/* | |
Example: | |
<pagination | |
current-page='@{{@ currentPage}}' | |
total-items='@{{totalItems}}' | |
per-page='@{{perPage}}'> | |
</pagination> | |
*/ | |
module.exports = { |
SSH Notes
These notes apply to OpenSSH
- SSH sessions
- Initiate a session
- Use
ssh [email protected]
to initiate an ssh session (can alternatively usessh -l user domain.com
)
- Use
- Files stored locally in
~/.ssh
- Known hosts
- Initiate a session
- The first time you connect to a remote server via SSH, you are asked if you want to continue--if you do, that server is added to the known_hosts file
OlderNewer