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
version: '3.5' | |
services: | |
app: | |
build: . | |
volumes: | |
- '.:/app' | |
ports: | |
- '3000:80' | |
environment: |
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
php php-cli php-curl php-intl php-mbstring php-xml php-zip php-bcmath php-cli php-fpm php-imap php-json php-opcache php-apcu php-xmlrpc php-bz2 php-common php-gd php-ldap php-mysql php-pgsql php-readline php-soap php-tidy php-xsl php-apcu php-mcrypt php-fileinfo |
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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
# Load dynamic modules. See /usr/share/nginx/README.dynamic. |
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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples. |
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
ssh -N -p 22 -D 8000 [email protected] |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
requests := make(chan int, 5) |
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
package main | |
import "fmt" | |
func main() { | |
outerLoop: | |
for i := 0; i < 5; i++ { | |
for j := 0; j < 5; j++ { | |
if i == 5 { | |
break outerLoop |
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
0 3 * * * /usr/bin/mysqldump -u root --password=P@ssw0rd mydb > /root/mydb$(date +\%w).sql |
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
INSERT INTO batman20190306.public."EventParticipant" | |
SELECT '2019-03-14' :: date AS "BEGDA", | |
'9999-12-31' :: date AS "ENDDA", | |
'1000' AS "BUSCD", | |
nik AS "PERNR", | |
'2019-03-14' :: date AS "CHGDT", | |
'12345678' AS "CHUSR", | |
'5c8a5cf5ed684' AS "EVNCD" | |
FROM batman20190306.public."User" | |
WHERE level_id IN ('1', '2', '3', '4'); |
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
vcl 4.0; | |
import std; | |
backend default { # Define one backend | |
.host = "localhost"; # IP or Hostname of backend | |
.port = "8080"; # Port Apache or whatever is listening | |
} | |
acl ban { |