Łukasz Lach, Docker Captain | 2020
https://lach.dev/ | https://github.com/lukaszlach/
Install X Server (Windows and Mac)
version: '3.5' | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
container_name: gitlab | |
restart: always | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | |
/* set user and group id and exec */ | |
#include <sys/types.h> | |
#include <err.h> | |
#include <errno.h> | |
#include <grp.h> | |
#include <pwd.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
#!/usr/bin/env bash | |
# curl -sSfL https://gist.githubusercontent.com/lukaszlach/c0fdb7a728cdea632db1aebbbff3f6d6/raw/gcp-uw.sh | bash | |
# SSHd | |
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config | |
sed -i "s/.*Port.*/Port 6667/g" /etc/ssh/sshd_config | |
echo 'Port 80' >> /etc/ssh/sshd_config | |
sed -i "s/.*ClientAliveInterval.*/ClientAliveInterval 45/g" /etc/ssh/sshd_config | |
sed -i "s/.*ClientAliveCountMax.*/ClientAliveCountMax 3/g" /etc/ssh/sshd_config | |
#echo 'ServerAliveInterval 15' >> /etc/ssh/sshd_config |
123 |
Łukasz Lach, Docker Captain | 2020
https://lach.dev/ | https://github.com/lukaszlach/
curl -sSfL 'https://api.fifa.com/api/v3/calendar/matches\?idCompetition=17&idSeason=255711' | \ | |
jq -r '.Results | .[] | select(.MatchStatus == 3) | "\(.Home.ShortClubName) \(.Home.Score):\(.Away.Score) \(.Away.ShortClubName) \t@ \(.Stadium.Name[0].Description), \(.Stadium.CityName[0].Description) \t@ \(.StageName[0].Description)"' |
FROM debian:stretch | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && \ | |
apt-get install -y curl apt-transport-https x11vnc xvfb gnupg && \ | |
dpkg --add-architecture i386 && \ | |
curl https://dl.winehq.org/wine-builds/Release.key | apt-key add - && \ | |
echo "deb https://dl.winehq.org/wine-builds/debian/ stretch main" > /etc/apt/sources.list.d/wine.list && \ | |
apt-get update && \ | |
apt-get install -y --allow-unauthenticated --install-recommends winehq-devel && \ | |
curl -o /usr/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && \ |
[[snippets]] | |
description = "Find source files matching pattern in content" | |
command = "find . -type f -name '<name=*>' -exec grep -Hn <pattern> {} \\;" | |
output = "" | |
[[snippets]] | |
description = "List opened ports and owner process (OSX)" | |
command = "sudo lsof -PiTCP -sTCP:LISTEN" | |
output = "" |
.
├── app
│ ├── controller
│ ├── model
│ └── view
├── composer.json
├── .develtio-runner
│ ├── config.env
│ ├── DEVELTIO_RUNNER.md