Skip to content

Instantly share code, notes, and snippets.

nickshek

Block or report user

Report or block nickshek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nickshek
nickshek / .bashrc
Last active Sep 3, 2018
Download youtube videos as a mp3 using youtube-dl
View .bashrc
# 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
@nickshek
nickshek / git-flow.md
Created Oct 26, 2017 — forked from yesmeck/git-flow.md
Git 开发流程
View git-flow.md

Git 协作流程

master 分支

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

develop 分支

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

View human_log.py
# 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 / PlaceHolderController.php
Created Jun 5, 2016
Simple PlaceHolder API using Laravel and Intervention
View PlaceHolderController.php
<?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 Jun 5, 2016
Simple PlaceHolder API using Laravel and Intervention
View PlaceHolderController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Intervention\Image\ImageManager;
class PlaceHolderController extends Controller
@nickshek
nickshek / MY_DB_mysqli_driver.php
Created Jan 15, 2016 — forked from kurozumi/MY_DB_mysqli_driver.php
【CodeIgniter3】MySQLiドライバにINSERT ON DUPLICATE KEY UPDATE 構文によるバッチ処理を追加する
View MY_DB_mysqli_driver.php
<?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);
}
You can’t perform that action at this time.