I hereby claim:
- I am railto on github.
- I am railto (https://keybase.io/railto) on keybase.
- I have a public key ASCtzTVjKcr4K0USfJygKE0JZdlZNDjVNyHNqxY4mZ1g_go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function whatCanIDrink(age) { | |
if (age < 0) { | |
return "Sorry. I can’t tell what drink because that age is incorrect!"; | |
} else if (age < 14) { | |
return "Drink Toddy" | |
} else if (age < 18) { | |
return "Drink Coke" | |
} | |
} |
--- | |
- name: SSH tightening | |
hosts: all | |
sudo: True | |
tasks: | |
- name: Disable root's ssh account | |
action: > | |
lineinfile | |
dest=/etc/ssh/sshd_config |
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Support\Facades\Hash; | |
class UserUpdateRequest extends Request | |
{ | |
/** | |
* Determine if the user is authorized to make this request. |
services: | |
twig.extension.text: | |
class: Twig_Extensions_Extension_Text | |
tags: | |
- { name: twig.extension } |
#!/bin/bash | |
# Custom sculpin publishing file | |
# Mark Railton - [email protected] | |
if (( $# != 1 )) | |
then | |
echo "You must enter a commit message as an argument" | |
exit 1 | |
fi |
sculpin_content_types: | |
posts: | |
permalink: blog/:filename/ | |
sculpin_theme: | |
theme: sculpin/bootstrap-3-blog-theme | |
services: | |
twig.extension.text: |
<?php | |
use Cviebrock\EloquentSluggable\SluggableInterface; | |
use Cviebrock\EloquentSluggable\SluggableTrait; | |
class Post extends Eloquent implements SluggableInterface { | |
protected $fillable = ['title', 'slug', 'user_id', 'content']; | |
use SluggableTrait; |
<?php | |
use Cviebrock\EloquentSluggable\SluggableInterface; | |
use Cviebrock\EloquentSluggable\SluggableTrait; | |
class Post extends Eloquent implements SluggableInterface { | |
protected $fillable = ['title', 'slug', 'user_id', 'content']; | |
use SluggableTrait; |