Skip to content

Instantly share code, notes, and snippets.

View saprisada's full-sized avatar
🎯
Focusing

saprisada

🎯
Focusing
View GitHub Profile
@marttosc
marttosc / command.sql
Last active September 27, 2020 03:33
ODBC DBLink - Oracle and MySQL
CREATE DATABASE LINK "MYSQL_ORCL_LNK" CONNECT TO "USER_LNK" IDENTIFIED BY "PASSWD_LNK" USING 'MYSQLORACLE';
@denji
denji / nginx-tuning.md
Last active October 24, 2025 16:02
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.

@jigzstar
jigzstar / rm_message.sh
Last active August 6, 2024 13:07
Zimbra - Delete a message by subject from all email accounts in a file
#!/bin/bash
# rm_message.sh user@domain.com subject
# create temp_file prior to calling this zmprov -l gaa | grep domain.com > /tmp/temp_email
if [ -z "$2" ]; then
echo "usage: rm_message.sh user@domain.com <subject>"
exit 0
else
addr=$1
subject=$2