Skip to content

Instantly share code, notes, and snippets.

// Data dari frontend (form) ke backend
{
"country": "Indonesia",
"cities": "Bali, Jakarta, Surabaya",
"person": {
"type": "Group",
"amount": "15"
},
"accommodation": "3-star",
"duration": "5",
{
title: "Pullman Jakarta",
location: "Thamrin, CBD, Jakarta",
stars: "5",
distance: "6.5 km",
image: "hotel-pullman.jpg",
link: "/",
// di bawah ini tambahan
images: [
"hotel-pullman.jpg",
[
{
day: "1",
lists: [
{
"theme": {
"en": "Exploring the Cosmic Wonders: A Journey through Space and Time",
"id": "Menjelajahi Keajaiban Kosmis: Perjalanan melalui Ruang dan Waktu"
},
"speakers": [
[
{
"day": "1",
"details: [
{
"title": "",
"description: "",
"time": "10.00-12.00",
"location": "",
"sessions": [
[
{
"day": 1,
"time: [ // rows (time.length === rows)
"09.00",
"10.00",
"11.00",
...
],
columns: 4,
{
title: 'E-Visa on Arrival',
description:
'E-Visa on Arrival, there are 92 countries that is eligible to obtain VOA/EVOA. This visa is a single entry visit visa and will allow its holder to stay for 30 days and can be extended maximum 1 time for another 30 days. This visa is eligible to use for both tourism and business purpose (business meeting, attending conference/exhibition, exploring investment opportunities).',
validity: '90',
stay_duration: '30',
extension: 'Maximum 1x (+30 days/extension)',
requirement: [
'Scan Passport with minimum 6 months validity',
'Passport-style photo',
[
{
title: "T-shirt",
category: "T-shirt",
size: "S, M, L, XL, XL+",
details: "Testing details",
price: "100.000",
images: ['/merch/t-shirt.jpg', '/merch/t-shirt-2.jpg']
},
{
@rizalrenaldi
rizalrenaldi / supabase_api_auth.sql
Created November 19, 2022 13:22 — forked from FelixZY/supabase_api_auth.sql
How to configure Supabase (https://supabase.com/) to generate and accept API tokens.
-- Token Based API Access for Supabase
--
-- How to configure Supabase (https://supabase.com/) to generate and accept API tokens.
--
-- (c) 2022 Felix Zedén Yverås
-- Provided under the MIT license (https://spdx.org/licenses/MIT.html)
--
-- Disclaimer: This file is formatted using pg_format. I'm not happy with the result but
-- prefer to follow a tool over going by personal taste.
--
@rizalrenaldi
rizalrenaldi / charge-lnd_lnshell_umbrel.md
Last active March 25, 2024 22:01
My charge-lnd setup with Lightning Shell in Umbrel

I've tested this script and workflow on Umbrel, and it works. See resource/credit at the end.

1. SSH to Umbrel

ssh -t umbrel@umbrel.local, and login with your password

2. Create config/policy file

Read more about charge-lnd here.

First step is to create charge-lnd config/policy file charge-lnd.config, and put it in /mnt/data/umbrel/app-data/lightning-shell/data

[default]
strategy = static
base_fee_msat = 0
fee_ppm = 97
[beginner-node]
# set lower fees on channels with smaller peers, that have few channels (4-8 ch$
# and limited node size (max_capacity=1_000_000)
node.max_capacity = 1_000_000
node.min_channels = 4