Skip to content

Instantly share code, notes, and snippets.

Avatar
😊
Meow

mimimi Meowzz95

😊
Meow
View GitHub Profile
@Meowzz95
Meowzz95 / Program.cs
Last active Feb 27, 2020
.NET core console app. DI & Config & Logger boilerplate
View Program.cs
class Program
{
static void Main(string[] args)
{
var serviceCollection = new ServiceCollection();
ConfigureServices(serviceCollection);
var serviceProvider = serviceCollection.BuildServiceProvider();
serviceProvider.GetService<StartUp>().Run();
serviceProvider.Dispose();
@Meowzz95
Meowzz95 / Dockerfile
Created Jun 14, 2019
Docker file extending official Jenkins image, add docker support(share host docker)
View Dockerfile
FROM jenkins/jenkins:lts
# if we want to install via apt
USER root
ENV DOCKERVERSION=18.03.1-ce
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 \
-C /usr/local/bin docker/docker \
&& rm docker-${DOCKERVERSION}.tgz
RUN groupadd docker
RUN usermod -aG docker jenkins
@Meowzz95
Meowzz95 / gist:56f802e0dd9152218a4e12d887bf18ec
Created Jun 14, 2019
Jenkins behind Nginx reverse proxy config
View gist:56f802e0dd9152218a4e12d887bf18ec
location ^~ /your_path {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://ip:port;
proxy_redirect default;
}
@Meowzz95
Meowzz95 / ufw-allow-rabbitmq
Created Aug 3, 2018
Ufw commands to allow rabbitMQ
View ufw-allow-rabbitmq
sudo ufw allow 4369
sudo ufw allow 5671
sudo ufw allow 5672
sudo ufw allow 25672
sudo ufw allow 35672:35682/tcp
sudo ufw allow 15672
sudo ufw allow 61613
sudo ufw allow 61614
sudo ufw allow 1883
sudo ufw allow 8883