Skip to content

Instantly share code, notes, and snippets.

<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
#! /bin/bash
MAX_VFS=63
ixgbe_nic_list=()
pci_nic_list=()
confirmed_nic_list=()
numvfs_list=()
res="n"
phy_driver=ixgbe
#! /bin/bash
MAX_VFS=63
ixgbe_nic_list=()
pci_nic_list=()
confirmed_nic_list=()
numvfs_list=()
res="n"
phy_driver=ixgbe
@thaihust
thaihust / nginx-tuning.md
Created November 11, 2021 05:08 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

https://dev.to/darkdebo/how-to-use-the-wifi-in-ubuntu-20-04-using-realtek-semiconductor-802-11n-53c0
@thaihust
thaihust / ovs-cheat.md
Created April 21, 2021 08:14 — forked from jshen28/ovs-cheat.md
OVS cheat sheet

CTL

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
ovs-vsctl get interface vhub656c3cb-23 name/ofport
@thaihust
thaihust / measure.py
Created December 12, 2020 06:56 — forked from racerxdl/measure.py
Linux Network Traffic Measure/Calculator Python Script
#!/usr/bin/env python
'''
_______ ______
|_ _\ \ / / ___|
| | \ \ / /\___ \
| | \ V / ___) |
|_| \_/ |____/
Teske Virtual System
@thaihust
thaihust / measure.py
Created December 12, 2020 06:56 — forked from racerxdl/measure.py
Linux Network Traffic Measure/Calculator Python Script
#!/usr/bin/env python
'''
_______ ______
|_ _\ \ / / ___|
| | \ \ / /\___ \
| | \ V / ___) |
|_| \_/ |____/
Teske Virtual System
=========
Client cipher support:
TLS_DHE_RSA_WITH_AES_128_CBC_SHA -> DHE-RSA-AES128-SHA (openssl) | TLS_DHE_RSA_AES_128_CBC_SHA1 (gnutls)
TLS_DHE_RSA_WITH_AES_256_CBC_SHA -> DHE-RSA-AES256-SHA | TLS_DHE_RSA_AES_256_CBC_SHA1
Tra openssl name:
https://ciphersuite.info/cs/TLS_DHE_RSA_WITH_AES_128_CBC_SHA/
- Get SSL version:
https://gist.github.com/leeoniya/ff19bc6e6237f80e33b6985476f8c791
https://www.hostinger.vn/huong-dan/cach-cai-dat-wordpress-tren-ubuntu-bang-nginx/
https://medium.com/@jgefroh/a-guide-to-using-nginx-for-static-websites-d96a9d034940