Sometimes, specially when you are using Arch, after using
pacman -Syu, and updating linux-firmware, you
will find that there is no wifi present after rebooting. Donot panic,
there is a bug in firmware for iwlwifi which block your system to load
latest firmware for iwlwifi. Just issue command journalctl -p 3 -xb,
this will let you know that firmware file is not loading (I dont recall
the exact error message).
When you place Nginx behind Cloudflare, the http_remote_addr in Nginx access_log will contain the Cloudflare IP, which is not helpfull when banning users. To enable Nginx to resolve the real IP of visitors, we need to whitelist the Cloudflare IPs and map the header value.
Since Cloudflare may update their IP addresses, it’s best practice to stay synced with them. To overcome this difficulty, a nice systemd timer at /etc/systemd/system/cloudflare.timer like
This timer will run after 4 weeks and start a service /etc/systemd/system/cloudflare.service which in turn will execute bash script at /usr/bin/get_cloudflare_ips.sh
In Ubuntu, you will some time find fallback kernels in /boot. These are
some time annoyning specially when you do not have something else to do.
I’m using ubuntu server for my web projects, I updated it, to my my
surprize there were about four versions of kernel were present. Yes you
can certainly delete them by issuing command but why so easy. Why not
use just one command and you will get only two, one for main use and
other one for fallback.
So any time you got more than two use this command
You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.
Jekyll requires blog post files to be named according to the following format:
YEAR-MONTH-DAY-title.MARKUP
Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets:
defprint_hi(name)puts"Hi, #{name}"endprint_hi('Tom')#=> prints 'Hi, Tom' to STDOUT.
Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo. If you have questions, you can ask them on Jekyll Talk.