adds regex md and exercises

This commit is contained in:
waldek 2021-07-05 22:12:38 +02:00
parent d2c53af403
commit d8d60e9a61
6 changed files with 487732 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,72 @@
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
##############################################################3
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
###################################################################
# Magic system request Key
# 0=disable, 1=enable all, >1 bitmask of sysrq functions
# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
# for what other values do
#kernel.sysrq=438
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,229 @@
<!DOCTYPE html><html><head><title>teddit</title><link rel="stylesheet" type="text/css" href="/css/dark.css" media="(prefers-color-scheme: dark)"><link rel="stylesheet" type="text/css" href="/css/styles.css"><link rel="icon" type="image/png" sizes="32x32" href="/favicon.png"><meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body class="dark"><div id="topbar"><nav><div class="nav-item left"><a href="/"><img src="/favicon.png" alt="">teddit</a></div><div class="settings"><div class="icon-container"><a href="/about">[about]</a></div><div class="icon-container"><a href="/preferences">[preferences]</a></div></div></nav><div class="top-links"><a href="/r/popular">Popular</a><a href="/r/all">All</a><a href="/saved">Saved</a><a href="/r/AskReddit">AskReddit</a><a href="/r/pics">pics</a><a href="/r/news">news</a><a href="/r/worldnews">worldnews</a><a href="/r/funny">funny</a><a href="/r/tifu">tifu</a><a href="/r/videos">videos</a><a href="/r/gaming">gaming</a><a href="/r/aww">aww</a><a href="/r/todayilearned">todayilearned</a><a href="/r/gifs">gifs</a><a href="/r/Art">Art</a><a href="/r/explainlikeimfive">explainlikeimfive</a><a href="/r/movies">movies</a><a href="/r/Jokes">Jokes</a><a href="/r/TwoXChromosomes">TwoXChromosomes</a><a href="/r/mildlyinteresting">mildlyinteresting</a><a href="/r/LifeProTips">LifeProTips</a><a href="/r/askscience">askscience</a><a href="/r/IAmA">IAmA</a><a href="/r/dataisbeautiful">dataisbeautiful</a><a href="/r/books">books</a><a href="/r/science">science</a><a href="/r/Showerthoughts">Showerthoughts</a><a href="/r/gadgets">gadgets</a><a href="/r/Futurology">Futurology</a><a href="/r/nottheonion">nottheonion</a><a href="/r/history">history</a><a href="/r/sports">sports</a><a href="/r/OldSchoolCool">OldSchoolCool</a><a href="/r/GetMotivated">GetMotivated</a><a href="/r/DIY">DIY</a><a href="/r/photoshopbattles">photoshopbattles</a><a href="/r/nosleep">nosleep</a><a href="/r/Music">Music</a><a href="/r/space">space</a><a href="/r/food">food</a><a href="/r/UpliftingNews">UpliftingNews</a><a href="/r/EarthPorn">EarthPorn</a><a href="/r/Documentaries">Documentaries</a><a href="/r/InternetIsBeautiful">InternetIsBeautiful</a><a href="/r/WritingPrompts">WritingPrompts</a><a href="/r/creepy">creepy</a><a href="/r/philosophy">philosophy</a><a href="/r/announcements">announcements</a><a href="/r/listentothis">listentothis</a><a href="/r/blog">blog</a><a href="/subreddits" id="sr-more-link">more »</a></div></div><header><a class="main" href="/"><h1>teddit</h1></a><div class="bottom"><ul class="tabmenu"><li class="active"><a href="/">hot</a></li><li><a href="/new">new</a></li><li><a href="/rising">rising</a></li><li><a href="/controversial">controversial</a></li><li><a href="/top">top</a></li></ul></div></header><div id="intro"><h1>Welcome to teddit</h1><h2>the alternative, privacy respecting, front page of internet.</h2></div><div class="sr" id="links"><div class="link"><div class="upvotes"><div class="arrow"></div><span>22.5k</span><div class="arrow down"></div></div><div class="image"><a href="/r/KidsAreFuckingStupid/comments/oe8g8r/honey_i_cheated_on_you/"><img src="/pics/thumbs/thumb_w:108_ixxhz1u2me971.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="/r/KidsAreFuckingStupid/comments/oe8g8r/honey_i_cheated_on_you/"><h2>Honey, I cheated on you</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 14:25:37 GMT">3 hours ago by</span><a href="/u/orchid_breeder">orchid_breeder</a></p><p class="to">to<a href="/r/KidsAreFuckingStupid">KidsAreFuckingStupid</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_ixxhz1u2me971.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_ixxhz1u2me971.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_ixxhz1u2me971.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_ixxhz1u2me971.jpg" alt=""></div></details><a class="comments" href="/r/KidsAreFuckingStupid/comments/oe8g8r/honey_i_cheated_on_you/">289 comments</a><a href="/save/oe8g8r/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>44.3k</span><div class="arrow down"></div></div><div class="image"><a href="/r/AskReddit/comments/odxydt/think_of_the_smartest_person_you_know_what_is_the/"><div class="no-image">no image</div></a></div><div class="entry"><div class="title"><a href="/r/AskReddit/comments/odxydt/think_of_the_smartest_person_you_know_what_is_the/"><h2>Think of the smartest person you know, what is the dumbest thing theyve ever done?</h2></a><span>(self.AskReddit)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 02:21:46 GMT">15 hours ago by</span><a href="/u/lord-stryker117">lord-stryker117</a></p><p class="to">to<a href="/r/AskReddit">AskReddit</a></p><div class="links"><a class="comments" href="/r/AskReddit/comments/odxydt/think_of_the_smartest_person_you_know_what_is_the/">10219 comments</a><a href="/save/odxydt/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>46.9k</span><div class="arrow down"></div></div><div class="image"><a href="https://www.thedailybeast.com/china-has-a-big-plan-for-post-us-afghanistan-and-its-worth-billions?ref=scroll" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_l0jyUOB6xqkwwJCZHfN-dZyEsPZwoJfS4PJWzAchmjU.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://www.thedailybeast.com/china-has-a-big-plan-for-post-us-afghanistan-and-its-worth-billions?ref=scroll" rel="noopener noreferrer"><h2>China prepares to move into Afghanistan with $62 billion 'Belt and Road' program as American troops leave.</h2></a><span>(thedailybeast.com)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 02:05:32 GMT">16 hours ago by</span><a href="/u/Kavaman2014">Kavaman2014</a></p><p class="to">to<a href="/r/worldnews">worldnews</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_l0jyUOB6xqkwwJCZHfN-dZyEsPZwoJfS4PJWzAchmjU.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_l0jyUOB6xqkwwJCZHfN-dZyEsPZwoJfS4PJWzAchmjU.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_l0jyUOB6xqkwwJCZHfN-dZyEsPZwoJfS4PJWzAchmjU.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_l0jyUOB6xqkwwJCZHfN-dZyEsPZwoJfS4PJWzAchmjU.jpg" alt=""></div></details><a class="comments" href="/r/worldnews/comments/odxq5g/china_prepares_to_move_into_afghanistan_with_62/">7582 comments</a><a href="/save/odxq5g/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>28.3k</span><div class="arrow down"></div></div><div class="image"><a href="https://globalnews.ca/news/8001754/u-s-covid-deaths-unvaccinated-people/" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_WgxQW6EcwHGmaWsBpWyL8moC3ZP_bwi2f1BLpy0iGGw.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://globalnews.ca/news/8001754/u-s-covid-deaths-unvaccinated-people/" rel="noopener noreferrer"><h2>99% of COVID-19 deaths in U.S. involve unvaccinated people, Fauci says</h2></a><span>(globalnews.ca)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 05:49:50 GMT">12 hours ago by</span><a href="/u/web_explorer">web_explorer</a></p><p class="to">to<a href="/r/news">news</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_WgxQW6EcwHGmaWsBpWyL8moC3ZP_bwi2f1BLpy0iGGw.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_WgxQW6EcwHGmaWsBpWyL8moC3ZP_bwi2f1BLpy0iGGw.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_WgxQW6EcwHGmaWsBpWyL8moC3ZP_bwi2f1BLpy0iGGw.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_WgxQW6EcwHGmaWsBpWyL8moC3ZP_bwi2f1BLpy0iGGw.jpg" alt=""></div></details><a class="comments" href="/r/news/comments/oe0ufq/99_of_covid19_deaths_in_us_involve_unvaccinated/">4294 comments</a><a href="/save/oe0ufq/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>36.9k</span><div class="arrow down"></div></div><div class="image"><a href="/r/starterpacks/comments/oe21je/stuff_i_saw_in_american_media_as_a_kid_that_i/"><img src="/pics/thumbs/thumb_w:108_mxytnunqic971.png" alt=""></a></div><div class="entry"><div class="title"><a href="/r/starterpacks/comments/oe21je/stuff_i_saw_in_american_media_as_a_kid_that_i/"><h2>Stuff I saw in american media as a kid that I couldn't relate to starterpack</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 07:23:54 GMT">10 hours ago by</span><a href="/u/angrymustacheman">angrymustacheman</a></p><p class="to">to<a href="/r/starterpacks">starterpacks</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_mxytnunqic971.png"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_mxytnunqic971.png');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_mxytnunqic971.png"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_mxytnunqic971.png" alt=""></div></details><a class="comments" href="/r/starterpacks/comments/oe21je/stuff_i_saw_in_american_media_as_a_kid_that_i/">3667 comments</a><a href="/save/oe21je/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>35.2k</span><div class="arrow down"></div></div><div class="image"><a href="/r/PublicFreakout/comments/oe7svu/former_astronaut_buzz_aldrin_punching_a/"><img src="/pics/thumbs/thumb_w:108_i6VscJtqVhpwsHGNWdd4YhtnFj--SNboGELlaiSZ6JE.png" alt=""><span>00:17</span></a></div><div class="entry"><div class="title"><a href="/r/PublicFreakout/comments/oe7svu/former_astronaut_buzz_aldrin_punching_a/"><h2>Former Astronaut Buzz Aldrin punching a moon-landing denier in the face.</h2></a><span class="flair">Repost 😔</span><span>(v.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 13:51:01 GMT">4 hours ago by</span><a href="/u/__Dawn__Amber__">__Dawn__Amber__</a></p><p class="to">to<a href="/r/PublicFreakout">PublicFreakout</a></p><div class="links"><a class="comments" href="/r/PublicFreakout/comments/oe7svu/former_astronaut_buzz_aldrin_punching_a/">2077 comments</a><a href="/save/oe7svu/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>45k</span><div class="arrow down"></div></div><div class="image"><a href="/r/Damnthatsinteresting/comments/oe6ek8/weird_tunnel_system_under_my_newly_bought_house/"><img src="/pics/thumbs/thumb_w:108_034QbGOIFp51sn6lixRNPCg81qRAP371755JNfm6ES4.png" alt=""><span>01:07</span></a></div><div class="entry"><div class="title"><a href="/r/Damnthatsinteresting/comments/oe6ek8/weird_tunnel_system_under_my_newly_bought_house/"><h2>Weird tunnel system under my newly bought house in Italy.</h2></a><span class="flair">Video</span><span>(v.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 12:30:15 GMT">5 hours ago by</span><a href="/u/NetAtraX">NetAtraX</a></p><p class="to">to<a href="/r/Damnthatsinteresting">Damnthatsinteresting</a></p><div class="links"><a class="comments" href="/r/Damnthatsinteresting/comments/oe6ek8/weird_tunnel_system_under_my_newly_bought_house/">3601 comments</a><a href="/save/oe6ek8/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>23.2k</span><div class="arrow down"></div></div><div class="image"><a href="https://i.imgur.com/s6GZx8n.gifv" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:null_OO5cWOkURZZGBA3dFyxpJVbLxzHgTriBggXAmJ6WSO4.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://i.imgur.com/s6GZx8n.gifv" rel="noopener noreferrer"><h2>Bun</h2></a><span>(i.imgur.com)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 13:29:39 GMT">4 hours ago by</span><a href="/u/My_Memes_Will_Cure_U">My_Memes_Will_Cure_U</a></p><p class="to">to<a href="/r/Eyebleach">Eyebleach</a></p><div class="links"><a class="comments" href="/r/Eyebleach/comments/oe7eti/bun/">206 comments</a><a href="/save/oe7eti/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>68.4k</span><div class="arrow down"></div></div><div class="image"><a href="https://i.imgur.com/zNSlBpX.jpg" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_oL0uc5z1eL0CgtUkPNvBDGsF5TbvDriiOdkJDbEaa_o.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://i.imgur.com/zNSlBpX.jpg" rel="noopener noreferrer"><h2>My neighbors were the 4th of July idiots</h2></a><span>(i.imgur.com)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 09:31:04 GMT">8 hours ago by</span><a href="/u/afuelfillingmart">afuelfillingmart</a></p><p class="to">to<a href="/r/pics">pics</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_oL0uc5z1eL0CgtUkPNvBDGsF5TbvDriiOdkJDbEaa_o.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_oL0uc5z1eL0CgtUkPNvBDGsF5TbvDriiOdkJDbEaa_o.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_oL0uc5z1eL0CgtUkPNvBDGsF5TbvDriiOdkJDbEaa_o.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_oL0uc5z1eL0CgtUkPNvBDGsF5TbvDriiOdkJDbEaa_o.jpg" alt=""></div></details><a class="comments" href="/r/pics/comments/oe3sz9/my_neighbors_were_the_4th_of_july_idiots/">2866 comments</a><a href="/save/oe3sz9/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>10.5k</span><div class="arrow down"></div></div><div class="image"><a href="/r/AmItheAsshole/comments/oe6gq1/aita_for_refusing_to_let_my_stepson_return_home/"><div class="no-image">no image</div></a></div><div class="entry"><div class="title"><a href="/r/AmItheAsshole/comments/oe6gq1/aita_for_refusing_to_let_my_stepson_return_home/"><h2>AITA for refusing to let my stepson return home without punishment after he ruined my daughter's book collection?</h2></a><span>(self.AmItheAsshole)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 12:33:54 GMT">5 hours ago by</span><a href="/u/throw4privacy5">throw4privacy5</a></p><p class="to">to<a href="/r/AmItheAsshole">AmItheAsshole</a></p><div class="links"><details><summary><div class="line"></div><div class="line"></div><div class="line"></div></summary><div class="selftext"><!-- SC_OFF --><div class="md"><p>My biological (12yo) daughter ~ Susan likes to collect and read old children&#39;s books. She&#39;s become incredible reader. She had problems with reading and learning before and we were advised to encourage her to read and eversince she started reading (which she does regularly) her skills improved. she also reads to her 2yo sister everynight.</p>
<p>I have a (16yo), stepson ~ Levi who can be a hothead sometimes. We don&#39;t have a son~dad relationship but I respect him and he respects me though he can act quite mean and selfish towards me and his sisters. He&#39;d throw away stuff that belongs to us over small arguments and teases Susan for spending a lot of time to read calling her grandma.</p>
<p>My wife and I discussed his behavior and had conversations and agreed on punishments but Levi&#39;d go to his dad&#39;s place whenever he causes troubles then have his dad yell at me for wanting to discuss a suitable punishment. Then Levi comes home days later expecting me to let go of what he did everytime, it&#39;s frustrating.</p>
<p>I got a call at work from Susan saying Levi took her entire book collection and threw them in the pool after she refused to lend him and his friends her camera for his trip. My wife helped get them out but they were wet and some were torn. It was horrific because some of those books are hard to get and meant a lot to Susan as a part of her life.
I was so mad at Levi I came home to have a conversation with my wife to decide on a punishment but he already packed a small bag and went to his dad&#39;s, I asked my wife how could she let him basically run after doing this and she said he called his dad and he came to pick him up after Susan said that I was coming home to deal with the problem.</p>
<p>I went to his dad&#39;s house and he refused to let me see him. I told him how Levi was hiding from consequences and his dad tried to justify why Levi was acting out by blaming me for how me and Susan treat him. He even said he&#39;d get CPS involved if I ever try to punish him because I&#39;m not his dad, I have no right. Adding what Levi did was a reaction to my daughter being mean to him. He told me to leave because Levi won&#39;t come home til I promise not to do anything about what he did and put it in writing.</p>
<p>I told him Levi should stay there with him then. He&#39;s not to come back til ~he~ get proper punishment.
His dad argued it&#39;s his mom&#39;s house too and called my wife and she asked to let this go and we&#39;ll figure out some way to resolve it but I don&#39;t think it&#39;s fair for Susan to have her books ruined and Levi getting away with it. They&#39;re asking me to let it go but this will only encourage Levi to do worse if I don&#39;t deal with it now.
It&#39;s been 2 weeks and my in-laws say I was out of line for banning Levi from coming home and are telling me to step back but I refused.</p>
<p>EDIT ~ Levi&#39;s dad thinks that because I&#39;m not his bio dad then I have no right to punish him for whatever he does in the house. In the past his dad caused issues when I used to take Levi&#39;s electronics (that his dad bought) as punishment. Then I got talked out of punishing him everytime he did something unacceptable wether to me or his sisters.</p>
<p>I&#39;ve arranged for family therapy but Levi&#39;s dad refused to let him go.</p>
<p>EDIT ~ I&#39;d like to mention that my inlaws said that Levi is willing to apologize to Susan and so this should be enough to get this over with but I kept saying no and for that I&#39;m being considered at fault.</p>
</div><!-- SC_ON --></div></details><a class="comments" href="/r/AmItheAsshole/comments/oe6gq1/aita_for_refusing_to_let_my_stepson_return_home/">2208 comments</a><a href="/save/oe6gq1/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>24.7k</span><div class="arrow down"></div></div><div class="image"><a href="https://i.imgur.com/UWfZudY.gif" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:null_HDJK6Lyv4W0idTDRdSBEDS1erTlGIZlgeebhaGZk-9s.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://i.imgur.com/UWfZudY.gif" rel="noopener noreferrer"><h2>Making Your Own Lane is Bad For Your Health</h2></a><span>(i.imgur.com)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 04:04:39 GMT">14 hours ago by</span><a href="/u/HomnivHef">HomnivHef</a></p><p class="to">to<a href="/r/Whatcouldgowrong">Whatcouldgowrong</a></p><div class="links"><a class="comments" href="/r/Whatcouldgowrong/comments/odze04/making_your_own_lane_is_bad_for_your_health/">2211 comments</a><a href="/save/odze04/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>41.1k</span><div class="arrow down"></div></div><div class="image"><a href="https://www.theprint.in/india/journalist-activist-jailed-under-nsa-for-45-days-over-cow-posts-in-manipur-its-not-unusual/684133/%3famp" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_p0rBqSQjeZwOn_LTjQ-54uQJVfxnjAf2-Qxbhqcomsc.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://www.theprint.in/india/journalist-activist-jailed-under-nsa-for-45-days-over-cow-posts-in-manipur-its-not-unusual/684133/%3famp" rel="noopener noreferrer"><h2>Two Men Have Been in Jail for 45 Days for Saying Cow Poop and Piss Cant Cure COVID</h2></a><span>(theprint.in)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 06:17:04 GMT">11 hours ago by</span><a href="/u/perquois">perquois</a></p><p class="to">to<a href="/r/nottheonion">nottheonion</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_p0rBqSQjeZwOn_LTjQ-54uQJVfxnjAf2-Qxbhqcomsc.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_p0rBqSQjeZwOn_LTjQ-54uQJVfxnjAf2-Qxbhqcomsc.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_p0rBqSQjeZwOn_LTjQ-54uQJVfxnjAf2-Qxbhqcomsc.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_p0rBqSQjeZwOn_LTjQ-54uQJVfxnjAf2-Qxbhqcomsc.jpg" alt=""></div></details><a class="comments" href="/r/nottheonion/comments/oe178s/two_men_have_been_in_jail_for_45_days_for_saying/">1731 comments</a><a href="/save/oe178s/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>34.4k</span><div class="arrow down"></div></div><div class="image"><a href="/r/mildlyinteresting/comments/oe6akm/small_town_movie_theater_for_sale_since_the_last/"><img src="/pics/thumbs/thumb_w:108_7ohwmkf60e971.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="/r/mildlyinteresting/comments/oe6akm/small_town_movie_theater_for_sale_since_the_last/"><h2>Small town movie theater for sale since the last movie shown.</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 12:23:31 GMT">5 hours ago by</span><a href="/u/alan13446">alan13446</a></p><p class="to">to<a href="/r/mildlyinteresting">mildlyinteresting</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_7ohwmkf60e971.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_7ohwmkf60e971.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_7ohwmkf60e971.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_7ohwmkf60e971.jpg" alt=""></div></details><a class="comments" href="/r/mildlyinteresting/comments/oe6akm/small_town_movie_theater_for_sale_since_the_last/">790 comments</a><a href="/save/oe6akm/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>19.1k</span><div class="arrow down"></div></div><div class="image"><a href="/r/funny/comments/oe8ioj/hard_life_choices/"><img src="/pics/thumbs/thumb_w:108_6PobxPIdZfK5jL3gqSVMaLkucQJF0CRmGJkefs9lFrU.png" alt=""><span>00:12</span></a></div><div class="entry"><div class="title"><a href="/r/funny/comments/oe8ioj/hard_life_choices/"><h2>Hard life choices</h2></a><span>(v.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 14:29:15 GMT">3 hours ago by</span><a href="/u/Yessica___">Yessica___</a></p><p class="to">to<a href="/r/funny">funny</a></p><div class="links"><a class="comments" href="/r/funny/comments/oe8ioj/hard_life_choices/">342 comments</a><a href="/save/oe8ioj/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>33.2k</span><div class="arrow down"></div></div><div class="image"><a href="/r/Unexpected/comments/oe6hgv/what_is_happenin/"><img src="/pics/thumbs/thumb_w:108_nGVLs1j1WzpNrToJHsgkhqPNMot4YqVl2IlthDW5SKg.png" alt=""><span>00:32</span></a></div><div class="entry"><div class="title"><a href="/r/Unexpected/comments/oe6hgv/what_is_happenin/"><h2>What is happenin🐻🧔</h2></a><span>(v.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 12:35:06 GMT">5 hours ago by</span><a href="/u/_Ansh_">_Ansh_</a></p><p class="to">to<a href="/r/Unexpected">Unexpected</a></p><div class="links"><a class="comments" href="/r/Unexpected/comments/oe6hgv/what_is_happenin/">779 comments</a><a href="/save/oe6hgv/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>12.9k</span><div class="arrow down"></div></div><div class="image"><a href="/r/MapPorn/comments/oe3okx/european_countries_with_higher_human_development/"><img src="/pics/thumbs/thumb_w:108_la0681cn3d971.png" alt=""></a></div><div class="entry"><div class="title"><a href="/r/MapPorn/comments/oe3okx/european_countries_with_higher_human_development/"><h2>European countries with higher Human Development Index (HDI) than the USA</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 09:23:00 GMT">8 hours ago by</span><a href="/u/MatiMati918">MatiMati918</a></p><p class="to">to<a href="/r/MapPorn">MapPorn</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_la0681cn3d971.png"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_la0681cn3d971.png');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_la0681cn3d971.png"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_la0681cn3d971.png" alt=""></div></details><a class="comments" href="/r/MapPorn/comments/oe3okx/european_countries_with_higher_human_development/">1803 comments</a><a href="/save/oe3okx/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>3.6k</span><div class="arrow down"></div></div><div class="image"><a href="https://www.jutarnji.hr/vijesti/hrvatska/trebaju-se-probuditi-u-nasoj-hrvatskoj-i-shvatiti-da-su-u-manjini-i-da-im-mi-toleriramo-to-15085280" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_KEaWqGUj55iz_ymhu1FVnWkbPNA7oxmku-SFMpO27ck.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://www.jutarnji.hr/vijesti/hrvatska/trebaju-se-probuditi-u-nasoj-hrvatskoj-i-shvatiti-da-su-u-manjini-i-da-im-mi-toleriramo-to-15085280" rel="noopener noreferrer"><h2>Croatian MOST politician on LGBT people: They need to wake up in our Croatia and realize that they are minority and that we tolerate them. I dont want minority to impose on me what my children will learn and how I will behave personally'.</h2></a><span class="flair">News</span><span>(jutarnji.hr)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 08:13:48 GMT">10 hours ago by</span><a href="/u/ManusTheVantablack">ManusTheVantablack</a><span class="flair">Dalmatia</span></p><p class="to">to<a href="/r/europe">europe</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_KEaWqGUj55iz_ymhu1FVnWkbPNA7oxmku-SFMpO27ck.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_KEaWqGUj55iz_ymhu1FVnWkbPNA7oxmku-SFMpO27ck.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_KEaWqGUj55iz_ymhu1FVnWkbPNA7oxmku-SFMpO27ck.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_KEaWqGUj55iz_ymhu1FVnWkbPNA7oxmku-SFMpO27ck.jpg" alt=""></div></details><a class="comments" href="/r/europe/comments/oe2nf7/croatian_most_politician_on_lgbt_people_they_need/">1526 comments</a><a href="/save/oe2nf7/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>61.4k</span><div class="arrow down"></div></div><div class="image"><a href="/r/MurderedByWords/comments/oe1pug/wait_are_they_not_supposed_to_do_that/"><img src="/pics/thumbs/thumb_w:108_eyi2lfr7ec971.png" alt=""></a></div><div class="entry"><div class="title"><a href="/r/MurderedByWords/comments/oe1pug/wait_are_they_not_supposed_to_do_that/"><h2>Wait, are they not supposed to do that?</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 06:58:11 GMT">11 hours ago by</span><a href="/u/beerbellybegone">beerbellybegone</a></p><p class="to">to<a href="/r/MurderedByWords">MurderedByWords</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_eyi2lfr7ec971.png"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_eyi2lfr7ec971.png');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_eyi2lfr7ec971.png"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_eyi2lfr7ec971.png" alt=""></div></details><a class="comments" href="/r/MurderedByWords/comments/oe1pug/wait_are_they_not_supposed_to_do_that/">1377 comments</a><a href="/save/oe1pug/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>16.6k</span><div class="arrow down"></div></div><div class="image"><a href="/r/EarthPorn/comments/oe64hn/the_break_of_dawn_is_magical_in_yosemite/"><img src="/pics/thumbs/thumb_w:108_jegugm0fyd971.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="/r/EarthPorn/comments/oe64hn/the_break_of_dawn_is_magical_in_yosemite/"><h2>The break of dawn is magical in Yosemite [OC][1500x1020]</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 12:12:59 GMT">6 hours ago by</span><a href="/u/CampsG">CampsG</a><span class="flair"></span></p><p class="to">to<a href="/r/EarthPorn">EarthPorn</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_jegugm0fyd971.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_jegugm0fyd971.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_jegugm0fyd971.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_jegugm0fyd971.jpg" alt=""></div></details><a class="comments" href="/r/EarthPorn/comments/oe64hn/the_break_of_dawn_is_magical_in_yosemite/">85 comments</a><a href="/save/oe64hn/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>6.4k</span><div class="arrow down"></div></div><div class="image"><a href="https://www.iphoneincanada.ca/news/senate-does-not-pass-bill-c-10-move-applauded-by-conservatives/" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_ragN_iyNJS068qBHQ7ADgp9pTs9UYM5buP7QnZczx6g.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://www.iphoneincanada.ca/news/senate-does-not-pass-bill-c-10-move-applauded-by-conservatives/" rel="noopener noreferrer"><h2>Senate Does Not Pass Bill C-10, Move Applauded by Conservatives</h2></a><span>(iphoneincanada.ca)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 01:56:03 GMT">16 hours ago by</span><a href="/u/Right-wingCommunist">Right-wingCommunist</a></p><p class="to">to<a href="/r/canada">canada</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_ragN_iyNJS068qBHQ7ADgp9pTs9UYM5buP7QnZczx6g.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_ragN_iyNJS068qBHQ7ADgp9pTs9UYM5buP7QnZczx6g.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_ragN_iyNJS068qBHQ7ADgp9pTs9UYM5buP7QnZczx6g.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_ragN_iyNJS068qBHQ7ADgp9pTs9UYM5buP7QnZczx6g.jpg" alt=""></div></details><a class="comments" href="/r/canada/comments/odxlgs/senate_does_not_pass_bill_c10_move_applauded_by/">1202 comments</a><a href="/save/odxlgs/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>46.7k</span><div class="arrow down"></div></div><div class="image"><a href="/r/facepalm/comments/oe2aos/just_there_things/"><img src="/pics/thumbs/thumb_w:108_23xgy7upmc971.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="/r/facepalm/comments/oe2aos/just_there_things/"><h2>Just there things</h2></a><span class="flair"><span class="emoji" style="background-image: url(/pics/flairs/abp88uwvnuo61_t5_2r5rp_Misc.png)"></span> 🇲​🇮​🇸​🇨​</span><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 07:45:37 GMT">10 hours ago by</span><a href="/u/ginpachi_sensie">ginpachi_sensie</a></p><p class="to">to<a href="/r/facepalm">facepalm</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_23xgy7upmc971.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_23xgy7upmc971.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_23xgy7upmc971.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_23xgy7upmc971.jpg" alt=""></div></details><a class="comments" href="/r/facepalm/comments/oe2aos/just_there_things/">1249 comments</a><a href="/save/oe2aos/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>34.3k</span><div class="arrow down"></div></div><div class="image"><a href="/r/me_irl/comments/oe5wgk/me_irl/"><img src="/pics/thumbs/thumb_w:108_mtnc4uh1wd971.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="/r/me_irl/comments/oe5wgk/me_irl/"><h2>me_irl</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 11:59:40 GMT">6 hours ago by</span><a href="/u/CatsLovingCats">CatsLovingCats</a></p><p class="to">to<a href="/r/me_irl">me_irl</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_mtnc4uh1wd971.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_mtnc4uh1wd971.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_mtnc4uh1wd971.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_mtnc4uh1wd971.jpg" alt=""></div></details><a class="comments" href="/r/me_irl/comments/oe5wgk/me_irl/">247 comments</a><a href="/save/oe5wgk/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>40.8k</span><div class="arrow down"></div></div><div class="image"><a href="/r/me_irl/comments/odxx3z/me_irl/"><img src="/pics/thumbs/thumb_w:108_05d8r0yg0b971.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="/r/me_irl/comments/odxx3z/me_irl/"><h2>me_irl</h2></a><span>(i.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 02:19:14 GMT">15 hours ago by</span><a href="/u/TheAnarchist9081">TheAnarchist9081</a><span class="flair">nah</span></p><p class="to">to<a href="/r/me_irl">me_irl</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_05d8r0yg0b971.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_05d8r0yg0b971.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_05d8r0yg0b971.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_05d8r0yg0b971.jpg" alt=""></div></details><a class="comments" href="/r/me_irl/comments/odxx3z/me_irl/">1199 comments</a><a href="/save/odxx3z/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>23.2k</span><div class="arrow down"></div></div><div class="image"><a href="/r/Whatcouldgowrong/comments/oe6h23/wcgw_giving_abuse_to_the_driver_behind_you/"><img src="/pics/thumbs/thumb_w:108_-YnlsImKR45LT0Gf2nBt1TIyumgOfdjcpBtcQRsrRgs.png" alt=""><span>00:08</span></a></div><div class="entry"><div class="title"><a href="/r/Whatcouldgowrong/comments/oe6h23/wcgw_giving_abuse_to_the_driver_behind_you/"><h2>WCGW giving abuse to the driver behind you!</h2></a><span>(v.redd.it)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 12:34:26 GMT">5 hours ago by</span><a href="/u/hirsty19784">hirsty19784</a></p><p class="to">to<a href="/r/Whatcouldgowrong">Whatcouldgowrong</a></p><div class="links"><a class="comments" href="/r/Whatcouldgowrong/comments/oe6h23/wcgw_giving_abuse_to_the_driver_behind_you/">627 comments</a><a href="/save/oe6h23/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="link"><div class="upvotes"><div class="arrow"></div><span>40.2k</span><div class="arrow down"></div></div><div class="image"><a href="https://en.wikipedia.org/wiki/History_of_Riga#Member_of_the_Hanseatic_League" rel="noopener noreferrer"><img src="/pics/thumbs/thumb_w:108_QxulKWZ5B8rC401EVeB997I3Q-C3AkOlD9CWNlb1ExA.jpg" alt=""></a></div><div class="entry"><div class="title"><a href="https://en.wikipedia.org/wiki/History_of_Riga#Member_of_the_Hanseatic_League" rel="noopener noreferrer"><h2>TIL that in 1524, a statue of the Virgin Mary at the Cathedral in Riga, Latvia, was accused of being a witch. They put it on trial by throwing it in the river. Since the wooden statue floated, they declared it guilty and burned it.</h2></a><span>(en.wikipedia.org)</span></div><div class="meta"><p class="submitted">submitted<span title="Mon, 05 Jul 2021 10:49:28 GMT">7 hours ago by</span><a href="/u/ForgingIron">ForgingIron</a></p><p class="to">to<a href="/r/todayilearned">todayilearned</a></p><div class="links"><style>details.preview-container img {
width: 100% !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
opacity: 0;
}
details.preview-container[open][data-url="/pics/w:null_QxulKWZ5B8rC401EVeB997I3Q-C3AkOlD9CWNlb1ExA.jpg"] .preview {
width: 100%;
height: auto;
background-image: url('/pics/w:null_QxulKWZ5B8rC401EVeB997I3Q-C3AkOlD9CWNlb1ExA.jpg');
background-repeat: no-repeat;
background-size: contain;
}</style><details class="preview-container" data-url="/pics/w:null_QxulKWZ5B8rC401EVeB997I3Q-C3AkOlD9CWNlb1ExA.jpg"><summary><span>&#9654;</span></summary><div class="preview"><img src="/pics/thumbs/thumb_w:108_QxulKWZ5B8rC401EVeB997I3Q-C3AkOlD9CWNlb1ExA.jpg" alt=""></div></details><a class="comments" href="/r/todayilearned/comments/oe4v3f/til_that_in_1524_a_statue_of_the_virgin_mary_at/">1154 comments</a><a href="/save/oe4v3f/?rk=/after:undefined:before:undefined:sort:hot:past:undefined&amp;b=/r//hot§2t=">save</a></div></div></div></div><div class="view-more-links"><a href="/r/all/hot?t=&amp;after=t3_oe4v3f">next </a></div></div><div id="search"><form action="/r/all/search" method="GET"><div><label for="q">search<input type="text" name="q" id="q" placeholder="search"></label></div><div><label for="nsfw">include NSFW results<input type="checkbox" name="nsfw" id="nsfw" checked="checked"></label></div><input type="submit" value="search"></form></div><footer><a href="https://codeberg.org/teddit/teddit" target="_blank" rel="noopener noreferrer">https://codeberg.org/teddit/teddit/</a></footer></body></html>

View File

@ -0,0 +1,71 @@
# Regular Expressions
First of all, this will be a bit painful but as with `vim` once you overcome the initial learning curve you start to see the potential regular expressions bring to the table.
To make matters even worse, there are multiple *flavors* of regexes.
An overview and comparison between different flavors can be found on [wikipedia](https://en.wikipedia.org/wiki/Comparison_of_regular-expression_engines).
Don't see this as a reason *not* to learn some basic expressions though, a little experience goes a long way.
## What are they?
> A regular expression (shortened as regex or regexp;[1] also referred to as rational expression[2][3]) is a sequence of characters that specifies a search pattern. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation. It is a technique developed in theoretical computer science and formal language theory.
[wikipedia](https://en.wikipedia.org/wiki/Regular_expression)
You can see regular expressions as find (and replace) on steroids.
As a practical example, I used *a lot* of regular expressions to clean up the multiple choice LPI questionnaires.
This was done in `vim` so I used the vim flavor regex but it's not too much different from the main one you should know, `grep`.
From a practical system administer point of view you'll probably use regexes in this order:
1. with `grep`
2. with `sed` (went copy pasting commands found online)
3. with `vim`
4. with a scripting language such as `python3`
## How to learn them?
Some tips and pointers before we head into the actual syntax.
### Vim
There is a setting in `vim` that is disabled by default but highly advised to learn vim regexes.
By setting `set incsearch` in your `~/.vimrc` or in the **expert** command line vim will highlight whatever matches the pattern you're searching for.
This can be a tremendous help when building complex patterns.
### Grep
By default `grep` only interprets basic regular expressions.
If you want, or more likely *need* to use [extended](https://www.gnu.org/software/grep/manual/html_node/Basic-vs-Extended.html) expressions you should use `grep -E` or `egrep` instead.
For completeness's sake I should mention there is a third *version* of `grep` invoke with `grep -P` that interprets the patterns as [perl regex](https://perldoc.perl.org/perlre).
One of the advantages of perl regexes is reverse matching.
## The basics
## Exercises
Below are some practical exercises and files to go with them.
Use them to test out you grepping skills and as inspiration for personal challenges.
* configuration [file](./assets/sysctl.conf)
* print only lines with actual configuration settings (ignore comments)
* css [file](./assets/teddit.css)
* extract all the hex color codes
* html [file](./assets/teddit.html)
* html extract pictures
* just jpg
* jpg and png at the same time
* log [file](./assets/auth.log)
* extract all IP addresses
* plus only the unique ones
* extract all wrong logins for known users
* extract all unknown users (this is tricky and requires backwards searching using `grep -P`)
* mail dump [file](./assets/dump.mail)
* extract all unique email addresses
* extract all web links
* only the base link (https://www.example.co.uk)
* both http and https links
There are some very good regex exercises online as well.
[This](http://regextutorials.com/) is a good starting point.