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
# Use an official Elixir runtime as a parent image | |
FROM elixir:latest | |
RUN apt-get update && \ | |
apt-get install -y postgresql-client | |
# Create app directory and copy the Elixir projects into it | |
RUN mkdir /app | |
COPY . /app | |
WORKDIR /app |
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/bash | |
# | |
# ** Need install system dependencies | |
rm -rf php-src/ | |
mkdir -p /etc/php7 | |
mkdir -p /etc/php7/cli | |
git clone https://github.com/php/php-src.git -b PHP-7.4.1 --depth=1 |
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
<?php | |
class HttpGrabThreaded { | |
private array $urls; | |
private array $runtimes; | |
private array $futures; | |
public function __construct(array $urls) | |
{ |
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 | |
SG="super-giggle" | |
$SG --diff-cached | |
RESULT=$? | |
if [ $RESULT -eq 0 ]; then | |
echo 'Meus parabéns, meu filho. Seu código está limpinho. Meus parabéns!!!' | |
else | |
# Permite capturar a resposta Y|N do usuário. | |
exec < /dev/tty | |
MSG=$(cat << "EOF" |
NewerOlder