Skip to content

Instantly share code, notes, and snippets.

View dotku's full-sized avatar
🧐
I'm busy... I may be slow to respond.

Weijing Jay Lin dotku

🧐
I'm busy... I may be slow to respond.
  • Meta
  • San Francisco, CA, USA
  • 22:59 (UTC -12:00)
View GitHub Profile
@dotku
dotku / 0-README: Database Lesson #3.md
Last active June 27, 2018 11:35
Database Lesson #3 of 8 - The Structured Query Language (SQL)
YouTube URL: https://www.youtube.com/watch?v=IfaqkiHpIjo&index=4&list=PL1LIXLIF50uXWJ9alDSXClzNCMynac38g
@dotku
dotku / README.md
Last active March 20, 2017 01:24
MySQL

System Shell

Database Management

  1. Export Data
mysqldump -u username -p dbname > dbexport.sql 
mysqldump -p username -o dbname tableName > tableName.sql
@dotku
dotku / array_map.php
Created May 22, 2016 09:30
Use array_map to prevent `Array to string conversion` notice in array_diff
<?php
$arr1 = array(
'level1' => array(
'level2' => array(
'level3' => 'hello'
)
)
);
$arr2 = array('level3'=>'world');
$needle1 = array('level3'=>'hello');
<?php
/**
* [!] Header must be set before all content in body display
*/
header('Content-Type:application/json; charset=utf-8');
header('Content-Type:text/xml; charset=utf-8');

Basics of Linux

This guide is designed to help new users understand the more important aspects of Linux. It is not meant to be an exhaustive tutorial, but rather a primer.


Introduction

Linux (or GNU/Linux) isn't one singular operating system as many people believe it to be, but rather a broader term for a large number of operating systems built using the Linux kernel. These different operating systems are referred to as distributions or "distros". Different Linux distributions use the same mostly the same software but are packaged and setup differently. Many, if not most, distros are based of off other more popular distros. The major differences that the average user notices are in what desktop environment the distro uses, and how/where software is managed and installed from.

Linux is built upon the ideas of Free Software. This doesn't mean only free in price, but also free as in "freedom". Free and Open Source software is software that's code is available to view and be contributed to by the pub

1: remote -> am.ik.archetype:maven-reactjs-blank-archetype (Blank Project for React.js)
2: remote -> am.ik.archetype:msgpack-rpc-jersey-blank-archetype (Blank Project for Spring Boot + Jersey)
3: remote -> am.ik.archetype:mvc-1.0-blank-archetype (MVC 1.0 Blank Project)
4: remote -> am.ik.archetype:spring-boot-blank-archetype (Blank Project for Spring Boot)
5: remote -> am.ik.archetype:spring-boot-docker-blank-archetype (Docker Blank Project for Spring Boot)
6: remote -> am.ik.archetype:spring-boot-gae-blank-archetype (GAE Blank Project for Spring Boot)
7: remote -> am.ik.archetype:spring-boot-jersey-blank-archetype (Blank Project for Spring Boot + Jersey)
8: remote -> at.chrl.archetypes:chrl-spring-sample (Archetype for Spring Vaadin Webapps)
9: remote -> br.com.address.archetypes:struts2-archetype (an archetype web 3.0 + struts2 (bootstrap + jquery) + JPA 2.1 with struts2 login system)
10: remote -> br.com.diogoko:maven-doclet-archetype (A Maven archetype to create Doclets for Javadoc)

File: \Common\Conf\config.php

// 站点配置
'SITE_TITLE' => SITE_TITLE,
'SITE_ADMIN' => SITE_ADMIN,
'SITE_ADMIN_PASS' => SITE_ADMIN_PASS,

// 数据库配置信息
'DB_TYPE' =&gt; 'mysql', // 数据库类型

前言

在 StackoverFlow 上找到 PHPBrew,据说是比较好的 PHP 版本管理工具 (最近在做项目的时候,貌似出现开发环境兼容问题,有可能是 Nginx 的问题,也有可能是PHP 的问题,还在调查中)。

github: https://github.com/phpbrew/phpbrew

Requirement