Skip to content

Instantly share code, notes, and snippets.

View aikchun's full-sized avatar
🎯
Focusing

Aik Chun aikchun

🎯
Focusing
View GitHub Profile
@aikchun
aikchun / settings.json
Last active May 27, 2023 06:54 — forked from chidea/settings.json
Seoul256 color scheme for Windows Terminal
{
"schemes" :
[
{
"name" : "Seoul256",
"background" : "#545454",
"foreground" : "#d0d0d0",
"cursorColor" : "#d0d0d0",
"brightBlack" : "#626262",
"brightRed" : "#d68787",
@aikchun
aikchun / restful_routes.md
Created August 10, 2018 07:07 — forked from alexpchin/restful_routes.md
7 Restful Routes
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
@aikchun
aikchun / gist:cdf494641c1893330f29e40f12a4bb19
Created June 20, 2017 15:44 — forked from evildmp/gist:3094281
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

@aikchun
aikchun / .env.travis
Created July 20, 2016 23:18 — forked from gilbitron/.env.travis
Laravel 5 Travis CI config
APP_ENV=testing
APP_KEY=SomeRandomString
DB_CONNECTION=testing
DB_TEST_USERNAME=root
DB_TEST_PASSWORD=
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_DRIVER=sync
#!/bin/bash
###
#
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea
# Copyright (c) 2011 Cake Development Corporation (http//cakedc.com)
#
# Ubuntu 12.10 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#
@aikchun
aikchun / 0_reuse_code.js
Created December 1, 2013 07:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
public function successfulSomething($data) {
$email = $this->email;
$email->subject('You have successfully done something:' . $data['title']);
$email->template('successful_done');
// This is outdated
// $email->sendAs = 'text';
$email->emailFormat('html'); // This will allow the view to use html tags to be reflected in the email.
$email->viewVars(array('data' => $data); // set multiple variables into email view.
#!/bin/bash
###
#
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea
# Copyright (c) 2011 Cake Development Corporation (http//cakedc.com)
#
# Ubuntu 12.10 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#