Skip to content

Instantly share code, notes, and snippets.

View TooKennySupreme's full-sized avatar
💭
I may be slow to respond.

0x0Suave TooKennySupreme

💭
I may be slow to respond.
  • FreeWorld
View GitHub Profile
@TooKennySupreme
TooKennySupreme / tinc-install.sh
Created January 8, 2021 01:11 — forked from jpillora/tinc-install.sh
Install and run tinc-1.1pre11 on Raspberry Pi 2 (Raspberrian)
# install tinc
apt-get update && echo "===> update deps" &&
apt-get install -y make libssl-dev zlib1g-dev liblzo2-dev libreadline-dev libncurses5-dev && echo "===> got deps" &&
curl http://www.tinc-vpn.org/packages/tinc-1.1pre11.tar.gz | tar xzvf - && echo "===> got tinc src" &&
cd tinc-1.1pre11 &&
./configure && echo "===> configured tinc" &&
make &&
make install && echo "===> installed tinc" &&
tinc --version # tinc version 1.1pre11 (built Nov 12 2015 16:25:28, protocol 17.4)
@TooKennySupreme
TooKennySupreme / xtrabackup_runner.sh
Created December 28, 2020 22:06 — forked from sveesible/xtrabackup_runner.sh
A fancier mysql backup script for Xtrabackup:
#!/bin/bash
#
# Script to create full and incremental backups (for all databases on server) using innobackupex from Percona.
# http://www.percona.com/doc/percona-xtrabackup/innobackupex/innobackupex_script.html
#
# Every time it runs will generate an incremental backup except for the first time (full backup).
# FULLBACKUPLIFE variable will define your full backups schedule.
#
# 2012 Brad Svee modified to try to use xbstream
# (C)2012 Atha Kouroussis @ Vurbia Technologies International Inc.
@TooKennySupreme
TooKennySupreme / bitcoin_core_0.19.1.bash
Created May 28, 2020 08:19 — forked from Koff/bitcoin_core_26.1.bash
Bitcoin core 0.19.1 on Ubuntu 19.10
# Assuming a fresh install of Ubuntu 19.10, 400+Gbytes of free HDD, and that you are logged in as root.
# More detailed instructions available in https://www.fsanmartin.co/running-a-bitcoin-node-on-ubuntu-19-10/
# Update packages
apt update
apt upgrade -y
# Add bitcoin_user user non-interactively
adduser --gecos "" bitcoin_user
@TooKennySupreme
TooKennySupreme / IPtables and csf.md
Created December 13, 2019 17:51 — forked from macmladen/IPtables and csf.md
Handling firewall blocking and unblocking, iptables, csf
@TooKennySupreme
TooKennySupreme / mysql_secure.sh
Created August 24, 2019 03:08 — forked from enoch85/mysql_secure.sh
Automating mysql_secure_installation for MySQL 5.7
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@TooKennySupreme
TooKennySupreme / bitcoind-ubuntu-install
Last active November 11, 2018 14:14 — forked from rjmacarthy/bitcoind-ubuntu-install
Install Bitcoind Ubuntu
** Add repository **
sudo apt-get install build-essential
sudo apt-get install libtool autotools-dev autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
** Add user **
adduser bitcoin
@TooKennySupreme
TooKennySupreme / README.md
Created August 3, 2018 21:01 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@TooKennySupreme
TooKennySupreme / install-imapsync.sh
Created May 30, 2016 11:53 — forked from carlos22/install-imapsync.sh
Install imapsync on Ubuntu 14.04 (trusty)
#!/bin/bash
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install makepasswd rcs perl-doc libio-tee-perl git libmail-imapclient-perl libdigest-md5-file-perl libterm-readkey-perl libfile-copy-recursive-perl build-essential make automake libunicode-string-perl
cd $HOME
git clone git://github.com/imapsync/imapsync.git --depth 1
cd imapsync
sudo make install
##############################################
## CENTOS 7 COMMANDS
##############################################
Command Help
# systemctl --help
Dump traffic on a network - when getting a DdoS attack
http://www.tcpdump.org/tcpdump_man.html
# tcpdump -w file.txt