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 / a.html
Created September 12, 2024 10:58
pdf html
<html style="color:green;" lang="en">
<head>
<title>Getting Started with Api2Pdf.com</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div class="row justify-content-md-center text-center">
<img src="https://api2pdf.wpenginepowered.com/wp-content/themes/api2pdf/assets/images/logo.png" />
</div>
@ducan-ne
ducan-ne / a.svg
Last active June 30, 2024 15:18
resvg-mem-usage.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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,
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,
@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,