Skip to content

Instantly share code, notes, and snippets.

View anthonyterrell's full-sized avatar

Ant anthonyterrell

View GitHub Profile
@anthonyterrell
anthonyterrell / RevisedBlogPostController.php
Last active February 13, 2018 16:36
Improved Blog post controller, after using model observer.
/**
* Store a newly created resource in storage.
*
* @param \App\Http\Requests\BlogPostRequest $request
* @return \Illuminate\Http\Response
*/
public function store(BlogPostRequest $request)
{
try {
@anthonyterrell
anthonyterrell / changelog.sh
Created February 19, 2018 19:36
Generate git changelog
#!/usr/bin/env bash
previous_tag=0
for current_tag in $(git tag --sort=-creatordate)
do
if [ "$previous_tag" != 0 ];then
tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${previous_tag})
printf "## ${previous_tag} (${tag_date})\n\n"
git log ${current_tag}...${previous_tag} --pretty=format:'* %s [View](https://bitbucket.org/projects/test/repos/my-project/commits/%H)' --reverse | grep -v Merge
printf "\n\n"
@anthonyterrell
anthonyterrell / long-url-test.md
Last active January 17, 2020 17:24
Testing Gist

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vitae enim sollicitudin, placerat arcu vitae, tristique urna. Duis vitae commodo felis. Morbi tincidunt magna at turpis porttitor maximus. Vivamus fermentum rutrum enim vitae ultrices. Pellentesque ac enim at sem aliquet convallis sit amet quis diam. Etiam sodales urna eget varius pretium. Vivamus id eros vehicula mauris auctor dictum sed rhoncus arcu. Pellentesque tincidunt magna lorem, et pretium mi rhoncus in. Mauris erat erat, elementum a congue ut, imperdiet quis turpis.

https://www.amazon.com/Razor-15120040-Pocket-Rocket-Blue/dp/B001PH9J1I/ref=sr_1_1?keywords=razor+pocket+rocket&qid=1565972694&s=gateway&sr=8-1