Skip to content

Instantly share code, notes, and snippets.

@alexbmw00
alexbmw00 / setup_psrp.yml
Created September 20, 2024 20:37 — forked from guruevi/setup_psrp.yml
This is a quick Ansible script to setup a machine remotely for PSRP with Ansible using PsExec, then switching to PSRP native
- name: Setup Windows machine with Ansible
hosts: all
gather_facts: false
pre_tasks:
- name: Setup WinRM, PSRP
community.windows.psexec:
hostname: '{{ hostvars[inventory_hostname]["ansible_host"] | default(inventory_hostname) }}'
connection_username: '{{ ansible_user }}'
connection_password: '{{ ansible_password }}'
@alexbmw00
alexbmw00 / vagrant-kvm.md
Created November 24, 2019 02:38 — forked from yuanying/vagrant-kvm.md
How to use vagrant-kvm

Install Vagrant

sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb 
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit

Install vagrant-kvm as user

@alexbmw00
alexbmw00 / nginx-tuning.md
Created April 6, 2019 02:49 — 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.

@alexbmw00
alexbmw00 / install_ispconfig3_debian.sh
Created February 28, 2019 00:03
Install ISPConfig 3.x on Debian 9 64Bits
#!/bin/bash
## Install ISPConfig 3.x on Debian 9 64Bits
## ISPConfig3 3.x + Apache2 + Debian 9 64Bits
## VM HD 50GB, swap 2GB, / 20GB, /var/www all
## Filesystem ext4
## Run as root
## Link: https://www.howtoforge.com/tutorial/perfect-server-debian-9-stretch-apache-bind-dovecot-ispconfig-3-1
# Check if user has root privileges
@alexbmw00
alexbmw00 / install-ispconfig3-centos.sh
Created February 28, 2019 00:02
Install ISPConfig3 CentOS 7 64Bits
#!/bin/bash
## Install ISPConfig 3.x on CentOS 7 64Bits
## http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html
## https://www.howtoforge.com/tutorial/perfect-server-centos-7-2-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/2/
## http://nareshv.blogspot.com.br/2014/02/configure-hhvm-with-apache-fastcgi-on.html
## ISPConfig3 3.x + Apache2 + CentOS 7 64Bits
## VM HD 50GB, swap 2GB, / 19GB, /var/www all
## Filesystem ext4
## Run as root