Skip to content

Instantly share code, notes, and snippets.

View adampielak's full-sized avatar
💭
███▓▒░░. LiNUX .░░▒▓███

Adam Pielak adampielak

💭
███▓▒░░. LiNUX .░░▒▓███
View GitHub Profile
@adampielak
adampielak / postfix commands
Created November 12, 2019 00:20 — forked from rushipkar90/postfix commands
postfix commands
Ref Links:
=============
https://jvulinux.wordpress.com/2014/12/26/commands-to-check-spamming-in-postfix-mail-server/
https://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html
=============
Commands to check spamming in POSTFIX mail server
1. To see the mail queue:
@adampielak
adampielak / spamemails.sh
Created November 12, 2019 00:20 — forked from rushipkar90/spamemails.sh
spamemails.sh
#!/bin/bash
pprocess=`ps -ef | grep "spamemails.sh" | grep -v "grep" | wc -l`;
if [ "$pprocess" -le 2 ]
then
{
sh /usr/local/src/newmalicious.sh >> /usr/local/src/permupdates.txt;
}
fi
@adampielak
adampielak / 00-cloud-config.yml
Created March 20, 2020 15:21 — forked from janeczku/00-cloud-config.yml
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@adampielak
adampielak / A - Information
Created April 29, 2020 23:50 — forked from doonga/A - Information
Plex NGINX reverse proxy config using Cloudflare on Ubuntu 16.04
Credit where credit's due, I mainly used these 3 resources to get this all working. There were several others but I don't exactly remember which is which. So at least here are the 3 main places that I used.
The vast majority of this came from this link, the others helped me make it work for Plex.
http://emby.media/community/index.php?/topic/30975-reverse-proxy-with-ssl-hostname-routing-and-embyopenvpn-port-sharing/
https://gist.github.com/spikegrobstein/4384954
https://forums.plex.tv/discussion/207725/ubuntu-14-04-4-lts-plex-incorrectly-handles-lower-case-headers#latest
The data flow here is:
# Example ssh config file. Usually located in ~/.ssh/config (user) or /etc/ssh/ssh_config (system)
# This works on both linux and MacOS
# Basic ssh commands converted to ssh/config file format
# Simplest format
# Run with: "ssh blog" => (equivalent to: "ssh [email protected]" and "ssh -i ~/.ssh/id_rsa -p 22 [email protected]")
Host blog
config setup
# Раскомментируйте, если хотите несколько подключений на один логин
# uniqueids=no
conn %default
dpdaction=clear
dpddelay=35s
dpdtimeout=300s
fragmentation=yes
@adampielak
adampielak / my.cnf
Created June 2, 2020 19:27 — forked from Tanguy-SALMON/my.cnf
Percona Server 8.0 configuration file / works well for MySQL 5.7
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
@adampielak
adampielak / generate_mysql_certs.sh
Created June 2, 2020 21:42 — forked from crhntr/generate_mysql_certs.sh
Generates self-signed certificate authority (CA) and SSL keys for MySQL server (the following were tested with Percona) with localhost in subject alternative name (SAN) for text fixures
openssl req -x509 -new -batch -nodes -sha256 -days 90 -subj "/CN=ca" -keyout ca-key.pem -out ca.pem
openssl req -new -sha256 -nodes -subj "/CN=localhost" -keyout server-key.pem -out server-cert.csr
openssl x509 -req -days 90 -sha256 -CAcreateserial -extfile <(printf "subjectAltName=DNS:127.0.0.1,DNS:0.0.0.0") -in server-cert.csr -CA ca.pem -CAkey ca-key.pem -out server-cert.pem
@adampielak
adampielak / my.cnf
Created June 2, 2020 22:01 — forked from lesstif/my.cnf
mysql configuration for Linux distro
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
[mysql]
local_infile=true
[mysqld]
local_infile=true
collation-server = utf8mb4_unicode_ci
character-set-server = utf8mb4
skip-character-set-client-handshake

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.