Skip to content

Instantly share code, notes, and snippets.

View kiraitachi's full-sized avatar
🤖
From Z3R0 to H3R0

Adel de la Llave kiraitachi

🤖
From Z3R0 to H3R0
View GitHub Profile
@kiraitachi
kiraitachi / elk.sh
Created July 1, 2019 12:17 — forked from dalmosantos/elk.sh
Bash Script to Install Elastic Search, Logstash and Kibana
#!/bin/bash
#title :createenvironment-elk.sh
#description :shell script to create environments (elasticsearch,logstash and kibana)
#date :2018-04-19
#usage :sudo ./elk.sh
#used version :6.2.4
#tested-version :1.2.0
#tested-distros :CentOS 7.4
# Checking whether user has enough permission to run this script
@kiraitachi
kiraitachi / readme.md
Created September 8, 2020 19:20 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@kiraitachi
kiraitachi / Firewalld GeoIP firewall script
Created November 21, 2022 00:04 — forked from Pandry/Firewalld GeoIP firewall script
Block countries IPs via Firewalld
#!/bin/bash
##
# Name: GeoIP Firewall script
# Author: Pandry
# Version: 0.1.1
# Description: This is a simple script that will set up a GeoIP firewall blocking all the zones excecpt the specified ones
# it is possible to add the whitelisted zones @ line 47
# Additional notes: Usage of [iprange](https://github.com/firehol/iprange) is suggested
# for best performances
@kiraitachi
kiraitachi / backup_raspberrypi.md
Created January 8, 2024 10:08 — forked from eliroca/backup_raspberrypi.md
Use ssh and dd to Remotely Backup a Raspberry Pi

You can make a backup of your pi and have the backup written to your regular PC all from the command line.

From your local machine, run the remote backup command:

ssh pi@xx.x.x.xx "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=/path/to/pibackup.gz

After 47min 21sec, in my case, got this as output:

30436+1 records in
30436+1 records out
31914983424 bytes (32 GB, 30 GiB) copied, 2830.89 s, 11.3 MB/s