Skip to content

Instantly share code, notes, and snippets.

@Jaxmetalmax
Jaxmetalmax / webhook.service
Created January 11, 2019 01:07
Systemd unit example python app
[Unit]
Description = servicio para aplicacion deploywebhook
[Service]
User=appuser
Group=appuser
ExecStart=/home/appuser/startapp.sh
Restart=always
RestartSec=5
KillSignal=SIGQUIT
@Jaxmetalmax
Jaxmetalmax / startapp.sh
Created January 11, 2019 01:09
startup script for django app
#!/bin/bash
cd /home/appuser/deploywebhook
#/home/appuser/.local/bin/pipenv run python main.py
echo -e "Ejecutando web service..."
/home/appuser/.local/bin/pipenv run gunicorn yourproject.wsgi --bind 127.0.0.1:8000
FROM node:6-alpine
USER node
RUN mkdir /home/node/src
WORKDIR /home/node/src
COPY package.json .
@Jaxmetalmax
Jaxmetalmax / gist:83780ebad2b37e05c26d60c560d13fac
Last active August 14, 2020 17:16
rocketchat nginx config
upstream rocketserver {
server 127.0.0.1:3000;
}
server {
server_name yourdomain.com;
error_log /var/log/nginx/rocketserver_error.log;
location / {
@Jaxmetalmax
Jaxmetalmax / Dockerfile
Created March 3, 2021 05:45 — forked from nginx-gists/Dockerfile
NGINX Plus for the IoT: Load Balancing MQTT
# Pull base image. The official docker openjdk-8 image is used here.
FROM java:8-jdk
# Copy HiveMQ to container
COPY hivemq.zip /tmp/
#Install wget and unzip, then download and install HiveMQ.
RUN \
apt-get install -y wget unzip &&\
unzip /tmp/hivemq.zip -d /opt/ &&\

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
version: '3.1'
services:
ghost:
image: ghost:4-alpine
restart: always
ports:
- 8080:2368
environment:
version: '3.4'
services:
pythondev:
image: python:3.11.2-buster
container_name: pythondev301
ports:
- 8000:8000
- 3000:3000
volumes: