Skip to content

Instantly share code, notes, and snippets.

View thomasgroch's full-sized avatar

Thomas Letsch Groch thomasgroch

View GitHub Profile
@thomasgroch
thomasgroch / index.html
Last active July 31, 2018 19:21
CEPtástico - Generic Auto Fill Brazilian Zipcode
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Generic Auto Fill Brazilian Zipcode</title>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function() {
var zip_code = 'cep';
#!/bin/sh
# ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.24-osx10.9-x86_64.tar.gz
# Download URL: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.24-osx10.9-x86_64.tar.gz
curl -O http://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.24-osx10.9-x86_64.tar.gz
tar xfvz mysql-5.6*
echo "stopping mamp"
sudo /Applications/MAMP/bin/stop.sh
@thomasgroch
thomasgroch / _ide_helper.php
Created August 8, 2016 02:24 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.1.40 (LTS) on 2016-07-18.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
@thomasgroch
thomasgroch / vanilla-js-cheatsheet.md
Created July 5, 2017 17:17 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@thomasgroch
thomasgroch / user.js
Last active September 30, 2017 14:48
Remove fixed height from workana chat system
// ==UserScript==
// @name Workana++
// @namespace https://www.workana.com/messages/index/
// @version 0.3
// @description Remove fixed height from workana chat system
// @author Thomas Groch
// @match http://www.workana.com/messages/index/*
// @match https://www.workana.com/messages/index/*
// @grant none
// @copyright 2017+, Thomas Groch
@thomasgroch
thomasgroch / classified.skema
Created August 31, 2017 04:55
classified olx apple base
[{"name":"product","color":"Blue","position":{"x":606,"y":281},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"id","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":true,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c56","order":0},{"name":"name","type":"string","length":"255","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":true,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c64","order":1}],"relation":[],"seeding":[]}]
@thomasgroch
thomasgroch / mixins.styl
Created September 5, 2017 21:01 — forked from russweas/mixins.styl
Stylus BEM mixins
// Mixins.styl
has($name)
/&__{$name}
{block}
variant($name)
/&--{$name}
{block}
@thomasgroch
thomasgroch / bem.less
Created September 6, 2017 13:40 — forked from vivid-web/bem.less
BEM Helper (SCSS, SASS, LESS, Stylus)
// Mixins
.has(@element; @content) {
&__@{element} {
@content();
}
}
.variant(@modifier; @content) {
&--@{modifier} {
@content();
cd /home/forge/example.org
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
echo "" | sudo -S service php7.1-fpm reload
if [ -f artisan ]
then
php artisan migrate --force
fi
path: web/wp
@production:
ssh: do2-webhost~/example.org/
@development:
ssh: localhost~/dev/domains/example/
@dev:
- @development
@prod:
- @production
@both: