Skip to content

Instantly share code, notes, and snippets.

View ducan-ne's full-sized avatar
🏠
Working from home

Đức An ducan-ne

🏠
Working from home
View GitHub Profile
@ducan-ne
ducan-ne / sqld.yaml
Created December 31, 2023 16:50
sqld.yaml
version: "3.9"
services:
sqlite:
image: ghcr.io/libsql/sqld:latest
volumes:
- ./data:/var/lib/sqld
environment:
- SQLD_NODE=primary
ports:
- "6001:8080"
@ducan-ne
ducan-ne / supabase-cache-cloudflare-worker.ts
Created December 31, 2023 16:10
supabase-cache-cloudflare-worker.ts
function withCacheSupabase(ttl: number) {
return createClient('https://myurl', '.....', {
global: {
fetch(url, options) {
return fetch(url, {
...options,
cf: {
cacheTtl: ttl,
cacheEverything: true,
},
@ducan-ne
ducan-ne / an.latex
Last active July 24, 2023 09:25
alo alo
We couldn’t find that file to show.
@ducan-ne
ducan-ne / a.json
Last active June 16, 2023 15:50
aaaaa
This file has been truncated, but you can view the full file.
{
targets: {
sprites: {
undefined: {
order: 0,
id: 'RDeIgYRW%onqx19:_~7=',
name: 'Sprite1',
isStage: false,
x: 11,
y: -85,
This file has been truncated, but you can view the full file.
{
targets: {
sprites: {
undefined: {
order: 0,
id: 'RDeIgYRW%onqx19:_~7=',
name: 'Sprite1',
isStage: false,
x: 11,
y: -85,
@ducan-ne
ducan-ne / Caddyfile
Last active December 24, 2023 17:45
Dockerfile "zero-config" over 35 frameworks. "One Dockerfile to rule them all"
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
@ducan-ne
ducan-ne / abc2.json
Last active February 27, 2022 15:47
abcccc
{
"name":"TESTOOR #anan",
"symbol":"TESTOOR",
"description":"tests the shit out of everything",
"seller_fee_basis_points":500,
"image":"https://ipfs.io/ipfs/QmcSdKMcJmkbY4J7EkNTUDbEPa6Tj2QM7tDZFATghXAU9k",
"external_url":"nftarmory.me",
"edition":"2021",
"attributes":[
{
@ducan-ne
ducan-ne / agone.yml
Last active December 4, 2021 18:11
xrengine config
# Copyright 2018 Google LLC All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@ducan-ne
ducan-ne / android.txt
Last active October 13, 2021 02:22
my user-agent
Mozilla/5.0 (Linux; Android 9; vivo 1906) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 11; SM-A705F Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/92.0.4515.115 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/329.0.0.29.120;]
Mozilla/5.0 (Linux; Android 6.0.1; SM-G532G Build/MMB29T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/325.0.0.36.170;]
Mozilla/5.0 (Linux; Android 9; vivo 1916 Build/PKQ1.190626.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.120 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/326.0.0.34.120;]
Mozilla/5.0 (Linux; Android 10; CPH1819 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/90.0.4430.210 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/325.0.0.36.170;]
Mozilla/5.0 (Linux; Android 10; CPH2179 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: ssl@clgt.io