Jewish Law in Times of Crisis
(ה) וּשְׁמַרְתֶּ֤ם אֶת־חֻקֹּתַי֙ וְאֶת־מִשְׁפָּטַ֔י אֲשֶׁ֨ר יַעֲשֶׂ֥ה אֹתָ֛ם הָאָדָ֖ם וָחַ֣י בָּהֶ֑ם אֲנִ֖י יְהוָֽה׃ (ס)
(5) You shall keep My laws and My rules, by the pursuit of which man shall live: I am the LORD.
Sources of Halakhah (http://www.jewfaq.org/halakhah)
Halakhah comes from three sources: from the Torah, from laws instituted by the rabbis and from long-standing customs. Halakhah from any of these sources can be referred to as a mitzvah (commandment; plural: mitzvot). The word "mitzvah" is also commonly used in a casual way to refer to any good deed. Because of this imprecise usage, sophisticated halakhic discussions are careful to identify mitzvot as being mitzvot d'oraita (an Aramaic word meaning "from the Torah") or mitzvot d'rabbanan (Aramaic for "from the rabbis"). A mitzvah that arises from custom is referred to as a minhag. Mitzvot from all three of these sources are binding, though there are differences in the way they are applied
על מי מחללין שבת. ובו ט סעיפים:
כל פיקוח נפש דוחה שבת והזריז הרי זה משובח אפילו נפלה דליקה בחצר אחרת וירא שתעבור לחצר זו ויבא לידי סכנה מכבין כדי שלא תעבור:
1. All cases of saving a life supersede Shabbat, and he who hurries in these matters is praised. Even if there is a fire in a different yard and there is concern that it will move to this yard and cause danger, we put it out to ensure that it does not spread.
צריך ליזהר מליתן מעות בפיו שמא יש עליהן רוק יבש של מוכי שחין ולא יתן פס ידו תחת שחיו שמא נגע ידו במצורע או בסם רע ולא יתן ככר לחם תחת השחי מפני הזיעה ולא יתן תבשיל ולא משקים תחת המטה מפני שרוח רעה שורה עליהם ולא ינעוץ סכין בתוך אתרוג או בתוך צנון שמא יפול אדם על חודה וימות: הגה וכן יזהר מכל דברים המביאים לידי סכנה כי סכנתא חמירא מאיסורא ויש לחוש יותר לספק סכנה מלספק איסור (ב"י בשם הש"ס) ולכן אסרו לילך בכל מקום סכנה כמו תחת קיר נטוי או יחידי בלילה (שם) וכן אסרו לשתות מים מן הנהרות בלילה או להניח פיו על קלוח המים לשתות כי דברים אלו יש בהן חשש סכנה (רמב"ם) ומנהג פשוט שלא לשתות מים בשעת התקופה וכן כתבו הקדמונים ואין לשנות (אבודרהם ומרדכי ס"פ כל שעה רוקח סימן ער"ה ומהרי"ל ומנהגים) עוד כתבו שיש לברוח מן העיר כשדבר בעיר ויש לצאת מן העיר בתחילת הדבר ולא בסופו (תשובת מהרי"ל סי' ל"ה) וכל אלו הדברים הם משום סכנה ושומר נפשו ירחק מהם ואסור לסמוך אנס או לסכן נפשו בכל כיוצא בזה ועיין בחושן משפט סימן תכ"ז:
One must refrain from putting coins in one's mouth, lest it's covered with dried saliva of those afflicted with boils. He should not put the palm of his hand in his arm pit, lest his hand touched a metzorah or a harmful poison. He should not put a loaf of bread under his armpit, because of the sweat. He should not put a cooked item or drinks under the bed, since an evil spirit rests on them. He should not stick a knife in an esrog or a radish, lest one fall on its edge and die. Hagah: Similarly, he should be careful of all things that cause danger, because danger is stricter than transgressions, and one should be more careful with an uncertain danger than with an uncertain issur. They also prohibited to go in a dangerous place, such as under a leaning wall, or alone at night. They also prohibited to drink water from rivers at night or to put one's mouth on a stream of water and drink, because these matters have a concern of danger. It is the widespread custom not to drink water during the equinox, and the early ones wrote this and it is not to be changed. They also wrote to flee from the city when a plague is in the city, and one should leave at the beginning of the plague and not at the end. And all of these things are because of the danger, and a person who guards his soul will distance himself from them and it is prohibited to rely on a miracle in all of these matters.
גמ׳ ת"ר עוברה שהריחה בשר קודש או בשר חזיר תוחבין לה כוש ברוטב ומניחין לה על פיה אם נתיישבה דעתה מוטב ואם לאו מאכילין אותה רוטב עצמה ואם נתיישבה דעתה מוטב ואם לאו מאכילין אותה שומן עצמו שאין לך דבר שעומד בפני פקוח נפש חוץ מע"ז וגילוי עריות ושפיכות דמים
GEMARA: The Sages taught in a baraita: With regard to a pregnant woman who smelled consecrated meat or pig meat and craved those specific foods, one inserts a thin reed into the juice of that item and places it on her mouth. If her mind become settled with that, it is well. And if not, one feeds her the gravy itself of that forbidden food. If her mind becomes settled with that, it is well. And if not, one feeds her the fat of the forbidden food itself, as there is no halakha that stands in the way of saving a life except for the prohibitions against idol worship, and forbidden sexual relationships, and bloodshed.
ת"ר מפקחין פקוח נפש בשבת והזריז ה"ז משובח ואין צריך ליטול רשות מב"ד הא כיצד ראה תינוק שנפל לים פורש מצודה ומעלהו והזריז ה"ז משובח ואין צריך ליטול רשות מב"ד ואע"ג דקא צייד כוורי ראה תינוק שנפל לבור עוקר חוליא ומעלהו והזריז ה"ז משובח ואין צריך ליטול רשות מב"ד אע"ג דמתקן דרגא
§ The Sages taught in a baraita: One engages in saving a life on Shabbat, and one who is vigilant to do so is praiseworthy. And one need not take permission from a court but hurries to act on his own. How so? If one sees a child who fell into the sea, he spreads a fisherman’s net and raises him from the water. And one who is vigilant and acts quickly is praiseworthy, and one need not seek permission from a court, although in doing so he catches fish in the net as well. Similarly, if one sees a child fall into a pit and the child cannot get out, he digs part of the ground out around the edge of the pit to create a makeshift step and raises him out. And one who is vigilant and acts quickly is praiseworthy, and one need not seek permission from a court, although in doing so he fashions a step.

אַרְבַעַת מִינִין הָאֵלּוּ שֶׁהֵן לוּלָב וַהֲדַס וַעֲרָבָה וְאֶתְרוֹג שֶׁהָיָה אֶחָד מֵהֶן יָבֵשׁ אוֹ גָּזוּל אוֹ גָּנוּב אֲפִלּוּ לְאַחַר יֵאוּשׁ אוֹ שֶׁיִּהְיֶה מֵאֲשֵׁרָה הַנֶּעֱבֶדֶת אַף עַל פִּי שֶׁבִּטְּלוּ הָאֲשֵׁרָה מִלְּעָבְדָהּ. אוֹ שֶׁהָיָה שֶׁל עִיר הַנִּדַּחַת. הֲרֵי זֶה פָּסוּל. הָיָה אֶחָד מֵהֶן שֶׁל עֲבוֹדַת כּוֹכָבִים לֹא יִטּל לְכַתְּחִלָּה וְאִם נָטַל יָצָא. הָיָה כָּמוּשׁ וְלֹא גָּמַר לִיבַשׁ כָּשֵׁר. וּבִשְׁעַת הַדְּחָק אוֹ בִּשְׁעַת הַסַּכָּנָה לוּלָב הַיָּבֵשׁ כָּשֵׁר אֲבָל לֹא שְׁאָר הַמִּינִין:

These four species — which are the palm branch, the myrtle, the willow and the citron — one of which was dry; robbed or stolen — even after abandonment; or from a tree-god (asheirah) that was worshiped — even though they nullified the tree-god from being served (any longer); or of a condemned city: [In any of these cases,] they are surely disqualified. [In a case of] one of them [that belonged] to idolatry: One should not lift it up at the outset. But if he lifted it up, he has fulfilled [the commandment. If] it was wilting but it did not completely dry — it is fit. And in a time of duress or a time of danger — a dry palm branch is fit. But not the other species.

הַמִּתְפַּלֵּל תְּפִלָּה קֹדֶם זְמַנָּהּ לֹא יָצָא יְדֵי חוֹבָתוֹ וְחוֹזֵר וּמִתְפַּלֵּל אוֹתָהּ בִּזְמַנָּהּ. וְאִם הִתְפַּלֵּל תְּפִלַּת שַׁחֲרִית בִּשְׁעַת הַדְּחָק אַחַר שֶׁעָלָה עַמּוּד הַשַּׁחַר יָצָא. וְיֵשׁ לוֹ לְהִתְפַּלֵּל תְּפִלַּת עַרְבִית שֶׁל לֵילֵי שַׁבָּת בְּעֶרֶב שַׁבָּת קֹדֶם שֶׁתִּשְׁקַע הַחַמָּה. וְכֵן יִתְפַּלֵּל עַרְבִית שֶׁל מוֹצָאֵי שַׁבָּת בְּשַׁבָּת לְפִי שֶׁתְּפִלַּת עַרְבִית רְשׁוּת אֵין מְדַקְדְּקִין בִּזְמַנָּהּ. וּבִלְבַד שֶׁיִּקְרָא קְרִיאַת שְׁמַע בִּזְמַנָּהּ אַחַר צֵאת הַכּוֹכָבִים:

One who recites a service, before the time appointed, has not fulfilled his duty and has to recite it again at the right time. But, if a person, on an urgent occasion, has recited the morning service after dawn (but before sunrise) he has fulfilled his duty. The evening service for the Sabbath Eve should be recited on the Eve of the Sabbath, before sunset. So the evening service for the close of the sabbath may be recited on the sabbath; the reason being that as the evening service is optional, one need not be strict as to the time of its recital; provided that the Shema is read at the proper time after the stars are visible.

תָּא שְׁמַע: גָּדוֹל כְּבוֹד הַבְּרִיּוֹת שֶׁדּוֹחֶה [אֶת] לֹא תַעֲשֶׂה שֶׁבַּתּוֹרָה.
The Gemara cites an additional proof from a baraita: Come and hear: Great is human dignity, as it overrides a prohibition in the Torah.