I hereby claim:
- I am railto on github.
- I am railto (https://keybase.io/railto) on keybase.
- I have a public key ASBuqYBAolnqsPlfJreo5_C1aGJMLFREkhFXE8hi-pUqmgo
To claim this, I am signing this object:
| <?php | |
| require_once("includes/init.php"); | |
| // instantiate blog class | |
| $blog = new Blog($db); | |
| $posts = $blog->get_posts(); | |
| $lastpostdate = $blog->last_post_date(); | |
| header("Content-Type: application/xml; charset=UTF-8"); | |
| echo '<?xml version="1.0" encoding="UTF-8" ?>' . | |
| '<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">'. | |
| '<channel>' . |
| <?php | |
| /** | |
| * Display the specified blog post. | |
| */ | |
| public function show($slug) | |
| { | |
| $post = Post::where('slug', $slug)->first(); | |
| return View::make('blog.post', compact('post')); |
| <?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; |
| sculpin_content_types: | |
| posts: | |
| permalink: blog/:filename/ | |
| sculpin_theme: | |
| theme: sculpin/bootstrap-3-blog-theme | |
| services: | |
| twig.extension.text: |
| #!/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 |
| services: | |
| twig.extension.text: | |
| class: Twig_Extensions_Extension_Text | |
| tags: | |
| - { name: twig.extension } |
| <?php | |
| namespace App\Http\Requests; | |
| use Illuminate\Support\Facades\Hash; | |
| class UserUpdateRequest extends Request | |
| { | |
| /** | |
| * Determine if the user is authorized to make this request. |
I hereby claim:
To claim this, I am signing this object:
| --- | |
| - name: SSH tightening | |
| hosts: all | |
| sudo: True | |
| tasks: | |
| - name: Disable root's ssh account | |
| action: > | |
| lineinfile | |
| dest=/etc/ssh/sshd_config |