Skip to content

Instantly share code, notes, and snippets.

View jukbot's full-sized avatar
🏠
Working from home

Juk - a search builder jukbot

🏠
Working from home
  • CalCal
  • Bangkok, Thailand
  • X @jukbot
View GitHub Profile
@jukbot
jukbot / [...nextauth].ts
Last active March 11, 2024 03:20
Sample Line Login v2.1 with NextAuth.js
// Learn more https://next-auth.js.org/configuration/providers
import type { NextApiRequest, NextApiResponse } from 'next'
import NextAuth from 'next-auth'
import Providers from 'next-auth/providers'
const options = {
providers: [
Providers.Facebook({
clientId: process.env.FACEBOOK_ID,
@jukbot
jukbot / LearnGoIn5mins.md
Created January 11, 2021 15:05 — forked from prologic/LearnGoIn5mins.md
Learn Go in ~5mins
{
"workbench.iconTheme": "vscode-icons",
"javascript.updateImportsOnFileMove.enabled": "always",
"javascript.implicitProjectConfig.experimentalDecorators": true,
"workbench.colorTheme": "Dracula Soft",
"explorer.confirmDelete": false,
"terminal.integrated.shell.osx": "/usr/local/bin/fish",
"sync.autoUpload": true,
"sync.gist": "jukbot",
"files.autoSave": "onFocusChange",
@jukbot
jukbot / docker-compose.yml
Last active February 23, 2019 22:22
Graylog 3 docker compose sample (recommended for 2 cores 4 gb)
version: '2'
services:
mongodb:
container_name: mongodb
image: mongo:3
restart: on-failure
volumes:
- mongo_data:/data/db
elasticsearch:
{
"editor.smoothScrolling": true,
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatter.html": "js-beautify-html",
"editor.formatOnSave": false,
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"eslint.validate": [{
"language": "vue",
"autoFix": true
@jukbot
jukbot / clean-up-boot-partition-ubuntu.md
Created June 28, 2018 05:22 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
{
"sid": "57130500244",
"full_name": "Chukkrit Visitsaktavorn",
"department": "Computer Science",
"faculty": "School of Information Technology",
"university": "KMUTT",
"organization": "www.sit.kmutt.ac.th",
"certificates": [
{
"title": "IBM Watson Workshop",
@jukbot
jukbot / google-chart-styles.html
Created March 13, 2018 20:43
Google chart web component timeline hover patch
<dom-module id="google-chart-styles">
<template>
<style>
:host .google-visualization-tooltip-action:hover {
background-color: #eeeeee;
}
:host .google-visualization-tooltip {
border:solid 1px #bdbdbd;
border-radius: 2px;
@jukbot
jukbot / config.yml
Created March 6, 2018 10:30
CircleCi
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
working_directory: ~/bluezebra
docker:
# specify the version you desire here
@jukbot
jukbot / README.md
Created February 8, 2018 17:08 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version