Skip to content

Instantly share code, notes, and snippets.

View mesaque's full-sized avatar

Mesaque Silva mesaque

View GitHub Profile
@mesaque
mesaque / github-workflows.yml
Last active June 21, 2024 16:58
AWS ECS: Script for creating a new revision of a task definition and update a service
- name: Setup of aws-cli
if: github.ref == 'refs/heads/master'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-east-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: deploy to PRODUCTION
if: github.ref == 'refs/heads/master'
@mesaque
mesaque / xdebug.php
Created May 13, 2022 12:42
xdebug activate
pecl install xdebug
docker-php-ext-enable xdebug
;php.ini
xdebug.mode=profile
xdebug.output_dir=/tmp/profiles
xdebug.profiler_output_name = cachegrind.out.%p.%R.%u
FROM php:7.4.21-fpm-alpine3.13
USER root
RUN cd /tmp \
&& curl -o ioncube.tar.gz http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
&& tar -xvvzf ioncube.tar.gz \
&& mv ioncube/ioncube_loader_lin_7.4.so /usr/local/lib/php/extensions/* \
&& rm -Rf ioncube.tar.gz ioncube \
&& echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20190902/ioncube_loader_lin_7.4.so" > /usr/local/etc/php/conf.d/00_docker-php-ext-ioncube_loader_lin_7.4.ini
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLRIuof/Gx0WTNltxw6dunBJtXJdo7hNJikmMwBhAtB0YqsGfRHdDMx5qX07sr1kcFOvZ1W2cowQDIc+m5Qy+1ziaOr4S5/W1CNQnPBV/PIy0V67LZ64DxUNSAEIxW/2jY7V9dOE5x6Ju8wqj6OMmlisH7/DpahVoeBst67LRwl4nUKS3p9ilop/ZNzAi5GzCuS27u6H+d61qKLJ1oEY9KRlCe4aR7kY0YQEDp30lq0T2PUx9S3Zlx7nOGlPJX7pipF598DQah74zge1BRLSDT9SASURMae9PlKkDDG/06qrWsHMEZ9ATHpdqjxxOqH+43YCvskJmnAFWB6b2rkp5Z [email protected]
@mesaque
mesaque / Dockerfile
Last active September 24, 2021 17:19
docker hub php alpine 3.10 new relic install
FROM php:7.4.21-fpm-alpine3.13
MAINTAINER [email protected]
USER root
ENV NEW_RELIC_VERSION php5-9.18.1.303-linux-musl
ENV NR_INSTALL_SILENT 1
ENV NR_INSTALL_KEY YOUR-KEY-HERE
ENV NR_APP_NAME 'You Name'
server {
listen 80;
server_name wordpress.localhost.com *.wordpress.localhost.com;
set $skip_cache 0;
if ($request_method = POST) {
set $skip_cache 1;
}
if ($query_string != "") {
@mesaque
mesaque / default.conf
Last active March 24, 2019 22:15
default.conf
server {
listen 80;
server_name localhost;
add_header X-Backend-Server $hostname;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
@mesaque
mesaque / 2-1.cpp
Last active October 14, 2018 19:03
fael discursiva programacao estruturada
#include <stdio.h>
#include <conio.h>
#define TAM 20
struct tad_pilha
{
char nome[TAM];
};
@mesaque
mesaque / execice2.cpp
Last active November 2, 2018 16:46
fael script
using System;
namespace Fael
{
class Employee
{
float salarioMensal;
public Employee(float salarioMensal)
@mesaque
mesaque / termos.cpp
Last active August 19, 2018 19:41
fael progamacao estruturada
/*
author:mesaque
date: 08/2018
*/
//Exercise 1:
#include <cstdio> /* printf, scanf */
#include <cstdlib> /* srand, rand */