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
@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.

/**
* @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 / 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\Category;
use Illuminate\Http\Request;
class CategoryController extends Controller
{
public function apiIndex()
<?php
namespace App\Http\Controllers;
use App\Models\Post;
use Illuminate\Http\Request;
class PostController extends Controller
{
public function apiIndex()
@silkyland
silkyland / UserController.php
Created February 20, 2021 12:18
UserController create, update, delete
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
class UserController extends Controller
{
@silkyland
silkyland / api.php
Created February 20, 2021 11:58
Api Auth Login, register, me, logout
<?php
use App\Http\Controllers\AuthController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
@silkyland
silkyland / AuthController.php
Last active February 20, 2021 11:57
Api Authentication
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\ValidationException;
class AuthController extends Controller
@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