Hex | Color |
---|---|
#2e2e2e |
Background |
#797979 |
Comments |
#d6d6d6 |
White |
#e5b567 |
Yellow |
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
#!/usr/bin/env bash | |
PATH=$PATH:/home/nginx/.bun/bin | |
bun install | |
bun run build |
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
#!/bin/sh | |
NAME="agrocomm" | |
CONTAINER="${NAME}_postgres" | |
SCRIPT_PATH="$(dirname "$(realpath "$0")")" | |
PROJECT_PATH="$(dirname $SCRIPT_PATH)" | |
VISUAL="${VISUAL:-code}" | |
BROWSER="${BROWSER:-firefox}" | |
p_flag=false |
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
// db.ts | |
import * as schema from "./schema" | |
export const db = drizzle(connection, { schema }) | |
//reset.ts | |
async function reset() { | |
const tableSchema = db._.schema | |
if (!tableSchema) { | |
throw new Error("No table schema found") |
I just migrated my repositories from BitBucket to GitHub but, suddenly, I received an interesting error when I tried to push a repo with some large files inside.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage — https://git-lfs.github.com.
remote: error: Trace: b5116d865251981c96d4b32cdf7ef464
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File fixtures/11_user_answer.json is 131.37 MB; this exceeds GitHub’s file size limit of 100.00 MB
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
export async function ultimaDataUtil(): Date { | |
const path = import.meta.dir + "/../json/feriados.json"; | |
const file = Bun.file(path); | |
const { feriados } = await file.json(); | |
let dataAtual = new Date(); | |
while (true) { | |
const dataFormatada = `${dataAtual.getFullYear()}-${(dataAtual.getMonth() + 1).toString().padStart(2, '0')}-${dataAtual.getDate().toString().padStart(2, '0')}`; | |
const dataFeriado = new Date(dataFormatada); | |
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
[Unit] | |
Description=FiveM Server | |
[Service] | |
Type=oneshot | |
User=ubuntu | |
WorkingDirectory=/opt/fivem | |
ExecStart=/opt/fivem/fivem.sh | |
ExecStop=/usr/bin/tmux kill-session -t fivem | |
RemainAfterExit=yes |
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
#!/bin/sh | |
# PROVIDE: nodejs | |
# REQUIRE: NETWORKING SERVERS DAEMON | |
# BEFORE: LOGIN | |
# File: /etc/rc.d/nodejs | |
# https://docs.freebsd.org/en/articles/rc-scripting | |
# https://man.freebsd.org/cgi/man.cgi?query=daemon |
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
# Arquivo de configuração do Telegram Bot API Server | |
local = false | |
log = /var/log/telegram-bot-api.log | |
verbosity = 2 |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
NewerOlder