ProxMox – net::ERR_CONTENT_LENGTH_MISMATCH
- No Comments
- kwi, 14, 2019
- siwy
- Debian, Linux, ProxMox, Useful commands, virtualization
Error repair curl –insecure https://IP:8006/pve2/ext6/ext-all-debug.js
Read MoreEncrypted zip with hidden files list without compression
- No Comments
- lis, 26, 2018
- siwy
- Useful commands
7z a -p -t7z -mx0 -mhe=on file.7z /path/dir a – Add files to archive -p – Set Password -t7z – Set type of archive -mx0 – Set compression Method 0 – NON 1 – Fastest 3 – Fast 5 – Normal 7 – Maximum 9 – Ultra -mhe=on – Hide files list
Read MoreManual change of URL in WordPress
- No Comments
- paź, 18, 2018
- siwy
- Useful commands, WordPress
First login to database. Check what is the current URL: select * from wp_options where option_name = ‘home’ OR option_name = ‘siteurl’; SQL to change URL: UPDATE wp_options SET option_value = replace(option_value, ‘https://www.old.pl’, ‘http://new.home.pl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘https://www.old.pl’,’http://new.home.pl’); UPDATE wp_posts SET […]
Read MoreChange hostname permanent
- No Comments
- cze, 10, 2018
- siwy
- Debian, Linux, Useful commands
sudo hostnamectl set-hostname new.name.1 and change old hostname to new in /etc/hosts.
Read MoreTest GitLab commands
- No Comments
- cze, 09, 2018
- siwy
- GitLab, Linux, Useful commands
sudo gitlab-rake gitlab:check –trace sudo gitlab-rake db:migrate:status –trace gitlab-ctl tail
Read MoreInstall old version GitLab on Debian.
- No Comments
- cze, 09, 2018
- siwy
- GitLab, Linux, Useful commands
Source: GitLab Install GitLab’s repos I. Creating a backup sudo gitlab-rake gitlab:backup:create II. Install and restore backup: sudo aptitude install -y curl openssh-server ca-certificates curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash sudo aptitude install gitlab-ee=10.7.3-ee.0 sudo mv 1526756133_2018_05_19_10.7.3-ee_gitlab_backup.tar /var/opt/gitlab/backups/. sudo gitlab-ctl stop unicorn sudo gitlab-ctl stop sidekiq sudo gitlab-rake gitlab:backup:restore BACKUP=1526756133_2018_05_19_10.7.3-ee sudo gitlab-ctl restart […]
Read MoreRefreshing commands (watch)
- No Comments
- maj, 26, 2018
- siwy
- Useful commands
watch -n 5 cat /proc/test
Read MoreCRON – example
- No Comments
- maj, 11, 2018
- siwy
- Useful commands
minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names) day of week 0-7 (0 or 7 is Sunday or use names) Every 5 min */5 * * * * root /p/a/t/h/aaaa.sh Every hour, from 9:00 to 18:00 00 09-18 * * * root /p/a/t/h/aaaa.sh Every day, at 9:00 and 18:00 00 09,18 […]
Read Morenetstat – listening ports
- No Comments
- maj, 11, 2018
- siwy
- Useful commands
netstat -tlp netstat -tlpn
Read Morenmap – port scanning
- No Comments
- maj, 11, 2018
- siwy
- Useful commands
nmap -sV –script ssl-enum-ciphers www.bujakiewiczpawel.pl
Read More