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
| 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 |
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
| function getFonts() { | |
| const fontArray = [ | |
| "sans-serif-thin", | |
| "ARNO PRO", | |
| "Agency FB", | |
| "Arabic Typesetting", | |
| "Arial Unicode MS", | |
| "AvantGarde Bk BT", | |
| "BankGothic Md BT", | |
| "Batang", |
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 psycopg2 | |
| from tqdm import tqdm | |
| db_config = { | |
| 'dbname': 'levante_web', | |
| # 'user': 'seu_usuario', | |
| # 'password': 'sua_senha', | |
| 'host': 'localhost', | |
| 'port': '5432' | |
| } |
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
| 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; |
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
| #!/bin/bash | |
| # chmod +x gitlab-environments.sh | |
| # ./gitlab-environments.sh <ID> | |
| if [ -z "$1" ]; then | |
| echo "Uso: $0 <ID do Projeto>" | |
| exit 1 | |
| fi |
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
| 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 |
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
| #!/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 |
OlderNewer