Skip to content

Instantly share code, notes, and snippets.

View firstval's full-sized avatar
👋

First Val Babon firstval

👋
  • Philippines
View GitHub Profile

TechBench dump

Generated on 2017-04-05T20:20:00+0200 using:
- TechBench dump script (tbdump-web)
- FreeBSD 10.3-STABLE amd64 devil-1_0_4
- curl 7.52.1 (amd64-portbld-freebsd10.3) libcurl/7.52.1 OpenSSL/1.0.1s zlib/1.2.8 libssh2/1.8.0 nghttp2/1.18.1

Number of products: 268
[HOWTO] Setting FTP Server
Non Anonymous / Secure FTP
1. yum install vsftpd #after that type
service vsftpd restart
2.#configure vsftpd.conf
vi /etc/vsftpd/vsftpd.conf
@firstval
firstval / magento2-deploy.sh
Created April 25, 2017 04:10 — forked from sergiojovanig/magento2-deploy.sh
Deploy Magento 2 steps
php bin/magento setup:backup --db
gzip var/backups/*.sql
git pull
php bin/magento maintenance:enable
php bin/magento cache:enable
rm -fr var/di var/generation var/cache
php bin/magento setup:di:compile
php bin/magento deploy:mode:set production --skip-compilation
php bin/magento maintenance:enable
php bin/magento setup:upgrade
@firstval
firstval / magento2-deploy.sh
Created April 25, 2017 04:10 — forked from sergiojovanig/magento2-deploy.sh
Deploy Magento 2 steps
php bin/magento setup:backup --db
gzip var/backups/*.sql
git pull
php bin/magento maintenance:enable
php bin/magento cache:enable
rm -fr var/di var/generation var/cache
php bin/magento setup:di:compile
php bin/magento deploy:mode:set production --skip-compilation
php bin/magento maintenance:enable
php bin/magento setup:upgrade
echo "deb http://httpredir.debian.org/debian/ jessie main contrib" > /etc/apt/vbox-sources.list
apt-get update
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox -y
wget http://download.oracle.com/otn-pub/java/jdk-nb/8u121-8.2/jdk-8u121-nb-8_2-linux-x64.sh?AuthParam=1492057991_7077fe77f63893c7c96f2a8e3ec27d99
mv jdk-8u121-nb-8_2-linux-x64.sh?AuthParam=1492057991_7077fe77f63893c7c96f2a8e3ec27d99 jdk-8u121-nb-8_2-linux-x64.sh
chmod +x jdk-8u121-nb-8_2-linux-x64.sh
./jdk-8u121-nb-8_2-linux-x64.sh
@firstval
firstval / nginx.conf
Created April 5, 2017 02:46 — 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
@firstval
firstval / nginx.conf
Created April 5, 2017 02:46 — 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
@firstval
firstval / nginx.conf
Created April 5, 2017 02:46 — 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
Usermod define to the user to a group.
usermod -G [user] [group]
HOW TO CONFIGURE VSFTPD WITH TLS/SSL ON RHEL/CENTOS 6.X AND HOW TO CONNECT SECURE VSFTPD(TLS/SSL) IN HETEROGENEOUS ENVIRONMENTS USING CLIENT PROGRAMS. (PART..A)
1:55 AM SOMU
Traditional FTP is rather insecure. When you login, your username and password are transmitted in clear text, raising the possibility of your credentials being 'sniffed' by a malicious person. Fortunately there's an easy answer to this. You can quite easily configure your vsftpd server to use OpenSSL encryption, so that usernames & password, and even data files, are encrypted during transfer. It takes just a few simple steps:
Vsftpd is already available under CentOS/RHEL default repositories. We assume that CentOS/RHEL users have enabled default repositories in his system. Now execute following command.
Note:- This post works with Security-Enhanced Linux (SELinux) is enabled