User contributions
From DevOps Notebook
- 17:11, 5 September 2022 diff hist +172 N Redirect www to non-www in nginx Created page with "<syntaxhighlight lang="nginx"> server { listen 80; server_name www.devopsnotebook.com; return 301 $scheme://devopsnotebook.com$request_uri; } </syntaxhighlight>" current
- 17:11, 5 September 2022 diff hist +172 N Redirect non-www to www in nginx Created page with "<syntaxhighlight lang="nginx"> server { listen 80; server_name devopsnotebook.com; return 301 $scheme://www.devopsnotebook.com$request_uri; } </syntaxhighlight>" current
- 17:10, 5 September 2022 diff hist +82 NGINX current
- 09:28, 30 August 2022 diff hist +49 Select server with bash case based on IP subnet current
- 09:28, 30 August 2022 diff hist +243 N Select server with bash case based on IP subnet Created page with "#!/bin/bash server_ip=hostname -I | cut -d' ' -f1 case "$server_ip" in 10.5.15.*) backup_ip=10.5.15.242 ;; 10.8.15.*) backup_ip=10.8.15.242 ;;..."
- 09:28, 30 August 2022 diff hist +56 Linux bash current
- 16:03, 29 August 2022 diff hist +182 Usefull docker commands current
- 10:07, 2 August 2022 diff hist +72 Update mysql user password
- 10:06, 2 August 2022 diff hist +313 N Update mysql user password Created page with "<pre> mysql> ALTER USER 'user-name'@'some_host_ip' IDENTIFIED BY 'NEW_USER_PASSWORD'; mysql> FLUSH PRIVILEGES; </pre> For earlier versions of mysql (mysql 5.7.6 or MariaDB 10..."
- 10:03, 2 August 2022 diff hist +34 MySQL Commands snippets current
- 10:14, 28 July 2022 diff hist 0 Linux How To current
- 20:36, 13 February 2022 diff hist +152 Linux cli snippets
- 13:19, 5 February 2022 diff hist +205 N Set date and time manually in linux shell Created page with "<pre> # date -s "28 JUN 1984 09:30:00" # date +%Y%m%d -s "19830628" # date +%T -s "09:30:00" # timedatectl set-ntp no # timedatectl set-time '1983-06-28' # timedatectl set-tim..." current
- 13:16, 5 February 2022 diff hist +50 Linux How To
- 18:16, 27 January 2022 diff hist +392 N Check ttfb (time to first byte) with bash script Created page with "<syntaxhighlight lang="bash"> #!/bin/bash # file: ttfb.sh # curl command to check the time to first byte # ** usage ** # 1. ./ttfb.sh "https://google.com" # 2. seq 10 | xargs..." current
- 18:15, 27 January 2022 diff hist +57 Linux bash
- 17:51, 27 January 2022 diff hist +1 Get cpu count with bash script current
- 17:50, 27 January 2022 diff hist -16 Get cpu count with bash script
- 17:50, 27 January 2022 diff hist +267 N Get cpu count with bash script Created page with "<syntaxhighlight lang="bash"> #!/bin/bash CPUCOUNT=`cat /proc/cpuinfo |grep processor |wc -l` echo "CPU COUNT IS: " $CPUCOUNT if [ $CPUCOUNT -lt "5" ] then MAXSES..."
- 17:48, 27 January 2022 diff hist +38 N Linux bash Created page with "Get cpu count with bash script<br>"
- 17:48, 27 January 2022 diff hist +20 Linux current
- 12:26, 26 January 2022 diff hist +434 N Port forward mysql on local network with SSH Created page with "Run from server you wanna access to MySQL that is on private network<br> that is not in same network as we are. <pre> $ ssh -v -4 -N -L 3307:<sql_server_private_ip>:3306 root@..." current
- 12:21, 26 January 2022 diff hist +53 Linux How To
- 10:55, 19 January 2022 diff hist +270 N Usefull docker commands Created page with "=== Clean up overlay folder === <pre> # docker system prune -a -f </pre> or <pre> # docker rm -v $(sudo docker ps -a -q -f status=exited) # docker rmi -f $(sudo docker images..."
- 10:54, 19 January 2022 diff hist +31 N Docker Created page with "Usefull docker commands<br>" current
- 10:53, 19 January 2022 diff hist +15 Main Page
- 22:36, 8 January 2022 diff hist +1 MySQL all databases backup in separate files current
- 22:33, 8 January 2022 diff hist +66 MySQL all databases backup in separate files
- 23:54, 16 December 2021 diff hist +166 N "Cannot execute /bin/bash: Permission denied" - solved! Created page with "This happens when selinux is not disabled or configured. <br><br> Easiest way to fix it is login via console and in ``/etc/selinux/config`` set '''selinux=disabled'''" current
- 23:53, 16 December 2021 diff hist +65 Linux How To
- 09:59, 14 December 2021 diff hist +1,160 N Basic iptables firewall template Created page with "<pre> # Flush INPUT/OUTPUT/FORWARD chains iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD # Drop invalid packets iptables -A INPUT -m conntrack --ctstate INVALID -j..." current
- 09:58, 14 December 2021 diff hist +41 Networking current
- 12:59, 11 December 2021 diff hist +155 N SSH login without key auth (force password authentication) Created page with "<pre> ssh -o PasswordAuthentication=yes -o PreferredAuthentications=keyboard-interactive,password -o PubkeyAuthentication=no host.devopsnotebook.com </pre>" current
- 12:58, 11 December 2021 diff hist +67 Linux How To
- 22:00, 2 December 2021 diff hist -5 Update windows active directory password complexity current
- 22:00, 2 December 2021 diff hist +310 N Update windows active directory password complexity Created page with "# Open the group policy management console (Type gpmc.msc in Search or Run) # Expand Domains, your domain, then group policy objects # Right click the default domain policy..."
- 21:58, 2 December 2021 diff hist +55 N Windows Group Policy Management Created page with "Update windows active directory password complexity" current
- 21:57, 2 December 2021 diff hist +40 Windows
- 00:09, 7 November 2021 diff hist +178 Amazon EC2
- 10:09, 29 October 2021 diff hist -4 Test MariaDB MaxScale readwrite current
- 10:09, 29 October 2021 diff hist +1,497 N Test MariaDB MaxScale readwrite Created page with "Check if you are getting always Slave servers id in maxscale '''SELECT''': <syntaxhighlight lang="MySQL"> > SELECT @@server_id AS "Server ID"; </syntaxhighlight> 1. Create te..."
- 10:03, 29 October 2021 diff hist +25 MaxScale current
- 10:02, 29 October 2021 diff hist +51 N MaxScale Created page with "== Tests == Test MariaDB MaxScale readwrite<br>"
- 10:02, 29 October 2021 diff hist +34 MySQL
- 21:33, 9 September 2021 diff hist +258 Amazon EC2
- 09:58, 25 August 2021 diff hist +4 Setup ftp server on linux with VSFTPD current
- 09:58, 25 August 2021 diff hist +9 Setup ftp server on linux with VSFTPD
- 09:58, 25 August 2021 diff hist +565 N Setup ftp server on linux with VSFTPD Created page with "Depending on distro, install it first: CentOS: <pre> # yum install vsftpd # OR # dnf install vsftpd </pre> Debian: <pre> # apt install vsftpd </pre> Edit /etc/vsftpd/vsftpd.c..."
- 09:51, 25 August 2021 diff hist +49 Linux How To
- 15:33, 16 July 2021 diff hist +159 MySQL Commands snippets