Skip to content

Instantly share code, notes, and snippets.

View luthviar's full-sized avatar

Luthfi Abdur Rahim luthviar

View GitHub Profile
@luthviar
luthviar / bootstrap.sh
Last active October 12, 2026 04:30
DeepSeek Harness on labs.playdev.online (PlayDev/PWD) — self-serve bootstrap: login gate + BYOK LLM keys + auto-update dsh
#!/bin/sh
set -e
echo "[bootstrap] start: $(date)"
CWD=$(pwd)
if [ -n "${DSH_DATA_DIR:-}" ]; then D="$DSH_DATA_DIR"
elif [ "${CWD#/home/pwduser/data/}" != "$CWD" ] && [ -d "$CWD" ]; then D="$CWD"
else D=/home/pwduser/data/deepseek-harness; fi
mkdir -p "$D/app"
echo "[bootstrap] cwd=$CWD data_dir=$D"
  1. go to this path and make file for it: ~/.config/opencode/opencode.json
  2. use below for non-coding plan byteplus:
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "arkv3": {
      "npm": "@ai-sdk/openai-compatible",
 "options": {
@luthviar
luthviar / cyberpunk.html
Created January 12, 2026 08:27
cyberpunk.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Cyberpunk Particle System</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
//
// ContentView.swift
// TurnBulbLight
//
// Created by Luthfi Abdurrahim on 25/11/25.
//
import SwiftUI
struct ContentView: View {
//
// ContentView3.swift
// Mon10nov
//
// Created by Luthfi Abdurrahim on 10/11/25.
// sourece: https://github.com/copilot/c/32f66827-e081-447d-9f57-a9b61d82177a
import Foundation
// MARK: - API Models (based on provided JSON)
//
// ContentView.swift
// Try14Oct2025
//
// Created by Luthfi Abdurrahim on 14/10/25.
//
import SwiftUI
struct ContentView: View {
@luthviar
luthviar / VideoClipsPlayerScreen.swift
Last active October 8, 2025 08:47
VideoClipsPlayerScreen.swift
//
// ContentView26Playback.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 08/10/25.
//
import UIKit
import AVFoundation
import SwiftUI
struct ShippingInfoCardV2: View {
/// Sample data (replace with your real bindings/models)
let recipientName: String
let phoneNumber: String
let shippingAddress: String
/// UI states (UI-only interactions)
@State private var isAddressExpanded: Bool = false
@luthviar
luthviar / TransferKnowledgeSwiftUIEfficiency.swift
Last active September 23, 2025 03:43
TransferKnowledgeSwiftUIEfficiency.swift
// Analyze & Result - 1. ViewBuilder
// BEFORE - without ViewBuilder
struct MyStack<Content: View>: View {
let content: () -> Content // no @ViewBuilder here
var body: some View {
VStack {
content()
}
}
@luthviar
luthviar / SimpleToastSwiftUI+UIKitReliable.swift
Last active September 18, 2025 06:23
SimpleToastSwiftUI+UIKitReliable.swift
//
// ContentView22.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 18/09/25.
//
import SwiftUI
import Combine
import UIKit