Skip to content

Instantly share code, notes, and snippets.

@vesper8
vesper8 / webpack.mix.js
Created November 22, 2017 06:21 — forked from reinink/webpack.mix.js
Using Purgecss with Tailwind and Laravel Mix
let cssImport = require('postcss-import')
let cssNext = require('postcss-cssnext')
let glob = require('glob-all')
let mix = require('laravel-mix')
let purgeCss = require('purgecss-webpack-plugin')
let tailwind = require('tailwindcss')
mix.js('resources/assets/js/app.js', 'public/js')
.postCss('resources/assets/css/app.css', 'public/css/app.css', [
cssImport(),
@vesper8
vesper8 / aws_ses.bash
Created October 26, 2017 03:04 — forked from umrashrf/aws_ses.bash
Amazon AWS CLI - SES SEND EMAIL
sudo pip install awscli
aws configure
aws ses send-email \
--from "john@gmail.com" \
--destination "ToAddresses=mike@gmail.com" \
--message "Subject={Data=from ses,Charset=utf8},Body={Text={Data=ses says hi,Charset=utf8},Html={Data=,Charset=utf8}}"
@vesper8
vesper8 / exportMySQLUsersPDO.php
Created September 24, 2017 12:11 — forked from zaiddabaeen/exportMySQLUsersPDO.php
Exports MySQL Users and Privileges using PDO
* Feel free to improve it.
* Original by Janich: https://gist.github.com/janich/6121771
*
* @requires PHP 5.3+
* @package ExportMySQLUsers
* @author Zaid Daba'een
* @license http://www.dbad-license.org/ DBAD license
*/
// Set up database root credentials
$host = 'localhost';
@vesper8
vesper8 / downloadLaracon2017.sh
Created August 25, 2017 05:00
Laracon US 2017 - youtube-dl batch file.
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-freek-van-der-herten
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-tom-schlick
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-adam-wathan
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-maxime-locqueville
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-evan-you
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-nils-adermann
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-taylor-otwell
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-blackfireio
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-nexmo
youtube-dl https://www.streamacon.com/video/laracon-us-2017/day-1-vehikl