Tipo de Timeout | Dev/Test | Produção | Crítico (Low Latency) | Parâmetro Ruby on Rails | Parâmetro Oracle 23ai |
---|---|---|---|---|---|
Conexão | 5s | 3s | 2s | connect_timeout: |
SQLNET.OUTBOUND_CONNECT_TIMEOUT |
Query/Statement | 15s | 10s | 5s | sql_timeout: |
STATEMENT_TIMEOUT |
Transação | 60s | 30s | 15s | timeout: (no código) |
_TX_TIMEOUT (parâmetro oculto) |
Pool Idle | 5min | 1min | 30s | idle_timeout: |
- |
Inatividade Sessão | 120min | 30min | 15min | - |
Discover gists
This file contains hidden or 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 env from "@beam-australia/react-env"; | |
import { useRouter } from "next/router"; | |
import useSWR, { Middleware } from "swr"; | |
import apiFetcher, { APIError } from "utils/apiFetcher"; | |
/** | |
* useAPI is a lightweight wrapper around (useSWR)[https://swr.vercel.app/docs/data-fetching] that | |
* provides basic defaults for the API hostname per-env & handles auth errors via the fetcher used | |
*/ | |
const useAPI = <T>(path: string | null, middlewares?: Middleware[]) => { |
This file contains hidden or 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 { APIError } from "utils/apiFetcher"; | |
import useToast from "./useToast"; | |
import { captureException } from "@sentry/nextjs"; | |
import { max32BitInt, standardErrorMessage } from "config/constants"; | |
import { useCallback } from "react"; | |
const commonAPIErrorKeys = ["non_field_errors", "Invalid operation", "message"]; | |
export const errorObjHasCommonKey = (errorObj: Record<string, unknown>) => { | |
return Object.keys(errorObj).find((errorKey) => |
This file contains hidden or 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
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
docker run --platform linux/arm64/v8 -it satmandu/raspios:lite bash |
This file contains hidden or 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
{ | |
"description": "Flujo para inversión automática: solo se ejecuta cuando carga el celular.", | |
"blocks": [ | |
{ | |
"id": "battery", |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
API-Based Pidgin Corpus Builder | |
Uses proper APIs instead of scraping | |
""" | |
import os | |
import time | |
import json | |
import logging |
This file contains hidden or 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
Log uploaded on Monday, July 21, 2025, 11:10:10 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.4.0]: 0Harmony(2.3.6), HarmonyMod(2.3.4) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Auto links(automatic.autolinks): 0Harmony(av:2.3.6,fv:2.0.2), Autolinks(1.0.379.18) | |
Clean Textures(IH.Clean.Textures): (no assemblies) | |
Food Poisoning Stack Fix (Continued)(Mlie.FoodPoisoningStackFix)[mv:1.6.0]: Food_Poisoning_Stack_Fix(0.0.0) | |
Food Texture Variety Core(Goat.Food.Texture.Variety.Core): FoodTextureVariety(1.0.0) | |
Food Texture Variety - Replacement(Goat.Food.Texture.Variety.Replacement): (no assemblies) |
This file contains hidden or 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
2025-07-21 14:24:10,485 5680 [DEBUG] - XmlConfiguration is now operational | |
2025-07-21 14:24:10,687 5680 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,687 5680 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,707 5680 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,719 5680 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,719 5680 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,749 5680 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,766 5680 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-07-21 14:24:10,766 5680 [DEBUG] - Adding new typ |
Deploy Django and React APP in a production VPS (Django + React + PostgreSQL + NGINX + Ubuntu Server)
Assuming You have backend and frontend codes in /home/backend
and /home/frontend/
(Use git to upload)
sudo apt-get update
sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<files> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\koncierge.nupkg" checksum="135A321609160D1C1B71098DF6784D98" /> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\koncierge.nuspec" checksum="BEC86BE8B3C7EF49AC2BDC7B2B634610" /> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\Koncierge_1.0.10_Windows_x86_64.zip.txt" checksum="956592EF3023021E95EE905543C5A148" /> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\tools\chocolateyinstall.ps1" checksum="DFC27666451ECEE9E514D73B3CF6E429" /> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\tools\Koncierge.exe" checksum="42EBF627FE26EF8A582EA444080555A6" /> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\tools\LICENSE" checksum="21F407FB9FD40AA940CC351DFF19D031" /> | |
<file path="C:\ProgramData\chocolatey\lib\koncierge\tools\README.md" checksum="EBF14782B4 |
NewerOlder