Skip to content

Instantly share code, notes, and snippets.

@mhulu
mhulu / starUML.md
Created February 6, 2018 02:11 — forked from trandaison/starUML.md
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**
@mhulu
mhulu / LoginController.php
Last active May 6, 2017 10:16
Laravel5.4 passport multi auth demo
<?php
namespace Star\ICenter\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Star\ICenter\Proxy\LoginProxy;
use Star\ICenter\Requests\LoginRequest;
class LoginController extends Controller {
@mhulu
mhulu / laravelSqlsrv.txt
Last active April 27, 2017 17:50
Laravel 5 using ms sqlsrv (PHP7.0 fpm, Ubuntu 16.04)
Install some packages according to https://www.microsoft.com/en-us/sql-server/developer-get-started/php-ubuntu (MS SqlServer optional)
You will find 'Could not find driver' when using artisan command, need:
apt-get install php7.0-sybase
The most important step:
vi /etc/freetds/freetds.conf
in [Global] section:
# TDS protocol version
tds version = 7.0
client charset = UTF-8
sudo chown -R my-user:www-data /path/to/your/root/directory
sudo find /path/to/your/root/directory -type f -exec chmod 664 {} \;
sudo find /path/to/your/root/directory -type d -exec chmod 775 {} \;
cd /path/to/your/root/directory/
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
@mhulu
mhulu / admin(v2).js
Created November 18, 2016 02:04 — forked from jwalton512/admin(v2).js
Harmony with Laravel + Vue + Vue Router
// dashboard component
var dashboard = Vue.extend({
template: '<p>Hello from dashboard</p>'
})
// user management component
var user = Vue.extend({
template: '<p>Hello from user management page</p>'
})