All public logs
From DevOps Notebook
Combined display of all available logs of DevOps Notebook. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)- 12:31, 10 November 2020 MilosZ talk contribs created page Amazon EC2 (Created page with "=== Initialize disks in Amazon EC2 in Windows === <pre> PS C:\> C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeDisks.ps1 </pre>")
- 14:33, 5 November 2020 MilosZ talk contribs created page MySQL issues and solutions (Created page with "=== ERROR 1799 (HY000): Creating index 'PRIMARY' required more than 'innodb_online_alter_log_max_size' bytes of modification log. Please try again. === <pre> mysql> show varia...")
- 10:47, 2 November 2020 MilosZ talk contribs created page Wordpress wp-admin goes into loop when on cloudflare ssl (Created page with "If there is no ssl configured on web server but is enabled in cluodflare,wp-admin often goes in to loop with error: <pre> The page isn’t redirecting properly An error occur...")
- 10:40, 2 November 2020 MilosZ talk contribs created page Wordpress issues (Created page with "Wordpress wp-admin goes into loop when on cloudflare ssl")
- 10:40, 2 November 2020 MilosZ talk contribs created page Wordpress (Created page with "Wordpress issues")
- 10:39, 2 November 2020 MilosZ talk contribs created page Web development (Created page with "Wordpress")
- 12:00, 30 October 2020 MilosZ talk contribs created page Block referrer url in nginx (Created page with "In order to block referral url in nginx, add in server block: <pre> if ($http_referer ~* badwebsite.com) { return 403; } </pre>")
- 09:23, 19 October 2020 MilosZ talk contribs created page How to check .NET version using PowerShell (Created page with "<syntaxhighlight lang="PowerShell"> Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -...")
- 16:50, 9 October 2020 MilosZ talk contribs created page Mysqldump all tables from database in separate files (Created page with "<syntaxhighlight lang="bash"> #!/bin/bash USER=myuser PASSWORD=mypwd DATABASE=nameofdb for i in $(mysql -uUser -pPASSWORD DATABASE -e "show tables;"|grep -v Tables_in_);do my...")
- 19:31, 8 October 2020 MilosZ talk contribs created page Add MySQL Slave replication delay (Created page with "<pre> CHANGE MASTER TO MASTER_DELAY = N; </pre>")
- 19:29, 8 October 2020 MilosZ talk contribs created page How to allow or remove access to port 80/443 with firewalld in CentOS 8 (Created page with "Allow port 80 and port 443 with firewall-cmd <pre> # firewall-cmd --zone=public --add-port=80/tcp --permanent # firewall-cmd --zone=public --add-port=443/tcp --permanent # fir...")
- 19:04, 8 October 2020 MilosZ talk contribs created page Create default website in nginx (Created page with "Default website in nginx is useful to close connection when someone tries to access to webserver via IP<br> which is shown in this example, but you can easily create redirect...")
- 18:55, 8 October 2020 MilosZ talk contribs created page Block particular user agent (bots) in nginx (Created page with "<pre> # case insensitive matching if ($http_user_agent ~* (netcrawl|npbot|malicious|LWP::Simple|BBBike|wget|jorgee)) { return 403; } </pre>")
- 18:43, 8 October 2020 MilosZ talk contribs created page Block empty user agent nginx (Created page with "Add into server block <pre> if ($http_user_agent = "") { return 403; } </pre>")
- 18:28, 8 October 2020 MilosZ talk contribs created page How to Send a Message to Logged Users in Linux Terminal (Created page with "<pre> # wall "System will go down for 4 hours maintenance at 01:00 AM" </pre>")
- 18:23, 8 October 2020 MilosZ talk contribs created page How To Install memcache module for php 7.x in CentOS 8 (Created page with "Enable PowerTools and install dependencies in CentOS 8 <pre> # dnf --enablerepo=PowerTools -y install php-pear php-devel zlib-devel libmemcached-devel make </pre> Install me...")
- 18:19, 8 October 2020 MilosZ talk contribs created page How To Install ImageMagick and PHP Imagick on CentOS 8 (Created page with "Install Epel repo in CentOS 8 first and enable PowerTools <pre> # dnf install -y epel-release # dnf config-manager --set-enabled PowerTools </pre> Install ImageMagick package...")
- 13:29, 8 October 2020 MilosZ talk contribs created page Replace firewalld with iptables in CentOS (Created page with "Stop and disable firewalld <pre> # systemctl stop firewalld # systemctl disable firewalld </pre> Install and enable iptables service <pre> # yum install iptables-services # s...")
- 13:21, 8 October 2020 MilosZ talk contribs created page Ls (Created page with "Linux sort files by size with ls <pre> # ls -S -l # ls -l -S | sort -k 5 -n # sort top 5 largest files in reverse order # ls -l -S -h # sort by size in human readable format...")
- 13:15, 8 October 2020 MilosZ talk contribs created page Restore single MySQL table from a full database mysqldump backup file (Created page with "<pre> # sed -n -e '/DROP TABLE.*`mytable`/,/UNLOCK TABLES/p' mydatabase.sql > mytable.sql </pre>")
- 10:13, 6 October 2020 MilosZ talk contribs created page Install apache-commons-daemon-jsvc on centos 8 (Created page with "Currently there is no binary for centos 8 for jsvc so it needs to be built. <pre> # yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel.x86_64 # wget https://downloads....")
- 14:01, 5 October 2020 MilosZ talk contribs created page Subnet mask cheat sheet (Created page with "{| class="wikitable" style="margin: 1em auto 1em auto;" |- ! Slash !! Netmask !! Wildcard Mask |- | /32 || 255.255.255.255 || 0.0.0.0 |- | /31 || 255.255.255.254 || 0.0.0.1 |-...")
- 13:58, 5 October 2020 MilosZ talk contribs created page Networking (Created page with "Subnet mask cheat sheet<br>")
- 12:21, 27 September 2020 MilosZ talk contribs created page Linux software RAID (Created page with "== Replace failing drive in software raid 1 == Check which drive is failing <pre> # cat /proc/mdstat Personalities : [raid1] md3 : active raid1 sda4[0] 1822442815 block...")
- 14:42, 16 September 2020 MilosZ talk contribs created page Shred (Created page with "=== Zero out drives in linux === <pre> # shred -n 2 -z -v /dev/sdX </pre>")
- 09:56, 15 September 2020 MilosZ talk contribs created page MySQL all databases backup in separate files (Created page with "<syntaxhighlight lang="bash"> #! /bin/bash TIMESTAMP=$(date +"%F") BACKUP_DIR="/backup/mysql/$TIMESTAMP" # mkdir -p /backup/mysql if you don't have it MYSQL_USER="root" # use...")
- 11:50, 30 August 2020 MilosZ talk contribs created page Setting up MySQL Master-Master replication (Created page with "=== Prepare mysql setup === After installation, depending on distribution, find my.cnf and under mysqld add (or uncomment) : <br> '''Server 1:''' <pre> [mysqld] server_id...")
- 11:45, 30 August 2020 MilosZ talk contribs created page Setting up MySQL Master-Slave replication (Created page with "After installation, depending on distribution, find my.cnf and under mysqld add (or uncomment) : <br> '''Server 1:''' <pre> [mysqld] server_id = 1 log_bin...")
- 09:34, 29 August 2020 MilosZ talk contribs created page Windows Command Line snippets (Created page with "=== Search and replace string from windows command line === <pre> c:\ powershell -Command "(gc somefile.txt) -replace 'foo', 'bar' | Out-File -encoding ASCII somefile.txt" </...")
- 21:33, 26 August 2020 MilosZ talk contribs created page AWS Tools for PowerShell - Amazon EC2 Container Service (Created page with "=== Update ECS number of tasks === <pre> Update-ECSService -Cluster <cluster name> -DesiredCount <number of wanted tasks> -TaskDefinition <task definition> -Service <name of...")
- 21:31, 26 August 2020 MilosZ talk contribs created page Amazon ECS (Created page with "AWS Tools for PowerShell - Amazon EC2 Container Service")
- 18:21, 7 June 2020 MilosZ talk contribs created page Rename multiple files with powershell (Created page with "Example:<br> Rename files named image.1.jpg, image.3.jpg... into 1.jpg, 3.jpg <br> <pre> <pre> Get-ChildItem image.*.jpg|ForEach-Object { $NewName = $_.Name -replace "^(i...")
- 18:05, 7 June 2020 MilosZ talk contribs created page Run command or script on linux startup (Created page with "There are few ways. 1. With /etc/rc.local")
- 06:33, 14 May 2020 MilosZ talk contribs created page Create a custom systemd service (Created page with "<pre> # vim /etc/systemd/system/myservice.service </pre> <pre> [Unit] Description=My systemd service. [Service] Type=simple ExecStart=/bin/bash /usr/bin/my_service.sh [Inst...")
- 06:14, 14 May 2020 MilosZ talk contribs created page Installing Python 3 with virtualenv on Amazon Linux v2 (Created page with "<pre> # yum install epel-release # yum install python3.x86_64 python3-pip # pip3 install -U pip # pip3 install -U virtualenv # /usr/local/bin/virtualenv .env </pre>")
- 11:51, 28 April 2020 MilosZ talk contribs created page Install maldet and run scan (Created page with "<pre> # wget https://www.rfxn.com/downloads/maldetect-current.tar.gz # tar -xvf maldetect-current.tar.gz # cd maldet-<version> # ./install.sh # maldet -a (scan all) # maldet...")
- 08:19, 17 April 2020 MilosZ talk contribs created page Tar (Created page with "=== Exclude file or folder from tar archive === <pre> $ tar --exclude='./uploads' --exclude='./uploads/folder2' -zcvf /backup/filename.tgz . </pre>")
- 10:16, 16 April 2020 MilosZ talk contribs created page Check if IP is valid (Created page with "Method 1: <syntaxhighlight lang="python"> import socket try: socket.inet_aton(addr) # legal except socket.error: # Not legal </syntaxhighlight> Method 2: <syntaxh...")
- 23:12, 10 April 2020 MilosZ talk contribs created page How To Install PHP 7.3 on CentOS 8 (Created page with "<pre> # dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm # dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm # yum list | g...")
- 23:11, 10 April 2020 MilosZ talk contribs created page Linux How To (Created page with "How To Install PHP 7.3 on CentOS 8 <br>")
- 10:23, 9 April 2020 MilosZ talk contribs created page Send email using stored procedure in mssql (Created page with "<syntaxhighlight lang="mysql> EXEC msdb.dbo.sp_send_dbmail @profile_name = 'Db email', @recipients = '[email protected]', @body_format ='HTML', @body...")
- 10:14, 9 April 2020 MilosZ talk contribs created page MSSQL (Created page with "==Microsoft SQL Server== Send email using stored procedure in mssql<br>")
- 10:07, 9 April 2020 MilosZ talk contribs created page .NET CLR LocksAndThreads Queue (Created page with "<syntaxhighlight lang="json"> { "IsEnabled": true, "EngineConfiguration": { "Components": [ { "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogIn...")
- 10:06, 9 April 2020 MilosZ talk contribs created page CloudWatch configuration files snippets (Created page with ".NET CLR LocksAndThreads Queue <br>")
- 09:43, 9 April 2020 MilosZ talk contribs created page Setup password authentication in nginx (Created page with "Generate htpasswd password and put it in file <pre> # echo "admin:$(openssl passwd -apr1 Q89C82CNCeLxfSX3)" | sudo tee -a /etc/nginx/.htpasswd # cat /etc/nginx/.htpasswd </pre...")
- 15:28, 5 April 2020 MilosZ talk contribs created page Linux cli snippets (Created page with "== Linux command line snippets == === Get website SSL certificate details using CLI === <pre> $ echo | openssl s_client -showcerts -servername sendfileto.net -connect sendfil...")
- 15:22, 5 April 2020 MilosZ talk contribs created page CMD (Created page with "=== Restart windows via CMD === <pre> shutdown /r /f /t 180 /c "Please Save your work now your computer will logoff" </pre>")
- 23:01, 4 April 2020 MilosZ talk contribs created page AWS CLI (Created page with "'''AWS Command Line Interface''' snippets == EC2 via AWS CLI == === Start EC2 instance by tag === <pre> $ aws ec2 describe-instances --filters Name=tag:AutomationGroup,Value...")
- 16:16, 21 March 2020 MilosZ talk contribs created page Percona XtraBackup (Created page with "== Backup and restore with XtraBackup 8.0 == ''Note that credentials need to be in .my.cnf in home folder of running user'' Backup: <pre> $ xtrabackup --backup --target-dir=/p...")
- 14:20, 21 March 2020 MilosZ talk contribs created page Nmap (Created page with "=== Scan network for free ip address in a range === <pre> # nmap -sP -PR 10.5.12.0/24 </pre>")