This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"flightId": "3CgbWE8IWKZ+gnQ0cDFUPt5kFvsTxXQf/Vm7GopIqrumJ6ePbfJ+Y4e6AG7nW8vj8gKS1xons+IfK2wSLPxuXV7P8Rjwg8XOI8Eah54nPMbZ9nar0aKcRW4vJqkVUZoYevyZzXJ5Uj9awP/rE7x8mM5DDzdcfqAIwXegbVJ0Ho1PC1CMcKpSwYXlhE3wxDkIx+bPMxOyK8KKZ+XNBANL7xU+6GqjbSD9lv6wvYnS8uU=", | |
"departureAirport": "CGK", | |
"arrivalAirport": "DPS", | |
"numOfTransits": "0", | |
"journeys": [ | |
{ | |
"segments": [ | |
{ | |
"flightCode": "QZ-810", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable react/display-name */ | |
import { Button, Checkbox, Grid, LoadingOverlay, Modal } from '@mantine/core'; | |
import { useForm, zodResolver } from '@mantine/form'; | |
import { showNotification } from '@mantine/notifications'; | |
import { IconCheck, IconX } from '@tabler/icons-react'; | |
import { useImperativeHandle, useState, forwardRef } from 'react'; | |
import { z } from 'zod'; | |
import Permission from '@easytool/react-permission'; | |
import PermissionDeniedModal from '@/components/Extra/PermissionDeniedModal'; | |
import useTranslation from 'next-translate/useTranslation'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import upload from "../lib/upload"; | |
// const UPLOADS_DIR = "./public"; | |
// const indexUser = async (c) => { | |
// return c.json({ message: "User Index" }); | |
// }; | |
const storeUser = async (c) => { | |
const body = await c.req.parseBody(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM couchdb:latest | |
COPY local.ini /opt/couchdb/etc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; CouchDB Configuration Settings | |
; Custom settings should be made in this file. They will override settings | |
; in default.ini, but unlike changes made to default.ini, this file won't be | |
; overwritten on server upgrade. | |
[chttpd] | |
bind_address = "0.0.0.0" | |
[httpd] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getUserDataWithPermission = async (res, token) => { | |
const permissionList = await db.transaction(async (tx) => { | |
const roleName = await tx.query.role.findFirst({ where: eq(role.id, getUserRoleID) }); | |
if (!roleName) { | |
return res.status(401).json({ message: 'User Not Role' }); | |
} | |
const rolePermissions = await tx.query.role_permission.findMany({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Back up database | |
run-name: Task | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
workflow_dispatch: | |
jobs: | |
backup: | |
runs-on: ubuntu-latest | |
env: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; | |
types_hash_max_size 2048; | |
# server_tokens off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add custom Theme Functions here | |
// $myrows = $wpdb->get_results( "SELECT ID, post_name FROM {$wpdb->prefix}posts" ); | |
// $results = $wpdb->get_results( "SELECT id FROM {$wpdb->prefix}frm_items", OBJECT ); | |
// $latestID = $wpdb->get_var( 'SELECT id FROM ' . $wpdb->prefix . 'frm_items' . ' ORDER BY id DESC LIMIT 1'); | |
// print_r((int)$latestID); | |
function custom_css() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 1024; | |
# multi_accept on; | |
} |
NewerOlder