1) Pre-Requisite # Install Mariadb yum -y install mariadb mysql -u root -p CREATE DATABASE gitea; CREATE USER ‘gitea’@’localhost’; SET PASSWORD FOR ‘gitea’@’localhost’ = PASSWORD(‘NEW_gitea’); grant all privileges on gitea.* to ‘gitea’@’localhost’; # Install go wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz” mv go1.10.linux-amd64.tar.gz /usr/local/ […]
Playstation 4 System Reinstall how to
USB storage device, such as a USB* flash drive (FAT32) * There must be approximately 955 MB of free space. On the USB storage device, create folders for saving the update file. Using a computer, create a folder named “PS4”. […]
BeautifulSoup how to
#get forecast for genova and rapallo for the next 3 days to http://felipeferreira.net/forecast/forecast-rapallo.html 0 */6 * * * /var/www/wordpress/forecast/forecast.py genova 0 */6 * * * /var/www/wordpress/forecast/forecast.py rapallo There is a great tutorial here: web-scraping-tutorial-python This is the script I wrote […]
How to install gogs on centos7
# INSTALL GO and Gogs (github opensource server) on CENTOS 7 wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz” mv go1.10.linux-amd64.tar.gz /usr/local/ cd /usr/local/ tar -zxvf go1.10.linux-amd64.tar.gz ln -s /usr/local/go/bin/go /usr/local/bin/go ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt adduser -c “Gogs” git su – git […]
How to install Grafana on centos 7
Telegraf collects time-series data from a variety of sources. InfluxDB stores time-series data. Chronograf visualizes and graphs the time-series data. Kapacitor provides alerting and detects anomalies in time-series data The TICK stack can be a powerful tool for storing, analyzing […]
chroot mount bind
mkdir -v -p /sftp/root/${USER}/home chown root.root /sftp/root/${USER} mount –bind //${DIR} /sftp/root/${USER}/home useradd -g tomcat -s /sbin/nologin ${USER} sshd_config Match Group tomcat AllowTcpForwarding no ForceCommand internal-sftp -u 0002 -d home ChrootDirectory /sftp/root/%u All folder must have permission as 777, so I […]
ssh tunnel squid proxy setup
SSH is a very secure encrypted connection. Much much easier to setup then a VPN. its quite easy to setup, on the server side all we need is Open SSH and Squid on the client side Windows we can use […]