Getting rid of Putty – ssh history
for ((i=1; i<=5; i++)); do history -d $(history 1 | awk '{print $1}'); done
to get rid of the last 5 lines / commands
for ((i=1; i<=5; i++)); do history -d $(history 1 | awk '{print $1}'); done
to get rid of the last 5 lines / commands
Here is the script its pretty self-explanatory on its own. Will expand on it later
As usual add this code to your functions.php Filtering only featured products comes in handy in several scenarios especially reordering them
Moving a WordPress site from your main domain to a subdirectory (like from site.com to site.com/mirror/) is a common task for developers working on staging environments or site redesigns. However, simply copying files isn’t enough—you need to update your database to reflect the new URL structure. Here’s your comprehensive guide to making this transition smoothly….
As usual add it to your functions.php and adjust as needed
Protip: 💡You can use | pipes to preview multiple fonts at once. Backstory: There I was trying to choose a font that I can use as a logotype out of a few candidates I noticed Google fonts has no option to “select” some fonts so that I can view them all at once. So intuitively…
We were promoting our codes with capital letters as a style choice But while the code “burhi” worked the code BURHİ did not because Turkish, “i” and “İ” are considered as different characters, and the lowercase of “İ” is “i”, not “ı”. T. The code should work for other international accented diacritic characters like umlauts