Skip to content

Instantly share code, notes, and snippets.

View ronzyfonzy's full-sized avatar
🦄

Robert Tajnšek ronzyfonzy

🦄
View GitHub Profile
@ronzyfonzy
ronzyfonzy / Blueprint.php
Created August 24, 2016 00:10 — forked from m4grio/Blueprint.php
Extending Laravel 5 Blueprint for MySqlConnection
<?php
namespace App\Database\Schema;
use Illuminate\Database\Schema\Blueprint as ParentBlueprint;
use Illuminate\Support\Facades\DB;
/**
* Class Blueprint
*
@ronzyfonzy
ronzyfonzy / purge.sh
Last active July 26, 2016 08:23 — forked from adrienbrault/purge.sh
Script to reduce VM size before packaging for vagrant
#!/bin/bash
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible dump file
# My version of this snippet. Added blocks for recognizing DROP TABLE and DROP VIEW and CREATE VIEW and puts
# them into a file for usage
# Example: $ ./mysql2sqlite.sh --add-drop-table --routines -u root -pMySecretPassWord myDbase > myDbase_dump_sqlite.sql
mysqldump --skip-extended-insert --compact "$@" | \
#cat "$@" | \
awk '