Skip to content

Instantly share code, notes, and snippets.

View redbaty's full-sized avatar

Marcos Cordeiro redbaty

  • Andbank
  • São Paulo, Brazil
  • 00:41 (UTC -03:00)
View GitHub Profile
@aradalvand
aradalvand / DockerfileForSvelteKit.md
Last active September 18, 2024 15:31
Dockerfile and .dockerignore for SvelteKit:

*This Dockerfile is intended for SvelteKit applications that use adapter-node. So, the Dockerfile below assumes that you have already installed and configured the adapter.

Dockerfile:

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
@LeyTT
LeyTT / tabelas_sinacor
Created April 2, 2020 14:45
Tabelas Sinacor
Prefixo das Tabelas
TSC = Clientes
TCC = Conta Corrente
TTS = Tesouraria
TOR = Ordens Bolsa
TBO = Faturamento Bolsa
TCA = Controle de Acesso
TMF = Faturamento de BM&F
TCF = Custodia
TGE = Controle de Empresas
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Extensions.Caching.Memory
{
/// <summary>
/// Thread safe version of GetOrCreate(Async) using Interlocked
/// </summary>
//Inspired by https://gist.github.com/ttrider/a5ae8fc86ccfe6a4243f4481a5858a80
//Thread safe, Lazy based wrapper for IMemoryCache. Supports multiple IMemoryCache instances
using System;
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Microsoft.Extensions.Caching.Memory
{
@negz
negz / kubedump.sh
Last active July 11, 2024 10:57
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@rxaviers
rxaviers / gist:7360908
Last active September 22, 2024 02:51
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: