Skip to content

Instantly share code, notes, and snippets.

View biharitomi's full-sized avatar

Tamas Bihari biharitomi

  • Cloudera
  • Hungary
View GitHub Profile
@Megaprog
Megaprog / Rfc3339Test.java
Last active February 14, 2025 08:10
RFC3339 parsing by java.time (only parsing is possible)
package rfc3339;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.function.Executable;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.ResolverStyle;
# List the blobs in an Azure storage container.
echo "usage: ${0##*/} <storage-account-name> <container-name> <access-key>"
storage_account="$1"
container_name="$2"
access_key="$4"
blob_store_url="blob.core.windows.net"
http="https"
@keyki
keyki / hadoop_tests
Created May 20, 2015 15:13
hadoop_tests
#!/bin/bash
##################################################################################################################
# dfsio writes to the local file system, so the hdfs user should have permission to write to the actual dir
##################################################################################################################
export HADOOP_LIBS=/usr/hdp/current/hadoop-mapreduce-client
export JAR_EXAMPLES=$HADOOP_LIBS/hadoop-mapreduce-examples.jar
export JAR_JOBCLIENT=$HADOOP_LIBS/hadoop-mapreduce-client-jobclient.jar
@martonsereg
martonsereg / gist:a38153817812b99d2a8c
Created April 23, 2015 15:33
break lease on azure blob
//export AZURE_STORAGE_ACCOUNT
//export AZURE_STORAGE_ACCESS_KEY=""
var azure = require('./node_modules/azure-storage');
var blobSvc = azure.createBlobService();
blobSvc.breakLease('<container-name>', '<blob-name>', {}, function(error, result, response){
if(!error) {
console.log(result);
@morhekil
morhekil / nginx.conf
Created August 14, 2014 12:18
Full request/response body logging in nginx
http {
log_format bodylog '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time '
'<"$request_body" >"$resp_body"';
lua_need_request_body on;
set $resp_body "";
body_filter_by_lua '
@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.