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 / thaiProvince.tsx
Created April 21, 2021 14:11
Thai Provinces
export const provinces = [
{ PROVINCE_ID: 1, PROVINCE_CODE: '10', PROVINCE_NAME: 'กรุงเทพมหานคร', GEO_ID: 2 },
{ PROVINCE_ID: 2, PROVINCE_CODE: '11', PROVINCE_NAME: 'สมุทรปราการ', GEO_ID: 2 },
{ PROVINCE_ID: 3, PROVINCE_CODE: '12', PROVINCE_NAME: 'นนทบุรี', GEO_ID: 2 },
{ PROVINCE_ID: 4, PROVINCE_CODE: '13', PROVINCE_NAME: 'ปทุมธานี', GEO_ID: 2 },
{ PROVINCE_ID: 5, PROVINCE_CODE: '14', PROVINCE_NAME: 'พระนครศรีอยุธยา', GEO_ID: 2 },
{ PROVINCE_ID: 6, PROVINCE_CODE: '15', PROVINCE_NAME: 'อ่างทอง', GEO_ID: 2 },
{ PROVINCE_ID: 7, PROVINCE_CODE: '16', PROVINCE_NAME: 'ลพบุรี', GEO_ID: 2 },
{ PROVINCE_ID: 8, PROVINCE_CODE: '17', PROVINCE_NAME: 'สิงห์บุรี', GEO_ID: 2 },
{ PROVINCE_ID: 9, PROVINCE_CODE: '18', PROVINCE_NAME: 'ชัยนาท', GEO_ID: 2 },
@jukbot
jukbot / my.cnf
Created April 6, 2021 19:05 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated February 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@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 / sanfrancisco-font.css
Created August 7, 2016 18:38 — forked from bivainis/sanfrancisco-font.css
San Francisco Web Font
/**
* http://applemusic.tumblr.com/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2");
}
@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;