Amazon S3 CORS Settings with CloudFront on Amazon Web Services
If you are serving static content directly Amazon S3 via CloudFront (CDN) you should probably get an error about fonts, images or other static contents to deliver for your users. Actually, it’s not complicated. You can fix this issue on your Amazon S3 Bucket CORS settings. What is Amazon S3 CORS? Cross Origin Resource Sharing…
Take your GitLab backup everyday if it works in Docker
I’m using GitLab in docker (because I love containerization) and I’m really okay with that because I can move the GitLab environment everywhere if I need and I can feel more elastic when I’m using docker. GitLab backups are really so important because you are keeping all of the source code and maybe wiki maybe…
Find large files in CentOS, ubuntu and MacOS easily
Sometimes, maybe everybody needs to check large files in the system. There some useful commands which I’m using often. Find the big files in Linux easily. Here is the first pattern: If file size more than 250 MB in the system: Here is the results:
Fix “Error: rpmdb open failed” on CentOS or Amazon Linux 2
Yesterday, I have started to test some services on running Amazon Linux 2 powered by Amazon Web Services cloud. For some reason, my package manager yum is broken and when I started to update my yum database, I’ve got an error about rpmdb open failed. You can see my error below. If you are running…
Error: No space left on the device when starting/stopping services only
I’m using Amazon SSM Agent for connecting to EC2 instance via securely. Amazon SSM Agent is also able to connect to the EC2 instance console via aws.amazon.com web console. So, this is my preferred way. About a few days ago, when I tried to connect to EC2 via Amazon SSM Agent it doesn’t respond and…
Juniper SRX110H-VA VDSL2 Configuration Step by Step
I was talking on the phone with Kenan Bilgic last night and I told him to “I want to get a Juniper SRX-110H-VA”. After this, Kenan told me, “I’ve already got a Juniper SRX-110H-VA, and just send me to your address, I can ship it for you.” I’m using TurkNet as an internet provider and…
Enable Logrotation for Docker Containers
When you install and use Docker on your system, the container running in the docker can generate a large number of logs while you are not aware of the background. Although the Docker service normally supports logrotate, this support comes off by default. If one day your disk ends suddenly, then you will know exactly…
Download specific file extension via wget easily on terminal
Sometimes, there may be files with more than one extension in a directory or folder. For example, .jpg, .png, .gif, .mp3, .mp4 etc. You want to download only gif files specifically from that source, but don’t know how to do this? Don’t be afraid, you’re right. wget is small software with a GNU license (i.e.…
Find the exact size of certain files in Linux via terminal
One day, there may be a lot of files in more than one extension in the macOS, Linux or server you use, and you may be wondering about the size of these files or just want to see the size of the files with the corresponding extension for a specific study. The other day, the…