Skip to content

Instantly share code, notes, and snippets.

Chuck JS. Oh jinseokoh

Block or report user

Report or block jinseokoh

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
@jinseokoh
jinseokoh / Dockerfile
Created Dec 6, 2019
Dockerfile for NuxtJS Universal App
View Dockerfile
FROM node:13.2-alpine
# create destination directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# bundle app sources
COPY . /usr/src/app/
ENV NODE_ENV=local
@jinseokoh
jinseokoh / nginx.conf
Last active May 10, 2019
nginx config for Jenkins
View nginx.conf
server {
listen 80 default_server;
server_name localhost;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
@jinseokoh
jinseokoh / sample
Created Jan 6, 2019
/etc/nginx/sites-available/example.com
View sample
server {
listen 80;
listen [::]:80;
server_name example.com www.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
@jinseokoh
jinseokoh / post_larasail.sh
Last active Jan 6, 2019
fine tunes after larasail
View post_larasail.sh
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# Update Package Lists
apt-get update
apt-get upgrade -y
# Set locale
echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale
locale-gen en_US.UTF-8
@jinseokoh
jinseokoh / ResetPasswordController.php
Created Nov 10, 2018
app/Http/Controllers/Auth/ResetPasswordController.php for JWT
View ResetPasswordController.php
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
@jinseokoh
jinseokoh / RegisterController.php
Created Nov 10, 2018
app/Http/Controllers/Auth/RegisterController.php for JWT
View RegisterController.php
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
@jinseokoh
jinseokoh / ForgotPasswordController.php
Last active Nov 10, 2018
app/Http/Controllers/Auth/ForgotPasswordController.php for JWT
View ForgotPasswordController.php
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
@jinseokoh
jinseokoh / LoginController.php
Last active Nov 10, 2018
app/Http/Controllers/Auth/LoginController for JWT
View LoginController.php
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
@jinseokoh
jinseokoh / index.js
Last active Oct 21, 2019
laravel-vue-spa-blog-03
View index.js
import Vue from 'vue'
import store from '~/store'
import Meta from 'vue-meta'
import routes from './routes'
import Router from 'vue-router'
import { sync } from 'vuex-router-sync'
Vue.use(Meta)
Vue.use(Router)
@jinseokoh
jinseokoh / index.js
Created Oct 18, 2018
laravel-vue-spa-blog-02
View index.js
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
// Load store modules dynamically.
const requireContext = require.context('./modules', false, /.*\.js$/)
const modules = requireContext.keys()
.map(file =>
You can’t perform that action at this time.