Lazy self-installing Python scripts with uv
https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/
https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/
Treyhunner
Lazy self-installing Python scripts with uv
I frequently find myself writing my own short command-line scripts in Python that help me with day-to-day tasks. It’s so easy to throw together …
حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا جَرِيرٌ، عَنْ عُمَارَةَ بْنِ الْقَعْقَاعِ بْنِ شُبْرُمَةَ، عَنْ أَبِي زُرْعَةَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ مَنْ أَحَقُّ بِحُسْنِ صَحَابَتِي قَالَ " أُمُّكَ ". قَالَ ثُمَّ مَنْ قَالَ " أُمُّكَ ". قَالَ ثُمَّ مَنْ قَالَ " أُمُّكَ ". قَالَ ثُمَّ مَنْ قَالَ " ثُمَّ أَبُوكَ ". وَقَالَ ابْنُ شُبْرُمَةَ وَيَحْيَى بْنُ أَيُّوبَ حَدَّثَنَا أَبُو زُرْعَةَ مِثْلَهُ.
Narrated Abu Huraira: A man came to Allah's Messenger (ﷺ) and said, "O Allah's Messenger (ﷺ)! Who is more entitled to be treated with the best companionship by me?" The Prophet (ﷺ) said, "Your mother." The man said. "Who is next?" The Prophet said, "Your mother." The man further said, "Who is next?" The Prophet (ﷺ) said, "Your mother." The man asked for the fourth time, "Who is next?" The Prophet (ﷺ) said, "Your father. "
Sahih al-Bukhari 5971
https://sunnah.com/bukhari:5971
Narrated Abu Huraira: A man came to Allah's Messenger (ﷺ) and said, "O Allah's Messenger (ﷺ)! Who is more entitled to be treated with the best companionship by me?" The Prophet (ﷺ) said, "Your mother." The man said. "Who is next?" The Prophet said, "Your mother." The man further said, "Who is next?" The Prophet (ﷺ) said, "Your mother." The man asked for the fourth time, "Who is next?" The Prophet (ﷺ) said, "Your father. "
Sahih al-Bukhari 5971
https://sunnah.com/bukhari:5971
Sunnah
Sahih al-Bukhari 5971 - Good Manners and Form (Al-Adab) - كتاب الأدب - Sunnah.com - Sayings and Teachings of Prophet Muhammad…
Hadith of the Prophet Muhammad (saws) in English and Arabic
❤1👍1
وَأَخْبَرَنَا نَبِيُّنَا صلى الله عليه وسلم عَنْ رِسَالَةِ رَبِّنَا أَنَّهُ مَنْ قُتِلَ مِنَّا صَارَ إِلَى الْجَنَّةِ فِي نَعِيمٍ لَمْ يَرَ مِثْلَهَا قَطُّ، وَمَنْ بَقِيَ مِنَّا مَلَكَ رِقَابَكُمْ.
Our Prophet has informed us that our Lord says: -- "Whoever amongst us is killed (i.e. martyred), shall go to Paradise to lead such a luxurious life as he has never seen, and whoever amongst us remain alive, shall become your master."
Sahih al-Bukhari 3159, 3160
https://sunnah.com/bukhari:3159
Our Prophet has informed us that our Lord says: -- "Whoever amongst us is killed (i.e. martyred), shall go to Paradise to lead such a luxurious life as he has never seen, and whoever amongst us remain alive, shall become your master."
Sahih al-Bukhari 3159, 3160
https://sunnah.com/bukhari:3159
Sunnah
Sahih al-Bukhari 3159, 3160 - Jizyah and Mawaada'ah - كتاب الجزية والموادعة - Sunnah.com - Sayings and Teachings of Prophet Muhammad…
Hadith of the Prophet Muhammad (saws) in English and Arabic
حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا وَكِيعٌ، عَنْ سُفْيَانَ، عَنْ دَاوُدَ بْنِ أَبِي عَوْفٍ أَبِي الْجَحَّافِ، - وَكَانَ مَرْضِيًّا - عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " مَنْ أَحَبَّ الْحَسَنَ وَالْحُسَيْنَ فَقَدْ أَحَبَّنِي وَمَنْ أَبْغَضَهُمَا فَقَدْ أَبْغَضَنِي " .
It was narrated that Abu Hurairah said: "The Messenger of Allah said: 'Whoever loves Hasan and Husain, loves me; and whoever hates them, hates me.'"
Sunan Ibn Majah 143
Grade: Hasan (Darussalam)
https://sunnah.com/ibnmajah:143
It was narrated that Abu Hurairah said: "The Messenger of Allah said: 'Whoever loves Hasan and Husain, loves me; and whoever hates them, hates me.'"
Sunan Ibn Majah 143
Grade: Hasan (Darussalam)
https://sunnah.com/ibnmajah:143
Sunnah
Sunan Ibn Majah 143 - The Book of the Sunnah - كتاب المقدمة - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله…
Hadith of the Prophet Muhammad (saws) in English and Arabic
حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ إِسْحَاقَ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي طَلْحَةَ، أَنَّ أَبَا مُرَّةَ، مَوْلَى عَقِيلِ بْنِ أَبِي طَالِبٍ أَخْبَرَهُ عَنْ أَبِي وَاقِدٍ اللَّيْثِيِّ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم بَيْنَمَا هُوَ جَالِسٌ فِي الْمَسْجِدِ وَالنَّاسُ مَعَهُ، إِذْ أَقْبَلَ ثَلاَثَةُ نَفَرٍ، فَأَقْبَلَ اثْنَانِ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم وَذَهَبَ وَاحِدٌ، قَالَ فَوَقَفَا عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَأَمَّا أَحَدُهُمَا فَرَأَى فُرْجَةً فِي الْحَلْقَةِ فَجَلَسَ فِيهَا، وَأَمَّا الآخَرُ فَجَلَسَ خَلْفَهُمْ، وَأَمَّا الثَّالِثُ فَأَدْبَرَ ذَاهِبًا، فَلَمَّا فَرَغَ رَسُولُ اللَّهِ صلى الله عليه وسلم قَالَ " أَلاَ أُخْبِرُكُمْ عَنِ النَّفَرِ الثَّلاَثَةِ أَمَّا أَحَدُهُمْ فَأَوَى إِلَى اللَّهِ، فَآوَاهُ اللَّهُ، وَأَمَّا الآخَرُ فَاسْتَحْيَا، فَاسْتَحْيَا اللَّهُ مِنْهُ، وَأَمَّا الآخَرُ فَأَعْرَضَ، فَأَعْرَضَ اللَّهُ عَنْهُ ".
Narrated Abu Waqid Al-Laithi: While Allah's Messenger (ﷺ) was sitting in the mosque with some people, three men came. Two of them came in front of Allah's Messenger (ﷺ) and the third one went away. The two persons kept on standing before Allah's Messenger (ﷺ) for a while and then one of them found a place in the circle and sat there while the other sat behind the gathering, and the third one went away. When Allah's Messenger (ﷺ) finished his preaching, he said, "Shall I tell you about these three persons? One of them betook himself to Allah, so Allah took him into His grace and mercy and accommodated him, the second felt shy from Allah, so Allah sheltered Him in His mercy (and did not punish him), while the third turned his face from Allah and went away, so Allah turned His face from him likewise. "
Sahih al-Bukhari 66
https://sunnah.com/bukhari:66
Narrated Abu Waqid Al-Laithi: While Allah's Messenger (ﷺ) was sitting in the mosque with some people, three men came. Two of them came in front of Allah's Messenger (ﷺ) and the third one went away. The two persons kept on standing before Allah's Messenger (ﷺ) for a while and then one of them found a place in the circle and sat there while the other sat behind the gathering, and the third one went away. When Allah's Messenger (ﷺ) finished his preaching, he said, "Shall I tell you about these three persons? One of them betook himself to Allah, so Allah took him into His grace and mercy and accommodated him, the second felt shy from Allah, so Allah sheltered Him in His mercy (and did not punish him), while the third turned his face from Allah and went away, so Allah turned His face from him likewise. "
Sahih al-Bukhari 66
https://sunnah.com/bukhari:66
Sunnah
Sahih al-Bukhari 66 - Knowledge - كتاب العلم - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله عليه و سلم)
Hadith of the Prophet Muhammad (saws) in English and Arabic
👍2
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ حَدَّثَنَا زَكَرِيَّاءُ، عَنْ عَامِرٍ، عَنْ عُرْوَةَ بْنِ الْمُغِيرَةِ، عَنْ أَبِيهِ، قَالَ كُنْتُ مَعَ النَّبِيِّ صلى الله عليه وسلم فِي سَفَرٍ، فَأَهْوَيْتُ لأَنْزِعَ خُفَّيْهِ فَقَالَ " دَعْهُمَا، فَإِنِّي أَدْخَلْتُهُمَا طَاهِرَتَيْنِ ". فَمَسَحَ عَلَيْهِمَا.
Narrated `Urwa bin Al-Mughira: My father said, "Once I was in the company of the Prophet (ﷺ) on a journey and I dashed to take off his Khuffs (socks made from thick fabric or leather). He ordered me to leave them as he had put them after performing ablution. So he passed wet hands over them.
Sahih al-Bukhari 206
https://sunnah.com/bukhari:206
Narrated `Urwa bin Al-Mughira: My father said, "Once I was in the company of the Prophet (ﷺ) on a journey and I dashed to take off his Khuffs (socks made from thick fabric or leather). He ordered me to leave them as he had put them after performing ablution. So he passed wet hands over them.
Sahih al-Bukhari 206
https://sunnah.com/bukhari:206
Sunnah
Sahih al-Bukhari 206 - Ablutions (Wudu') - كتاب الوضوء - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله عليه…
Hadith of the Prophet Muhammad (saws) in English and Arabic
👍1
وَحَدَّثَنِي إِبْرَاهِيمُ بْنُ مُوسَى الرَّازِيُّ، حَدَّثَنَا عِيسَى، - يَعْنِي ابْنَ يُونُسَ - حَدَّثَنَا عَبْدُ الْحَمِيدِ بْنُ جَعْفَرٍ، عَنْ عِمْرَانَ بْنِ أَبِي أَنَسٍ، عَنْ عُمَرَ بْنِ الْحَكَمِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ يَفْرَكْ مُؤْمِنٌ مُؤْمِنَةً إِنْ كَرِهَ مِنْهَا خُلُقًا رَضِيَ مِنْهَا آخَرَ " . أَوْ قَالَ " غَيْرَهُ " .
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying: A believing man should not hate a believing woman; if he dislikes one of her characteristics, he will be pleased with another.
Sahih Muslim 1468b
https://sunnah.com/muslim:1468b
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying: A believing man should not hate a believing woman; if he dislikes one of her characteristics, he will be pleased with another.
Sahih Muslim 1468b
https://sunnah.com/muslim:1468b
Sunnah
Sahih Muslim 1468b - The Book of Suckling - كتاب الرضاع - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله عليه…
Hadith of the Prophet Muhammad (saws) in English and Arabic
وَحَدَّثَنَا يَحْيَى بْنُ يَحْيَى، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، عَنْ مُوسَى بْنِ عُلَىٍّ، عَنْ أَبِيهِ، قَالَ سَمِعْتُ عُقْبَةَ بْنَ عَامِرٍ الْجُهَنِيَّ، يَقُولُ ثَلاَثُ سَاعَاتٍ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَنْهَانَا أَنْ نُصَلِّيَ فِيهِنَّ أَوْ أَنْ نَقْبُرَ فِيهِنَّ مَوْتَانَا حِينَ تَطْلُعُ الشَّمْسُ بَازِغَةً حَتَّى تَرْتَفِعَ وَحِينَ يَقُومُ قَائِمُ الظَّهِيرَةِ حَتَّى تَمِيلَ الشَّمْسُ وَحِينَ تَضَيَّفُ الشَّمْسُ لِلْغُرُوبِ حَتَّى تَغْرُبَ .
Uqba b. 'Amir said: There were three times at which Allah's Messenger (ﷺ) forbade us to pray, or bury our dead: When the sun begins to rise till it is fully up, when the sun is at its height at midday till it passes over the meridian, and when the sun draws near to setting till it sets.
Sahih Muslim 831
https://sunnah.com/muslim:831
Uqba b. 'Amir said: There were three times at which Allah's Messenger (ﷺ) forbade us to pray, or bury our dead: When the sun begins to rise till it is fully up, when the sun is at its height at midday till it passes over the meridian, and when the sun draws near to setting till it sets.
Sahih Muslim 831
https://sunnah.com/muslim:831
Sunnah
Sahih Muslim 831 - The Book of Prayer - Travellers - كتاب صلاة المسافرين وقصرها - Sunnah.com - Sayings and Teachings of Prophet…
Hadith of the Prophet Muhammad (saws) in English and Arabic
👍1
حَدَّثَنَا زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا جَرِيرٌ، عَنْ سُهَيْلٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " الإِيمَانُ بِضْعٌ وَسَبْعُونَ أَوْ بِضْعٌ وَسِتُّونَ شُعْبَةً فَأَفْضَلُهَا قَوْلُ لاَ إِلَهَ إِلاَّ اللَّهُ وَأَدْنَاهَا إِمَاطَةُ الأَذَى عَنِ الطَّرِيقِ وَالْحَيَاءُ شُعْبَةٌ مِنَ الإِيمَانِ " .
It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace and blessings be upon him) said: Faith has over seventy branches or over sixty branches, the most excellent of which is the declaration that there is no god but Allah, and the humblest of which is the, removal of what is injurious from the path: and modesty is a branch of faith.
Sahih Muslim 35b
https://sunnah.com/muslim:35b
It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace and blessings be upon him) said: Faith has over seventy branches or over sixty branches, the most excellent of which is the declaration that there is no god but Allah, and the humblest of which is the, removal of what is injurious from the path: and modesty is a branch of faith.
Sahih Muslim 35b
https://sunnah.com/muslim:35b
Sunnah
Sahih Muslim 35b - The Book of Faith - كتاب الإيمان - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله عليه و سلم)
Hadith of the Prophet Muhammad (saws) in English and Arabic
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ أَبِي النَّضْرِ، عَنْ أَبِي سَلَمَةَ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ قَالَتْ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَصُومُ حَتَّى نَقُولَ لاَ يُفْطِرُ، وَيُفْطِرُ حَتَّى نَقُولَ لاَ يَصُومُ. فَمَا رَأَيْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم اسْتَكْمَلَ صِيَامَ شَهْرٍ إِلاَّ رَمَضَانَ، وَمَا رَأَيْتُهُ أَكْثَرَ صِيَامًا مِنْهُ فِي شَعْبَانَ.
Narrated `Aisha: Allah's Messenger (ﷺ) used to fast till one would say that he would never stop fasting, and he would abandon fasting till one would say that he would never fast. I never saw Allah's Messenger (ﷺ) fasting for a whole month except the month of Ramadan, and did not see him fasting in any month more than in the month of Sha'ban.
Sahih al-Bukhari 1969
https://sunnah.com/bukhari:1969
Narrated `Aisha: Allah's Messenger (ﷺ) used to fast till one would say that he would never stop fasting, and he would abandon fasting till one would say that he would never fast. I never saw Allah's Messenger (ﷺ) fasting for a whole month except the month of Ramadan, and did not see him fasting in any month more than in the month of Sha'ban.
Sahih al-Bukhari 1969
https://sunnah.com/bukhari:1969
Sunnah
Sahih al-Bukhari 1969 - Fasting - كتاب الصوم - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله عليه و سلم)
Hadith of the Prophet Muhammad (saws) in English and Arabic
The surprising way to save memory with BytesIO
Itamar Turner-Trauring explains that if you have a BytesIO object in Python calling .read() on it will create a full copy of that object, doubling the amount of memory used - but calling .getvalue() returns a bytes object that uses no additional memory, instead using copy-on-write.
.getbuffer() is another memory-efficient option but it returns a memoryview which has less methods than the bytes you get back from .getvalue()- it doesn't have .find() for example.
Via lobste.rs
Tags: python
https://simonwillison.net/2025/Jan/31/save-memory-with-bytesio/#atom-everything
Itamar Turner-Trauring explains that if you have a BytesIO object in Python calling .read() on it will create a full copy of that object, doubling the amount of memory used - but calling .getvalue() returns a bytes object that uses no additional memory, instead using copy-on-write.
.getbuffer() is another memory-efficient option but it returns a memoryview which has less methods than the bytes you get back from .getvalue()- it doesn't have .find() for example.
Via lobste.rs
Tags: python
https://simonwillison.net/2025/Jan/31/save-memory-with-bytesio/#atom-everything
simonwillison.net
The surprising way to save memory with BytesIO
Itamar Turner-Trauring explains that if you have a `BytesIO` object in Python calling `.read()` on it will create a full copy of that object, doubling the amount of memory used …
Forwarded from في أقل من ثلاث
Correct Aqida erases sins, while innovation nullifies deeds.
العقيدة الصحيحة تمحو الذنوب، والبدعة تحبط الأعمال.
Imam Ibn al-Qayyim said:
Adhering to the Sunnah expiates major sins, just as deviating from the Sunnah nullifies good deeds. The people of the Sunnah, if their deeds fall short, their beliefs uphold them; whereas the people of innovation, even if their deeds stand, their beliefs bring them down."
قال الإمام ابن القيّم:
وَالتَّمَسُّكُ بِالسُّنَّةِ يُكَفِّرُ الْكَبَائِرَ، كَمَا أَنَّ مُخَالَفَةَ السُّنَّةِ تُحْبِطُ الْحَسَنَاتِ، وَأَهْلُ السُّنَّةِ إنْ قَعَدَتْ بِهِمْ أَعْمَالُهُمْ قَامَتْ بِهِمْ عَقَائِدُهُمْ، وَأَهْلُ الْبِدَعِ إذَا قَامَتْ بِهِمْ أَعْمَالُهُمْ قَعَدَتْ بِهِمْ عَقَائِدُهُمْ.
📖 I‘lam al-Muwaqqi‘in (3/329)
📖 إعلام الموقعين (3/329)
العقيدة الصحيحة تمحو الذنوب، والبدعة تحبط الأعمال.
Imam Ibn al-Qayyim said:
Adhering to the Sunnah expiates major sins, just as deviating from the Sunnah nullifies good deeds. The people of the Sunnah, if their deeds fall short, their beliefs uphold them; whereas the people of innovation, even if their deeds stand, their beliefs bring them down."
قال الإمام ابن القيّم:
وَالتَّمَسُّكُ بِالسُّنَّةِ يُكَفِّرُ الْكَبَائِرَ، كَمَا أَنَّ مُخَالَفَةَ السُّنَّةِ تُحْبِطُ الْحَسَنَاتِ، وَأَهْلُ السُّنَّةِ إنْ قَعَدَتْ بِهِمْ أَعْمَالُهُمْ قَامَتْ بِهِمْ عَقَائِدُهُمْ، وَأَهْلُ الْبِدَعِ إذَا قَامَتْ بِهِمْ أَعْمَالُهُمْ قَعَدَتْ بِهِمْ عَقَائِدُهُمْ.
📖 I‘lam al-Muwaqqi‘in (3/329)
📖 إعلام الموقعين (3/329)
حَدَّثَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ أَبِي الْمَوَالِي، عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُعَلِّمُنَا الاِسْتِخَارَةَ فِي الأُمُورِ كَمَا يُعَلِّمُنَا السُّورَةَ مِنَ الْقُرْآنِ يَقُولُ " إِذَا هَمَّ أَحَدُكُمْ بِالأَمْرِ فَلْيَرْكَعْ رَكْعَتَيْنِ مِنْ غَيْرِ الْفَرِيضَةِ ثُمَّ لِيَقُلِ اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ، وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ، فَإِنَّكَ تَقْدِرُ وَلاَ أَقْدِرُ وَتَعْلَمُ وَلاَ أَعْلَمُ وَأَنْتَ عَلاَّمُ الْغُيُوبِ، اللَّهُمَّ إِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ خَيْرٌ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاقْدُرْهُ لِي وَيَسِّرْهُ لِي ثُمَّ بَارِكْ لِي فِيهِ، وَإِنْ كُنْتَ تَعْلَمُ أَنَّ هَذَا الأَمْرَ شَرٌّ لِي فِي دِينِي وَمَعَاشِي وَعَاقِبَةِ أَمْرِي ـ أَوْ قَالَ فِي عَاجِلِ أَمْرِي وَآجِلِهِ ـ فَاصْرِفْهُ عَنِّي وَاصْرِفْنِي عَنْهُ، وَاقْدُرْ لِي الْخَيْرَ حَيْثُ كَانَ ثُمَّ أَرْضِنِي بِهِ ـ قَالَ ـ وَيُسَمِّي حَاجَتَهُ ".
Narrated Jabir bin
Sahih al-Bukhari 1166
https://sunnah.com/bukhari:1166
Narrated Jabir bin
Abdullah: The Prophet (p.b.u.h) used to teach us the way of doing Istikhara (Istikhara means to ask Allah to guide one to the right sort of action concerning any job or a deed), in all matters as he taught us the Suras of the Qur'an. He said, "If anyone of you thinks of doing any job he should offer a two rakat prayer other than the compulsory ones and say (after the prayer): -- 'Allahumma inni astakhiruka bi'ilmika, Wa astaqdiruka bi-qudratika, Wa as'alaka min fadlika Al-azlm Fa-innaka taqdiru Wala aqdiru, Wa ta'lamu Wala a'lamu, Wa anta 'allamu l-ghuyub. Allahumma, in kunta ta'lam anna hadha-lamra Khairun li fi dini wa ma'ashi wa'aqibati Amri (or 'ajili Amri wa'ajilihi) Faqdirhu wa yas-sirhu li thumma barik li Fihi, Wa in kunta ta'lamu anna hadha-lamra shar-run li fi dini wa ma'ashi wa'aqibati Amri (or fi'ajili `Amri wa ajilihi) Fasrifhu anni was-rifni anhu. Waqdir li al-khaira haithu kana Thumma ardini bihi.' (O Allah! I ask guidance from Your knowledge, And Power from Your Might and I ask for Your great blessings. You are capable and I am not. You know and I do not and You know the unseen. O Allah! If You know that this job is good for my religion and my subsistence and in my Hereafter--(or said: If it is better for my present and later needs)--Then You ordain it for me and make it easy for me to get, And then bless me in it, and if You know that this job is harmful to me In my religion and subsistence and in the Hereafter--(or said: If it is worse for my present and later needs)--Then keep it away from me and let me be away from it. And ordain for me whatever is good for me, And make me satisfied with it). The Prophet (ﷺ) added that then the person should name (mention) his need.Sahih al-Bukhari 1166
https://sunnah.com/bukhari:1166
Sunnah
Sahih al-Bukhari 1166 - Prayer at Night (Tahajjud) - كتاب التهجد - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى…
Hadith of the Prophet Muhammad (saws) in English and Arabic
llms.txt directory - Find llms.txt files across the web
https://llmstxt.site/
https://llmstxt.site/
llmstxt.site
llms.txt directory
Find and explore llms.txt files from various products and services.
Forwarded from Mohcin Bounouara's Space (Mohcin)
Recently, I started using AI in coding, and I've benefited a lot from the method that Povilas Korop mentioned in below.
I first build/complete the task myself using my base knowledge. Then, I
ask AI to provide alternative perspectives, suggest better solutions, or confirm my original approach.
This way, I both complete tasks as good as I can and continue learning at the same time.
*Use AI to learn how to build software, not to let it build software for
you. This shift in my way of thinking made difference for me. I hope you give it a try, it might be beneficial for you as well!
I first build/complete the task myself using my base knowledge. Then, I
ask AI to provide alternative perspectives, suggest better solutions, or confirm my original approach.
This way, I both complete tasks as good as I can and continue learning at the same time.
*Use AI to learn how to build software, not to let it build software for
you. This shift in my way of thinking made difference for me. I hope you give it a try, it might be beneficial for you as well!
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، وَأَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ وَأَبُو كُرَيْبٍ وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ - وَاللَّفْظُ لِيَحْيَى - قَالَ يَحْيَى أَخْبَرَنَا وَقَالَ الآخَرُونَ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ شَقِيقٍ، عَنْ أَبِي مَسْعُودٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " حُوسِبَ رَجُلٌ مِمَّنْ كَانَ قَبْلَكُمْ فَلَمْ يُوجَدْ لَهُ مِنَ الْخَيْرِ شَىْءٌ إِلاَّ أَنَّهُ كَانَ يُخَالِطُ النَّاسَ وَكَانَ مُوسِرًا فَكَانَ يَأْمُرُ غِلْمَانَهُ أَنْ يَتَجَاوَزُوا عَنِ الْمُعْسِرِ قَالَ قَالَ اللَّهُ عَزَّ وَجَلَّ نَحْنُ أَحَقُّ بِذَلِكَ مِنْهُ تَجَاوَزُوا عَنْهُ " .
Abu Mas'ud (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying: A person from people who lived before you was called to account (by Allah at the Day of Judgment) and no good was found in his account except this that lie being a rich man had (financial) dealings with people and had commanded his servants to show leniency to the straitened ones. Upon this Allah, the Exalted and Majestic, said: We have more right to this, so overlook (his faults).
Sahih Muslim 1561
https://sunnah.com/muslim:1561
Abu Mas'ud (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying: A person from people who lived before you was called to account (by Allah at the Day of Judgment) and no good was found in his account except this that lie being a rich man had (financial) dealings with people and had commanded his servants to show leniency to the straitened ones. Upon this Allah, the Exalted and Majestic, said: We have more right to this, so overlook (his faults).
Sahih Muslim 1561
https://sunnah.com/muslim:1561
Sunnah
Sahih Muslim 1561 - The Book of Musaqah - كتاب المساقاة - Sunnah.com - Sayings and Teachings of Prophet Muhammad (صلى الله عليه…
Hadith of the Prophet Muhammad (saws) in English and Arabic
حَدَّثَنَا أَبُو كَامِلٍ الْجَحْدَرِيُّ، حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ أَبِي يَعْفُورٍ، عَنْ عَبْدِ اللَّهِ بْنِ، أَبِي أَوْفَى قَالَ غَزَوْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم سَبْعَ غَزَوَاتٍ نَأْكُلُ الْجَرَادَ .
Ibn Abu Aufa reported: We went on seven expeditions with Allah's Messenger (ﷺ) and ate locusts.
Sahih Muslim 1952a
https://sunnah.com/muslim:1952a
Ibn Abu Aufa reported: We went on seven expeditions with Allah's Messenger (ﷺ) and ate locusts.
Sahih Muslim 1952a
https://sunnah.com/muslim:1952a
Sunnah
Sahih Muslim 1952a - The Book of Hunting, Slaughter, and what may be Eaten - كتاب الصيد والذبائح وما يؤكل من الحيوان - Sunnah.com…
Hadith of the Prophet Muhammad (saws) in English and Arabic
👍1
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عُبَيْدُ بْنُ سَعِيدٍ، عَنْ شُعْبَةَ، عَنْ خَلِيفَةَ بْنِ كَعْبٍ، أَبِي ذُبْيَانَ قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ الزُّبَيْرِ، يَخْطُبُ يَقُولُ أَلاَ لاَ تُلْبِسُوا نِسَاءَكُمُ الْحَرِيرَ فَإِنِّي سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ تَلْبَسُوا الْحَرِيرَ فَإِنَّهُ مَنْ لَبِسَهُ فِي الدُّنْيَا لَمْ يَلْبَسْهُ فِي الآخِرَةِ " .
Khalifa b. Ka'b AbCi Dhubyan reported: I heard 'Abdullah b. Zubair addressing the people and saying: Behold! do not dress yuor women with silk clothes for I heard 'Umar b. Khattab as sayinp that he had heard Allah's messenger (ﷺ) as saying: Do not wear silk, for one who wear it in this world will not wear it in the Hereafter.
Sahih Muslim 2069b
https://sunnah.com/muslim:2069b
Khalifa b. Ka'b AbCi Dhubyan reported: I heard 'Abdullah b. Zubair addressing the people and saying: Behold! do not dress yuor women with silk clothes for I heard 'Umar b. Khattab as sayinp that he had heard Allah's messenger (ﷺ) as saying: Do not wear silk, for one who wear it in this world will not wear it in the Hereafter.
Sahih Muslim 2069b
https://sunnah.com/muslim:2069b
Sunnah
Sahih Muslim 2069b - The Book of Clothes and Adornment - كتاب اللباس والزينة - Sunnah.com - Sayings and Teachings of Prophet Muhammad…
Hadith of the Prophet Muhammad (saws) in English and Arabic