Skip to content

Instantly share code, notes, and snippets.

View silkyland's full-sized avatar
💭
On time

Bundit Nuntates silkyland

💭
On time
View GitHub Profile

การตั้งค่า Environment

เพื่อเริ่มพัฒนาด้วย Flutter เราจำเป็นต้องตั้งค่า Environment บนเครื่องคอมพิวเตอร์ ซึ่งรวมถึงการติดตั้งเครื่องมือที่จำเป็นและกำหนดค่าระบบ โดยทำตามขั้นตอนเหล่านี้:

การติดตั้ง Flutter SDK

1. การติดตั้ง Flutter SDK บนระบบปฏิบัติการ Windows

ความต้องการของระบบ

@silkyland
silkyland / เตรียมพร้อมสำหรับการพัฒนา Flutter.md
Last active May 7, 2024 09:18
เตรียมพร้อมเครื่องมือสำหรับการพัฒนา Flutter

เครื่องมือสำหรับการพัฒนา Flutter

เตรียมความพร้อม

การติดตั้ง Homebrew บนระบบปฏิบัติการ Mac

เปิด Application Terminal บน Mac แล้วพิมพ์

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@silkyland
silkyland / navicat_premium_15_download.md
Last active April 5, 2024 05:36
This gist provides a direct download link for Navicat Premium 15, a popular database management tool used by developers, database administrators, and data analysts. The download link directs the user to a DMG file, which is the disk image format used on macOS. Navicat Premium 15 offers a range of features including data modeling, data synchroniz…

Navicat Premium direct link Direct download link for Navicat Premium 15: https://download3.navicat.com/download/navicat150_premium_en.dmg

Navicat Premium 15 is a popular database management tool used by developers, database administrators, and data analysts. It offers a range of features including data modeling, data synchronization, backup and restore, and a user-friendly interface for managing databases across multiple platforms such as MySQL, PostgreSQL, Oracle, and SQL Server. This DMG file is suitable for macOS users.

@silkyland
silkyland / strToThaiSlug.js
Last active January 20, 2024 19:15
Convert string to slug in Thai language for SEO Friendly in JavaScript
/**
* Translates a string to a Thai slug format.
* @param {string} inputString - The string to translate.
* @returns {string} The translated string.
*/
function toThaiSlug(inputString) {
// Replace spaces with hyphens
let slug = inputString.replace(/\s+/g, '-');
// Translate some characters to Thai
@silkyland
silkyland / fixnotify.txt
Last active November 28, 2023 16:06
A problem occurred configuring project ':app', Failed to notify project evaluation listener, javax/xml/bind/annotation/XmlSchema
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> javax/xml/bind/annotation/XmlSchema
--
If you got error like above that mean "You are using JDK higher than graddle need eg. You install JDK 9 it should be 8"
How to fix:
1) Remove JDK version 9 by
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2023 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@silkyland
silkyland / CertStorageError.MD
Last active February 23, 2023 09:04
[Solved] CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink

[Solved] CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink

  rm -rf /etc/letsencrypt/live/{yourdomain.com}
  rm -rf /etc/archive/{yourdomain.com}
  rm -rf /etc/renewal/{yourdomain.com}

and

@silkyland
silkyland / main.dart
Created August 4, 2021 16:50
[Dart Lang] Algorithm : แสดงผลรูปหัวใจ และ เลื่อนรูปหัวใจลงทีละ step
void main() {
for (var i = 0; i <= 5; i++) {
show(i);
}
}
void show(int n) {
// กำหนด list ของจุดค่าเริ่มต้น
print("Step ที่ " + n.toString() + " : ");
@silkyland
silkyland / docker-compose.yml
Last active March 3, 2021 04:04
Mariadb + PhpMyAdmin docker-compose.yml
version: '3.1'
services:
db:
image: mariadb
restart: always
ports:
- 3306:3306
environment:
<?php
namespace App\Http\Controllers;
use App\Models\Post;
use Illuminate\Http\Request;
class PostController extends Controller
{
public function apiIndex()