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
# Modify this file accordingly for your specific requirement. | |
# http://www.thegeekstuff.com | |
# 1. Delete all existing rules | |
iptables -F | |
# 2. Set default chain policies | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP |
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
--- | |
authorize: /Users/tatsumori/.ssh/id_rsa.pub | |
keys: | |
- /Users/tatsumori/.ssh/id_rsa | |
folders: | |
- map: /Users/tatsumori/Code | |
to: /home/vagrant/Code |
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
if [[ -z $ZSH_THEME_CLOUD_PREFIX ]]; then | |
ZSH_THEME_CLOUD_PREFIX='☁' | |
fi | |
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} | |
function get_pwd() { |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="tatsumori" | |
alias rake="noglob rake" |
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/bash | |
TIMESTAMP=$(date +"%F") | |
BACKUP_ROOT="-------------------" | |
BACKUP_DIR="$BACKUP_ROOT$TIMESTAMP" | |
MYSQL_USER="----------------" | |
MYSQL=/usr/bin/mysql | |
MYSQL_PASSWORD="----------------" | |
MYSQLDUMP=/usr/bin/mysqldump |
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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
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
<snippet> | |
<content><![CDATA[ | |
Route::get('${1:resource}', ['as' => '${1}.index', 'uses' => '${1/(.+)/\u\1/g}sController@index']); | |
Route::get('${1}/create', ['as' => '${1}.create', 'uses' => '${1/(.+)/\u\1/g}sController@create']); | |
Route::post('${1}', ['as' => '${1}.store', 'uses' => '${1/(.+)/\u\1/g}sController@store']); | |
Route::get('${1}/{${1}}', ['as' => '${1}.show', 'uses' => '${1/(.+)/\u\1/g}sController@show']); | |
Route::get('${1}/{${1}}/edit', ['as' => '${1}.edit', 'uses' => '${1/(.+)/\u\1/g}sController@edit']); | |
Route::put('${1}/{${1}}', ['as' => '${1}.update', 'uses' => '${1/(.+)/\u\1/g}sController@update']); | |
Route::patch('${1}/{${1}}', ['uses' => '${1/(.+)/\u\1/g}sController@update']); | |
Route::delete('${1}/{${1}}', ['as' => '${1}.destroy', 'uses' => '${1/(.+)/\u\1/g}sController@destroy']); |
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 | |
Route::get('resource', ['as' => 'resource.index', 'uses' => 'ResourcesController@index']); | |
Route::get('resource/create', ['as' => 'resource.create', 'uses' => 'ResourcesController@create']); | |
Route::post('resource', ['as' => 'resource.store', 'uses' => 'ResourcesController@store']); | |
Route::get('resource/{resource}', ['as' => 'resource.show', 'uses' => 'ResourcesController@show']); | |
Route::get('resource/{resource}/edit', ['as' => 'resource.edit', 'uses' => 'ResourcesController@edit']); | |
Route::put('resource/{resource}', ['as' => 'resource.update', 'uses' => 'ResourcesController@update']); | |
Route::patch('resource/{resource}', ['uses' => 'ResourcesController@update']); | |
Route::delete('resource/{resource}', ['as' => 'resource.destroy', 'uses' => 'ResourcesController@destroy']); |
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
[user] | |
name = John Phillip Betley | |
email = jpbetley@gmail.com | |
[alias] | |
st = status | |
co = checkout | |
br = branch | |
up = rebase | |
amend = commit --amend |
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 | |
class UserController extends BaseController { | |
protected $zab; | |
public function __construct(ZabbixWrapper $zab) | |
{ | |
$this->zab = $zab; | |
} |
NewerOlder