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 / dual.cfg
Created January 6, 2022 10:44 — forked from marfillaster/dual.cfg
Mikrotik dual/triple dhcp wan recursive failover w/ pcc load balancing
/interface bridge add name=bridge
/interface bridge port
add bridge=bridge interface=ether3
add bridge=bridge interface=ether2
add bridge=bridge interface=ether1
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN

Discovery

Tools

SQL Injection

' or '1' ='1' --

Website Directory Enumeration

@adampielak
adampielak / sc-backup.sh
Created May 31, 2021 16:07 — forked from SteveMcGrath/sc-backup.sh
SecurityCenter Backup Script
#!/bin/bash
## SecurityCenter Backup Script
#
# This script is intended to create backups of all of the SecurityCenter data
# on a daily/weekly/monthly/etc. basis. This is intended to be run as a cronjob
# and expect the SysAdmin to have configured the root@localhost mail alias to
# route through their email system in-case of errors. An example of how to run
# this as a cronjob is below:
#
# 1 45 * * * root /opt/scripts/backups/sc-backup.sh

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

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.

@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
@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 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.
config setup
# Раскомментируйте, если хотите несколько подключений на один логин
# uniqueids=no
conn %default
dpdaction=clear
dpddelay=35s
dpdtimeout=300s
fragmentation=yes