Skip to content

Instantly share code, notes, and snippets.

View nickshek's full-sized avatar

Nick Shek nickshek

View GitHub Profile
@nickshek
nickshek / MY_DB_mysqli_driver.php
Created January 15, 2016 07:16 — forked from kurozumi/MY_DB_mysqli_driver.php
【CodeIgniter3】MySQLiドライバにINSERT ON DUPLICATE KEY UPDATE 構文によるバッチ処理を追加する
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class MY_DB_mysqli_driver extends CI_DB_mysqli_driver {
final public function __construct($params)
{
parent::__construct($params);
}
@nickshek
nickshek / PlaceHolderController.php
Created June 5, 2016 15:11
Simple PlaceHolder API using Laravel and Intervention
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Intervention\Image\ImageManager;
class PlaceHolderController extends Controller
@nickshek
nickshek / PlaceHolderController.php
Created June 5, 2016 15:11
Simple PlaceHolder API using Laravel and Intervention
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Intervention\Image\ImageManager;
class PlaceHolderController extends Controller
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
@nickshek
nickshek / git-flow.md
Created October 26, 2017 07:33 — forked from yesmeck/git-flow.md
Git 开发流程

Git 协作流程

master 分支

master 永远处于稳定状态,这个分支代码可以随时用来部署。不允许在该分支直接提交代码。

develop 分支

开发分支,包含了项目最新的功能和代码,所有开发都在 develop 上进行。一般情况下小的修改直接在这个分支上提交代码。

@nickshek
nickshek / .bashrc
Last active September 3, 2018 21:34
Download youtube videos as a mp3 using youtube-dl
# Add the following alias command to .bashrc or .bash_profile
# Install youtube-dl: https://rg3.github.io/youtube-dl/download.html
alias youtube-audio="youtube-dl -i --extract-audio --audio-format mp3 --audio-quality 0"
# Usage: youtube-audio https://www.youtube.com/watch?v=dQw4w9WgXcQ