Skip to content

Instantly share code, notes, and snippets.

<?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;
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:
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
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",
},
@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": {},
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
copy ssh
$ssh-copy-id indra@192.168.2.235
install docker
$ sudo apt update
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$ echo "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
@indraAsLesmana
indraAsLesmana / dev .zshrc
Created July 12, 2024 00:08
terminal running well flutter, py, firebase cli, cloudflare cli, php, node etc
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/indralesmana/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/indralesmana/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/indralesmana/miniconda3/etc/profile.d/conda.sh"
else