Select Page

webalizer analog awstats cleanup script on cPanel/WHM

i usually disable awstats analog and webalizer on cPanel/WHM because there’s much better alternatives out there, like Google Analytics, however if you’re doing it on a server that has been running them for a while now, the cached data remains, so here’s a script to clean that up:

#!/bin/bash -x
for i in $(ls /var/cpanel/users)
do
cd /home/${i}/tmp && rm -rf analog awstats webalizer
done

cPanel/WHM clear user logs script

Sometimes on cPanel/WHM the php user logs get large and/or might not get rotated properly. This script should take care of this

nano /root/logs.clear.sh

paste the contents below

chmod 700 logs.clear.sh

./root/logs.clear.sh

#!/bin/bash -x
for i in $(ls /var/cpanel/users)
do
cd /home/${i}/logs && find . -type f -name “*.php.error.log” -print0 | xargs -0 -I{} sh -c ‘echo “” > “{}”‘\;
done

redis – maintenance script

redis – maintenance script

Recently we had issues with Redis acting up, so i got this maintenance script going, that checks the Redis availability and resets it, if it becomes unavailable. Hope it helps

#!/bin/bash

LOG_FILE=”redis.log”

# Function to log a message with date and time
function log_message() {
local message=”$1″
echo “$(date ‘+%Y-%m-%d %H:%M:%S’) – $message” >> “$LOG_FILE”
}

# Function to check if Redis is running
function is_redis_running() {
redis_status=$(systemctl is-active redis.service 2>&1)
if [ “$redis_status” = “active” ]; then
return 0
else
return 1
fi
}

# Function to check if Redis is accepting operations
function is_redis_accepting_ops() {
if redis-cli set testkey 1 >/dev/null 2>&1 && [ “$(redis-cli get testkey)” = “1” ]; then
redis-cli del testkey >/dev/null 2>&1
return 0
else
return 1
fi
}

# Function to restart Redis
function restart_redis() {
sudo systemctl restart redis.service
}

# Main script
function main() {
if is_redis_running && is_redis_accepting_ops; then
echo “Redis is running and accepting operations.”
else
log_message “Redis is not running or not accepting operations. Restarting Redis…”
restart_redis

# Wait for Redis to start up (you may adjust the sleep time if needed)
sleep 5

if is_redis_running && is_redis_accepting_ops; then
log_message “Redis restarted successfully and is now accepting operations.”
else
log_message “Failed to restart Redis or Redis is still not accepting operations.”
fi
fi
}

#Run
while true
do
main
sleep 10
done

Guidelines for a true god

Guidelines for a true god

You are never lost if a true god is around, you are just wandering.

A true god would never ask you to follow him unless he wants to show you something.

A true god will never force you to love him, nor demand love, because that is not how love works. You would love a person whether a god or otherwise, because of their character and who they are, because of the things they do, and because you appreciate them for all these things, on your own.

A true god will never threaten you with punishment if you don’t prostrate and praise him all day and pray to him. Prayer is used in times of need when there seems to be no hope, not to pollute the air, and done on command.

A true god will never give gifts and then demand payment in return, or demand anything in return. He just gives because he can, and because it brings him joy to do so, and he will always do it with no strings attached.

A true god will not send messengers. He will come himself. Only kings send messengers and people who think of themselves as of a higher status than everyone else. A true god will not put himself on a pedestal and neither will he need any worship from anyone.

A true god is kind most of the time, although he might become furious with people pretending to be his messengers or himself, in order to exert control over other people.

A true god will never feel the need to take ownership or feel the need to tell you that things he created are his, because they just … are. He will only be happy if you enjoy everything there is, and behave like a decent human being towards it all, be it nature, people, or any other kind of being.

The only way a true god would come to visit this earth would be not as a king or a leader but as a friend and companion. He would most likely come unnoticed, helping here and there, with the only special power that is needed – his word.

A true god would have no business giving anyone rules about how to live their life. A true god would have no interest in telling you how to spend your money when to have sex, who to have sex with, or what to eat.

A true god will never set in stone what is right and what is wrong. It is up to everyone to build their moral compass and their fundamental values and act accordingly. In decency, or not.

A true god should never have to prove himself to anyone, by doing miracles or otherwise. Most of the things he would do, he would do in a way that people own themselves, and they do not owe their good to someone else. People should not be under a leash or indebted.

So if you’re a god, and you’re out there, even if the information available in the world might be overwhelming and you forgot what you are, i hope you don’t become what the books write of what you should be. Unless, obviously, that is what you are, in which case – good luck.

Sincerely,

i

The Qur’an – a review

The Qur’an – a review

After reading The Torah, i thought i should continue on the same path and read The Qur`an. If The Torah made me incredibly disappointed, The Qur’an made me a little bit furious. Furious because to me, reading it, it made me feel like this book was written with a purpose, by a certain group of people who chose to create it in order to mock and enslave the Arab people.

It became apparent after the first four or five Surahs, that we are dealing with repetition. And the amount of repetition here is insane. i doubt that if anyone started writing a new version of the Qur’an but with the repetitions removed, it would go beyond 100 pages.

“The appetite for applause counts amongst the lowest of human character traits.” – Jan-Willem van der Rijt

It speaks of the same petty, jealous, vengeful, and insecure God described in The Torah that desires nothing more but people prostrating every day in front of him, many times a day, worship and praise him, because it gave gifts that nobody asked for, and in exchange, he demands you to give him praise, because obviously, that is how gifts work – you give someone a gift and then you expect them to give you praise, otherwise punishment in the form of fire, torment, replace you with other people awaits you.

Reading it in pieces, one Surah at a time doesn’t reveal any of this, but if one starts reading it as you’d normally read a book, immerse ourselves in the reading, then it becomes evident what we are dealing with, here.

“The happiness of most people is not ruined by great catastrophes or fatal errors, but by the repetition of slowly destructive little things.” – Ernest Dimnet

Anyway, the main repetitions are:

  • God made everything, God sees and hears everything, everything is recorded, and there is no escape, so you’re sort of a prisoner for no apparent reason at all, other than if you choose not to believe in this God, otherwise you will burn and have torment – this is mixed and remixed and words changed but the message is the same – probably over 100 times.
  • Story of Moses and the bush and Moses and the pharaoh – repeated about 15 times or more, each.
  • The story of Iblis – the only thing that i believe is new in the Qur`an – is repeated about 9-10 times.
  • Story of David – repeated about 7 or 8 times.
  • Believers will get the final triumph which is sitting around in gardens with flowing streams and lots of women at their disposal. Golden palaces and … everyone will say good things all the time. Golden cups passing between people, couches to sit on, fruit and meat to eat and beautiful women await them. – repeated about 40-50 times.
  • “God/we have created man from a drop of fluid” and the accompanying story – reworded and repeated over 30 times.
  • If there are people who choose not to believe in this petty and jealous God that demands you to sit on your knees and pray and worship him all day, you should fight them, in his name, because apparently even though he is almighty and powerful, he is just testing you. – repeated about 5-10 times.
  • Disbelievers will: be losers, burn, experience torment, get destroyed, they will be made stupid, their hearts will close, they and become blind – repeated probably more than 100 times, with different phrases variations.
  • The book also sows discord between parents and their children as well as children and their parents, if they do not “believe the right, one true path” – this is repeated over 20 times.
  • If someone does not believe, they are clearly wrong and you should not discuss it with them, because God closed their minds and made them stupid.
  • Idolaters – people minding their own business and doing whatever they want to do, they are obviously in the wrong and should be punished for … not really harming anyone but just not choosing to believe in this insecure, petty, jealous, God, that will burn and kill everyone and put boiling water down their throats if they don’t sit on their knees all day, worshipping and praying to him. And you should be the one punishing them.
  • Truth – “this is the truth” – repeated more times than i can count, as if truth needs to be uttered more than once.
  • Money, fortune, and poor people – If there are people that have more than others, it’s as God wanted. God made some people rich and some people poor and we just have to deal with it, because it’s as God wanted. Rich people obviously got their riches from God, they didn’t take them from others, and evidently, they have no responsibility towards everyone else, except maybe to get even richer, because this is how God ordained. – probably repeated over 25 times in various Surahs. Also if there are rich people who mistreat all around them, don’t hold them accountable, because God will hold them accountable in the afterlife, so let them do as they please. (pretty convenient, right?)
  • One of the most brave claims is that there is no one else to hold God accountable. God does as he pleases, he can choose to do harm or good, as he pleases, wipe people out, with no consequence. He is at the top of the food chain so he acts that way. – repeated about 7- 8 times.
  • One of the things i hate is this trick used in conversation by people who try to manipulate others into not questioning them, which is the repetition and imagining of things that never happened. i think it’s more than 100 times of instances when they speak of “They will say you are lying” “They will say that this is not the word of God”, “They will say this” “They will say that” “and we will say…” “and God will say…” “and you say ….” – this is a low-level technique which i find disgusting and it annoys me when people put words in other people mouths and then go on and call it “scripture” and “ancient tales” because those are not ancient tales nor scriptures if they are just imagined things of what people “might” say, are they? It’s also one of those techniques which liars use when they try to block people from questioning them: “You will say i am a liar!”.

If the book starts innocently by claiming that Muhammad is just a messenger, as it progresses and towards the end, offending him, is considered as offending God. If you offend the prophet or question him, it’s the same as offending God himself, and all your good deeds will be wiped out just like that.

As the book moves forward, the demeanor of the writing changes which makes me believe there are multiple writers of it. However, the level of the discussion is the same as “we – the divinity” talk to “you – the prophet” but if there are different writers, is it still the same “we – the divinity” talking to “you – the prophet” ? Wouldn’t the message be consistent?

This was an incredibly hard read because i could feel myself getting dumber and dumber each day, as i progressed through this amount of repetitions.

The book keeps repeating over and over again that the message is clear (over 60 times) but then it goes on contradicting itself, saying that “there are signs in all of this”, which sort of invites you to re-interpret what was written, but if the message was clear does it need interpretation?

A friend of mine gave me this article, that read “Islamic scholar receives 2.000.000$ to find mistakes in the Qur`an” – i don’t think there are any mistakes in the Qur’an – it’s a book written with a specific intention.

The same friend told me before i started reading “We have challenged the world to produce a similar work but nobody could come up with anything like this”, and i thought “Wow those are nice words, this must be something really special”. But then i started reading, and then i realized those weren’t his words, it was just repeating the same words that they were told in the book. i don’t think the world has produced a similar work, because … the majority of the world probably doesn’t feel the need to imprison and dumb down an entire society, but that’s just probably me.

The book contains traces of Kabbalah reasoning, especially in the way that it just dumps all reasoning and starts attributing everything under the sun and the moon to them, because there’s nobody else to prove otherwise, so someone has to take ownership.

On the other hand, this brings us to the topic of the “Islamic Scholars” – apparently if you name someone a “Scholar” – they gain authority and everyone believes them. After reading the Qur’an, i wonder if these people that are paid to “study” the Qur’an are honest or even educated, because if they are studying and they aren’t pointing these things out, then what are they really doing? Are they just being paid to promote the Qur’an as a holy book, and keep the scam going? Are they good people in doing so? And if they are paid to keep this enslaving and mockery going? Who is paying them?

Einstein and Bohr. Einstein liked inventing phrases such as “God does not play dice,” “The Lord is subtle but not malicious.” On one occasion Bohr answered, “Einstein, stop telling God what to do.”

As the book progresses, starting with the middle of it, the persons referring to themselves as “we”, start giving orders about what God is and is not, what he should do and how he should behave, doesn’t have children, nor spouses, just all alone and mighty and all watching and all knowing, sits around all day controlling everything: The Sun, The Moon, the growth of plants, the birth of babies, rain, lightning, winds, dust, like a puppeteer.

There was at some point a few years ago, a bunch of happenings of burnings of the Qur’an. That would be a mistake because you don’t want these books to disappear. These books should remain as proof.

“If we can’t laugh at something, we can’t think rationally about it.” – Clay Johnson

Across The Qur’an, as well as The Torah, there’s a consistency in lack of laughter or humor. It seems rather impolite to believe god doesn’t have a sense of humor.

The version of the Qur’an i read, was written by M. A. S. Abdel Haleem

i chose this version because it seemed to be the most widespread and highly regarded “interpretation”. As if The Word of God would need interpretation. This brings me to the topic of “interpretations”. All he does is repeat in the beginning of each Surah, some of the phrases in the Surah, without really bringing up any arguments or explanation (not that there would be any complexity that would need explaining). By the middle of the book, he sort of runs out of words himself, and falls in repetition, but i would have been surprised if that were not the case. There’s only so much one can repeat before running out of words.

The good thing about books is that we can put faces and names to them, so whoever did this, was fully aware of what they were doing, and they paid or got paid to do so.

“Man has been created for toil and work”

It is said that the little things have the most impact, so if the previous 98 percent of the book kept bashing the same repetitions in and creating anesthesia, this little piece of acceptance of one’s fate is inserted towards the end seemingly innocent in there. i had this feeling in the beginning that this book was created in order to make obedient and servient slaves, and that feeling kept being reinforced by all the things i have read. In the end, it couldn’t resist confirming it.

The other good thing about what i said, is that i don’t require you to believe anything. The only suggestion i make is for you to keep this perspective in mind, then go read The Torah in its entirety, and then go read the Qur’an in its entirety, and see for yourself and make up your own mind. If your faith strengthens or gets broken, as a result, is entirely up to you. Another thing to keep in mind, is that if The Word of God would be truly the word of god, then do you really think it would need defending or would it be so easily dispellable with a flick of a finger breaking a glass house? And if any God demands you to worship and forcefully love him, sit on your knees and pray all day except for when prayer is needed, and kill others for him, because if you don’t do that, you will receive eternal punishment and fire and torment, is that a true god? Does any real superior being need you to do any sort of these things or are they little human imaginations of greatness and power, that have been used to dumb down and enslave a group of people for centuries?

The good news, is that there’s guidelines for a god. So regardless of what the books may say, this may be something to look forward to.

Sincerely,

i

The Torah – a review

The Torah – a review

For some reason, i thought it would be a good idea that we should read these books that the world has been guiding itself for the past two thousand years after. i started with The Torah, expecting … not sure what, but i thought i should read it. At the end, i came incredibly disappointed.

The disappointment came from the fact that as i read, the God depicted in the book, is an incredibly selfish, insecure person that needs slaves to fear him. i say person because anyone with real power would most likely find no reason to behave as it’s described there. It tells the story of a God that came to Moses, and tells him to set up rules about money, who to have sex with, and punishments that people have to enact over people as if any superior being would have any business making rules about people’s money.

It sows discord between families by justifying that “oh I gave those more and those less and you have to deal with it. It’s just how i wanted”.

The attitude towards mistakes and “sin” is appalling – you did something bad? Even killed somebody? Go do some more killing in the form of sacrificing innocent animals and then your sins will be forgiven. The attitude towards women is incredibly lowly – the women are “unclean” and sets a bunch of leashes on how they should be treated.

Is anyone gathering sticks on a Sunday minding their own business? Bring them over to the community and stone them to death because they committed a sin.

Is your child a drunk and a “failure” ? Bring them in front of the community and … i kid you not …. stone them to death? What the …

With all that in mind, considering the book is said to be written by Moses, i wonder if Moses had a moral compass of his own because there are a few cases i could think of:

  • Indeed the book speaks of a God, that requires animal sacrifices and people to prostrate in front of him, and people to behave in certain ways, like puppets, in which case, would anyone – if met with such a God, would they consider it worthy of worship? Is worship through fear something that should be valued?
  • Would any superior being need for people to sit all day and pray to them and sit on their knees like slaves, kill innocent animals and burn them, and give edicts about how people should spend their money, and demand they be loved and feared? Is that how a divine being would behave?
  • The last case, is that Moses along with the other contributors to The Torah lied, and only created this, to set up some rules, so they can enjoy their pleasures, without being questioned.

The only thing that i appreciated about The Torah, is that it tells it’s story. As far as i read it, it doesn’t attempt to convince anyone of anything but just tells events that may or may have not been true.

Overall it was a disappointing read. It was disappointing because i feel sorry that people couldn’t find intelligent ways to deal with everyday problems, therefore invented the rule through fear.

To anyone that is reading this and feels offended, just read it in its entirety, and see for yourself.

Maybe the Qur`an will be different.

We will see.

i

Pin It on Pinterest