Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / Dockerfile
Last active April 19, 2024 13:40
Preparar imagen de Docker - Node App
# Install dependencies only when needed
FROM node:18-alpine3.15 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Build the app with cache dependencies
FROM node:18-alpine3.15 AS builder
@scriptdev
scriptdev / .html
Last active April 19, 2024 13:40
OCULTAR A COMBO DA UNIDADE NO LOGIN (Builder Theme) ADIANTI BUILDER
<!-- app/templates/theme-builder/login.html -->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
{LIBRARIES}
{LIBRARIES_THEME}
@qoomon
qoomon / conventional_commit_messages.md
Last active April 19, 2024 13:39
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@trongnghia203
trongnghia203 / install_pyenv.md
Last active April 19, 2024 13:37
Install pyenv
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:37
APLICAR BORDA AZUL DO CAMPO PADRÃO DO BOOTSTRAP
<?php
$css = "
.form-control:focus {
box-shadow: 0 0 5px #66afe9;
border-color: #66afe9;
}
";
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:35
AUDIO REGISTRO SALVO
<?php
public function onSave($param = null)
{
$object->store();
TTransaction::close();
TToast::show('success', "REGISTRO SALVO COM SUCESSO!", 'center', 'far:check-circle');
@mrflobow
mrflobow / nextcloud_backup.sh
Last active April 19, 2024 13:35
Unraid Nextcloud Backup Script
#!/bin/bash
#
######### UNRAID Nextcloud Backup Script #########
#
#Created for Nextcloud Linuxserver.io Container
#
#Update the params to meet your requirements
#
##################################################
@dnburgess
dnburgess / gist:80c566ef7b36dc09301a4173a29d7880
Last active April 19, 2024 13:35
DB Tech Valheim Server
---
version: '2'
services:
valheim:
image: lloesche/valheim-server
container_name: valheim
restart: always
environment:
- SERVER_NAME=
- WORLD_NAME=
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:33
APLICAR CSS NO FORMULÁRIO
<?php
$css = '
div[page-name="ClienteForm"] {
font-family: "Segoe UI",Helvetica,Arial,sans-serif !important;
font-size: 14px !important;
color: #3fb950 !important;
}
';