Skip to content

Instantly share code, notes, and snippets.

View ametad's full-sized avatar

ametad

  • Groningen, The Netherlands
View GitHub Profile
@ametad
ametad / sed_snippets.sh
Created February 5, 2024 14:34 — forked from r2k0/sed_snippets.sh
sed examples
##FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
# triple space a file
@ametad
ametad / gist:6e65e0b4dbf3dc28192c3d06e281c15f
Created June 18, 2018 14:58
vagrant destroy && vagrant up output
$ vagrant destroy && vagrant up
homestead-7: Are you sure you want to destroy the 'homestead-7' VM? [y/N] y
==> homestead-7: Forcing shutdown of VM...
==> homestead-7: Destroying VM and associated drives...
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'laravel/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
==> homestead-7: A newer version of the box 'laravel/homestead' is available! You currently
==> homestead-7: have version '5.2.0'. The latest is version '6.1.0'. Run
<?php
/* LICENSE
* Copyright (c) 2014 Máté Cserép
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it