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
FROM python:3.7-alpine | |
RUN apk add --no-cache libcurl | |
ENV PYCURL_SSL_LIBRARY=openssl | |
RUN apk add --no-cache --virtual .build-deps build-base curl-dev \ | |
&& pip install pycurl \ | |
&& apk del --no-cache --purge .build-deps \ | |
&& rm -rf /var/cache/apk/* |
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
text body |
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 | |
# I have managed to map out some undesirable daemons and agents. Most of these | |
# can be disabled without too much consequence. | |
## Daemons | |
# com.apple.analyticsd - Anonymized application analytics daemon | |
# com.apple.appleseed.fbahelperd - Feedback Assistant Helper Daemon | |
# com.apple.awacsd - Apple Wide Area Connectivity Service Daemon | |
# com.apple.backupd - Apple TimeMachine service |
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
sudo docker ps -q | xargs -r sudo docker stop |
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 | |
PORT=8013 | |
lsof -nP -iTCP:$PORT | grep LISTEN;: |
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 | |
ps aux | grep gunicorn | awk '{print $2;}' | xargs kill -9 2>/dev/null | |
ps aux | grep gunicorn | awk '{print $2;}' | xargs kill -9 2>/dev/null | |
ps aux | grep gunicorn | awk '{print $2;}' | xargs kill -9 2>/dev/null | |
ps aux | grep python | awk '{print $2;}' | xargs kill -9 2>/dev/null | |
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
sudo certbot --nginx certonly -d domain.com,www.domain.com --expand |
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
--sudo -u postgres psql -p 5432 | |
CREATE USER username WITH PASSWORD 'secret'; | |
ALTER USER username WITH PASSWORD 'secret'; | |
DROP USER username; | |
CREATE DATABASE dbname WITH OWNER=username; | |
GRANT ALL PRIVILEGES ON DATABASE "dbname" to username; |
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
service postgresql status | tee | |
sudo pg_lsclusters | |
ps -ax | grep -v grep | grep postgres | |
sudo netstat -tulpn | grep :543 |
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
SSH_HOSTNAME:=ubuntu@github42 | |
NAME:=github42 | |
VERSION:=12 | |
all: | |
make sync | |
make restart | |
make status | |
sync: |
NewerOlder