Skip to content

Instantly share code, notes, and snippets.

View sanogotech's full-sized avatar

SANOGOTECH sanogotech

View GitHub Profile
@sanogotech
sanogotech / useful-jboss-cli-cmds.md
Last active March 11, 2023 07:26 — forked from rafaeltuelho/useful-jboss-cli-cmds.md
Useful JBoss EAP CLI commands and configuration...
  • To restart a specif Managed Server in a Domain
./jboss-cli.sh --connect --controller=10.25.236.195:9999 --user <admin user> --password <admin pwd>

/host=136-slave/server-config=srv-163:start(blocking=true)
/host=136-slave/server-config=srv-163:stop(blocking=true)

./jboss-cli.sh --connect --controller=10.25.236.195:9999 --command='/host=136-slave/server-config=srv-163:stop(blocking=true)'
{
@sanogotech
sanogotech / luigi_first_steps.md
Created February 10, 2022 14:02 — forked from tomsing1/luigi_first_steps.md
First steps with the Luigi workflow manager

First steps with the Luigi workflow manager

As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.

The problems and solutions described in the examples below have led to the development of sciluigi,

@sanogotech
sanogotech / nodejs-cheatsheet.js
Created July 20, 2021 17:51 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@sanogotech
sanogotech / svelte.md
Created July 15, 2021 15:03 — forked from peltho/svelte.md
Svelte cheatsheet
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
## SSL Settings
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
@sanogotech
sanogotech / nginx.conf
Created October 12, 2020 07:09 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@sanogotech
sanogotech / psql.md
Created August 19, 2020 14:42 — forked from cimmanon/psql.md
PostgreSQL cheat sheet for MySQL users

I use PostgreSQL via the psql client. If you use a different client (eg. pgAdmin, etc.), I don't know how much will translate over.

One nice difference between psql and mysql (cli) is that if you press CTRL+C, it won't exit the client.

User administration

Login as superuser (via shell)

psql -U postgres
@sanogotech
sanogotech / gist:7d42abaf09cd0ae6dcf17529902fe15e
Created June 13, 2020 08:44 — forked from welsh/gist:6678788
JBoss AS 7 Commands Cheat Sheet : CLI
# All Commands are jboss-cli.sh unless indicated
# Stop / Start JBoss Server
/host=master/server-config=server-one:stop
/host=master/server-config=server-one:start
# Check is JBoss is Up
ls -l /host=master/server-config=server-one (SHOULD Work)
Bash = ps -e -o pid -o args | grep java | grep 'server-one' | grep -v 'grep' | awk '{print $1}' (Will return just the PID of the running instance)
@sanogotech
sanogotech / nginx-tuning.md
Created May 22, 2020 05:05 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

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.