How to find which folder under overlay2 directory belong to which container?
- No Comments
- wrz, 11, 2023
- siwy
- Docker, Linux, Useful commands
If you’ve been working with Docker, you might have wondered where Docker actually stores the filesystems of your containers on your host machine. This information can be crucial for various reasons, such as debugging, storage optimization, or general curiosity. Well, with a simple one-liner, you can get a neat list of all your containers along […]
Read MoreExploring Directories and Files Using Linux Commands
- No Comments
- sie, 28, 2023
- siwy
- Linux, Useful commands
In the Linux environment, we have access to a range of powerful tools that allow us to effectively manage and search for files and directories. In this article, I will focus on two exemplary commands that enable us to find directories with a specific name and search files for a particular pattern. 1. Searching for […]
Read MoreTranslating My CV into Code: A Journey from JSON to LaTeX
- No Comments
- sie, 20, 2023
- siwy
- Knowledge, Useful commands, Useful programs
When it comes to managing and formatting a curriculum vitae (CV), traditional methods can sometimes feel limiting. In an attempt to find a flexible and tech-savvy solution, I embarked on a journey to translate my CV into code. Here’s what I discovered: Exploring JSON Resume My first experiment was with JSON Resume, a project that […]
Read MoreAn Alternative to the 'kubectl get all’ Command.
- No Comments
- cze, 29, 2023
- siwy
- Kubernetes, okd, Useful commands
Have you ever wondered how to get a more detailed and complete view of resources in an OpenShift namespace? The standard oc get all command is helpful, but it is unable to display all the resources in namespaces, only returning a basic set of resource types. Today, I want to introduce you to an alternative […]
Read MoreProxMox – 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 More