Skip to content

Instantly share code, notes, and snippets.

View jemacom's full-sized avatar

Chokri jemacom

View GitHub Profile
input {
syslog {
type => "pfsense"
}
}
filter {
if [type] == "pfsense" {
grok {
patterns_dir => "/opt/logstash/patterns"
@TheHackerDev
TheHackerDev / Blockchain security research.md
Last active May 1, 2023 13:49
Open-source blockchain security research (contributions welcome!)

What is a blockchain?

  • Distributed ledger system; for tracking the transfer of tokens (currency, data of any type).
  • A cross between economics, cryptography, and the internet.
    • Side note- if you ever wanted a financial incentive to get involved in cryptography, this is it.
  • A blockchain is literally a chain of blocks, where each block contains a list of transactions that everyone agrees have occurred.
    • Each block builds upon all the ones before it.

A blockchain is literally a chain of blocks

@al-maisan
al-maisan / alias.sh
Last active June 28, 2018 15:54
bash function to edit files with a time stamp
vdt() {
fname=${1:-gist.txt}
bname=`basename $fname`
ext=${bname#*.}
pfix=${fname%%.*}
gvim "${pfix}-`date +'%Y-%m-%d_%H-%M'`.${ext}"
}