Skip to content

Instantly share code, notes, and snippets.

confusion about path sdk using FVM, about global env, and per project:
https://github.com/leoafarias/fvm/issues/599
will fix with this:
export FLUTTER_HOME="$HOME/fvm/default"
proxy_flutter() {
local flutter_exec
if [[ -x "./.fvm/flutter_sdk/bin/flutter" ]]; then
@indraAsLesmana
indraAsLesmana / devcontainer.json
Created July 22, 2024 01:05
dev container config web development
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/go:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/php:1": {},
Build docker image, production React + Typescript + Tailwinds + ViteJS
add to vite.config.ts:
server: {
port: 9393,
strictPort: true,
host: true,
origin: "http://0.0.0.0:9393",
},
Only tunneling locally with cloudflared to make wildcard DNS work
cloudflared tunnel create <NAME> // eg. h96max this will generate id and credentials file json
##config.yml @ /.cloudflared
tunnel: 7d9f46b3-xxxx-4df9-xxxx-cc0417xxxx
credentials-file: /home/indra/.cloudflared/7d9f46b3-xxxx-4df9-xxxx-cc0417xxxx.json
ingress:
- hostname: cl.tutor93.com
service: https://localhost:8000
Install Armbian bookworm on S905x4 | AX810 tvbox
1. flash img to SDcard with BalenaAtcher
2. unplug sdcard, and plug again to laptop to show drive name "BOOT"
3. edit enEnv.ext from FDT=/dtb/amlogic/meson-gxl-s905x-b860h.dtb to FDT=/dtb/amlogic/meson-sc2-s905x4-akari-ax810.dtb
4. edit extlinux.conf.bak to "fdt /dtb/amlogic/meson-sc2-s905x4-akari-ax810.dtb"
5. delete u-boot.ext
6. insert SDcard to tvbox.
post install:
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use Filament\Models\Contracts\FilamentUser;

NFS Auto Mount Guide

Automount ensures that the NFS share is mounted only when accessed, reducing dependency on startup timing.

Steps to Set Up NFS Auto Mount

1. Install Systemd Autofs

sudo apt install nfs-common

Install Necessary Tools on CentOS

This guide provides a summary of the commands to install necessary tools and utilities on a CentOS server after a fresh installation.


1. Update and Upgrade the System

Keep the system updated to ensure you have the latest patches and features:

sudo yum update -y
@indraAsLesmana
indraAsLesmana / .aerospace.toml
Last active February 10, 2025 21:37
my aerospace setup
# Place a copy of this config to ~/.aerospace.toml
# After that, you can edit ~/.aerospace.toml to your liking
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
# You can use it to add commands that run after AeroSpace startup.
# 'after-startup-command' is run after 'after-login-command'