Skip to content

Instantly share code, notes, and snippets.

View caioagiani's full-sized avatar
💼
Working at home

Caio Agiani caioagiani

💼
Working at home
View GitHub Profile
@caioagiani
caioagiani / rails http status codes
Created June 1, 2023 16:38 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
function getFonts() {
const fontArray = [
"sans-serif-thin",
"ARNO PRO",
"Agency FB",
"Arabic Typesetting",
"Arial Unicode MS",
"AvantGarde Bk BT",
"BankGothic Md BT",
"Batang",
import psycopg2
from tqdm import tqdm
db_config = {
'dbname': 'levante_web',
# 'user': 'seu_usuario',
# 'password': 'sua_senha',
'host': 'localhost',
'port': '5432'
}
server {
listen *:80;
listen *:443 ssl http2;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:30m;
ssl_session_timeout 10m;
ssl_certificate /home/cloudflare/cer.crt;
#!/bin/bash
# chmod +x gitlab-environments.sh
# ./gitlab-environments.sh <ID>
if [ -z "$1" ]; then
echo "Uso: $0 <ID do Projeto>"
exit 1
fi
SELECT
j.JobID,
j.EmailName,
j.DeliveredTime AS SendTime,
o.EventDate AS EventTime,
s.EmailAddress,
s.SubscriberKey,
'Opened' AS EventType
FROM [_Job] j
INNER JOIN [_Open] o ON j.JobID = o.JobID
@caioagiani
caioagiani / install-znuny-ubuntu.sh
Created March 12, 2025 12:40 — forked from jniltinho/install-znuny-ubuntu.sh
Install Znuny 7 --> New OTRS Community Edition
#!/bin/bash
## Install Znuny 7.0.16 on Ubuntu 22.04
## https://doc.znuny.org/znuny_lts/releases/installupdate/install.html
## https://itgovernanceportal.com/otrs/otrs-znuny-ubuntu-nginx/?cn-reloaded=1
## https://download.znuny.org/releases/znuny-7.0.16.tar.gz
## Run as root (sudo su)
cd /opt
wget https://download.znuny.org/releases/znuny-7.0.16.tar.gz