Skip to content

Instantly share code, notes, and snippets.

@sergeyzenchenko
sergeyzenchenko / russia-ddos.md
Last active September 2, 2024 11:11
Russia DDOS list

Petabyte Scale Storage

Scaling to Petabyte levels of storage, and then adding duplication on top presents significant challenges in managing multiple layers of technology. There will be significant risks that can only be evaluated with limited test solutions and datasets to see how behavior is in the real world. A high level concern, because of where in the stack deduplication exists on the Linux side, is that distributed parity is useless in conjunction with a Linux solution. The result is a maximum storage efficiency of approximately 33% with Gluster and Deduplication, resulting in approximately $200/TB. This is not the case with a Microsoft solution where efficiency reaches 66% at seven nodes, for a cost of approximately $100/TB. The Microsoft solution also presents significant limitations in flexibility.

I have not yet extensively researched CephFS and BeeGFS, but I suspect the end result with both of them will be similar to Gluster.

Most of my notes are based on the documentation provided by Red Ha

This file has been truncated, but you can view the full file.
THE 23135851162
OF 13151942776
AND 12997637966
TO 12136980858
A 9081174698
IN 8469404971
FOR 5933321709
IS 4705743816
ON 3750423199
@iammelea
iammelea / Cosmos-Sentry-Validator.Readme
Last active April 18, 2022 10:04
Sentry Validator for Cosmos Blockchain
#how works one Validator and Sentry Node for Cosmos:
#I have one Sentry-Validator-Node, and two Full-nodes-NO-Validator
#For my setup i used 4 Addresses for Full-nodes-NO-Validator i trust. two mines, two for other validator fiend.
#Beware that
@posener
posener / go-shebang-story.md
Last active August 5, 2024 13:00
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@mattia-beta
mattia-beta / ddos.conf
Last active September 19, 2024 00:09
IPtables DDoS Protection for VPS
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 3: Drop SYN packets with suspicious MSS value ###
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
### 4: Block packets with bogus TCP flags ###
@bluekvirus
bluekvirus / flask-mysql-redis-celery.md
Last active January 13, 2023 17:25
# Develop a Flask Application using MariaDB, Redis and Celery on Ubuntu 14.04+

Develop a Flask Application using MariaDB, Redis and Celery on Ubuntu 14.04

@credit Yan Zhu (https://github.com/nina-zhu)

Introduction

Before you start this guide, you should run through the "How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04" guide. This is necessary in order to set up virtualenv, uWSGI and Nginx. In that guide, we developed a very simple flask application having just 1 file "firstflask.py" with only 9 lines of code, it is a sample for showing you the general steps. In this guide, we will create a complete user session listing application, with login, logout functionality. We will use MariaDB to store the users records, and use Redis to store the session data and background tasks.

Let's get started.

Set Up the MariaDB Server

@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active September 2, 2024 13:10
Vanilla JavaScript Quick Reference / Cheatsheet
@tasdikrahman
tasdikrahman / python_tests_dir_structure.md
Last active September 15, 2024 16:13
Typical Directory structure for python tests

A Typical directory structure for running tests using unittest

Ref : stackoverflow

The best solution in my opinion is to use the unittest [command line interface][1] which will add the directory to the sys.path so you don't have to (done in the TestLoader class).

For example for a directory structure like this:

new_project

├── antigravity.py

@rohityadavcloud
rohityadavcloud / my.cnf
Created July 27, 2015 10:19
Example MySQL my.cnf optimized
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
syslog