1. bash / Говнокод #28626

    −2

    1. 1
    echo $(ls *.txt) | sed s/\ /,/

    А потому шо

    ls *.txt | sed s/\ /,/

    не работает

    Угадайте почему?

    3_dar, 07 Марта 2023

    Комментарии (28)
  2. C++ / Говнокод #28624

    +2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    while (!cmpts.empty() && !ec)
        {
          path f = std::move(cmpts.front());
          cmpts.pop_front();
    
          if (f.empty())
    	{
    	  // ignore empty element
    	}
          else if (is_dot(f))
    	{
    	  if (!is_directory(result, ec) && !ec)
    	    ec.assign(ENOTDIR, std::generic_category());
    	}
          else if (is_dotdot(f))
    	{
    	  auto parent = result.parent_path();
    	  if (parent.empty())
    	    result = pa.root_path();
    	  else
    	    result.swap(parent);
    	}
          else
    	{
    	  result /= f;
    
    	  if (is_symlink(result, ec))
    	    {
    	      path link = read_symlink(result, ec);
    	      if (!ec)
    		{
    		  if (--max_allowed_symlinks == 0)
    		    ec.assign(ELOOP, std::generic_category());
    		  else
    		    {
    		      if (link.is_absolute())
    			{
    			  result = link.root_path();
    			  link = link.relative_path();
    			}
    		      else
    			result = result.parent_path();
    
    		      cmpts.insert(cmpts.begin(), link.begin(), link.end());
    		    }
    		}
    	    }
    	}
        }

    Это из GNU libstdc++.
    Код то может и не говно, но от форматирования блевать тянет.
    Зачем такое кто знает?

    YpaHeLI_, 06 Марта 2023

    Комментарии (14)
  3. Куча / Говнокод #28623

    +1

    1. 1
    Вскрытие покровов

    Распродажа оборудования.

    Я сегодня сытно поужинал, посему считаю вопрос закрытым.

    Пароли от большинства клонов - qazxsw

    Поскольку файки не зашкваренные, берут и владеют ими.

    Soul_recOver, 05 Марта 2023

    Комментарии (3)
  4. Python / Говнокод #28622

    −9

    1. 1
    саша степуро негр

    правда

    sashastepuronegro, 04 Марта 2023

    Комментарии (4)
  5. Python / Говнокод #28621

    −8

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    96. 96
    97. 97
    98. 98
    99. 99
    print('1 часть тут, 2 в описании')
    import re
    q = int(input())
    b = input()
    v = 0
    flag = True
    if v == 0:
        c = len(re.findall('q', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('w', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('e', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('r', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('t', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('y', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('u', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('i', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('o', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('p', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('a', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('s', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('d', b))
        if c > 1:
            print("NO")
            flag = False
            quit()
        else:
            v = 3
        c = len(re.findall('f', b))

    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('g', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('h', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('j', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('k', b))
    if c > 1:
    print("NO")
    flag = False
    quit
    else:
    v = 3
    c = len(re.findall('l', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('m', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('n', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('b', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('v', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('c', b))
    if c > 1:
    print("NO")
    flag = False
    quit()
    else:
    v = 3
    c = len(re.findall('x', b))
    if c > 1:
    flag = False
    quit()
    print("NO")
    else:
    v = 3
    c = len(re.findall('z', b))
    if c > 1:
    flag = False
    print("NO")
    quit()
    else:
    v = 3
    if flag == True:
    print("YES")

    sashastepuronegro, 04 Марта 2023

    Комментарии (3)
  6. Куча / Говнокод #28620

    +3

    1. 1
    Гастрономии-тред

    Знаете ли Вы, что...

    * ...Что делают с хлебом, колбасами и другими изделиями, которые Вы все так любите кушать, когда истекает срок их годности?
    Ответ под спойлером. Продукты размалывают и понемногу добавляют в сырье, повторно вводя в техноцикл.

    *...В муке, а стало быть, и в изделиях из нее всегда содержатся фекалии грызунов.

    * Колбасный фарш имеет серый цвет. Для того, чтобы готовые изделия стали приятными на вид, в сырье добавляют красители и нитрит натрия - консервант.

    Topm, 03 Марта 2023

    Комментарии (9)
  7. Куча / Говнокод #28619

    +1

    1. 1
    Питушня #28

    #1: https://govnokod.ru/26692 https://govnokod.xyz/_26692
    #2: https://govnokod.ru/26891 https://govnokod.xyz/_26891
    #3: https://govnokod.ru/26893 https://govnokod.xyz/_26893
    #4: https://govnokod.ru/26935 https://govnokod.xyz/_26935
    #5: (vanished) https://govnokod.xyz/_26954
    #6: (vanished) https://govnokod.xyz/_26956
    #7: https://govnokod.ru/26964 https://govnokod.xyz/_26964
    #8: (vanished) https://govnokod.xyz/_26966
    #9: https://govnokod.ru/27017 https://govnokod.xyz/_27017
    #10: https://govnokod.ru/27045 https://govnokod.xyz/_27045
    #11: https://govnokod.ru/27058 https://govnokod.xyz/_27058
    #12: https://govnokod.ru/27182 https://govnokod.xyz/_27182
    #13: https://govnokod.ru/27260 https://govnokod.xyz/_27260
    #14: https://govnokod.ru/27343 https://govnokod.xyz/_27343
    #15: https://govnokod.ru/27353 https://govnokod.xyz/_27353
    #16: https://govnokod.ru/27384 https://govnokod.xyz/_27384
    #17: https://govnokod.ru/27482 https://govnokod.xyz/_27482
    #18: https://govnokod.ru/27514 https://govnokod.xyz/_27514
    #19: https://govnokod.ru/27620 https://govnokod.xyz/_27620
    #20: https://govnokod.ru/27816 https://govnokod.xyz/_27816
    #21: https://govnokod.ru/27956 https://govnokod.xyz/_27956
    #22: https://govnokod.ru/28143 https://govnokod.xyz/_28143
    #23: https://govnokod.ru/28315 https://govnokod.xyz/_28315
    #24: https://govnokod.ru/28362 https://govnokod.xyz/_28362
    #25: https://govnokod.ru/28463 https://govnokod.xyz/_28463
    #26: https://govnokod.ru/28481 https://govnokod.xyz/_28481
    #27: https://govnokod.ru/28537 https://govnokod.xyz/_28537

    nepeKamHblu_nemyx, 02 Марта 2023

    Комментарии (554)
  8. Python / Говнокод #28618

    −1

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    def auth_2FA(request):
        mail = request.POST.get('mail')
        user = User.objects.get(email=mail)
        code2FA = request.POST.get('code2FA')
        if pyotp.TOTP(user.secret).verify(code2FA):
            auth.login(request, user)
            return redirect(settings.HOME_PAGE)
        else:
            ...

    # Безопасность
    Django, двухфакторка.
    Защиты от перебора нет, пароль не проверяется. Зная только mail можно залогиниться перебрав код из 6 цифр

    Doorman5302, 01 Марта 2023

    Комментарии (12)
  9. Куча / Говнокод #28617

    +3

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    Итак, оказалось, что нас всего трое-четверо, не считая меня и временно съебнувших.
    1. Инканус владеет большинством петушков и файкой Лолечка. Особо не переживает по поводу утраты фаек, ибо у него их - куры не клюют.
    
    2. Человек под ником guest6. Перманент. Шанс того, что под этой файкой сидит несколько хуйцов столь мизерный, что не примем его в счёт. 
    Несмотря на острый ум, довольно ограничен и имеет узкий кругозор. Также ему свойственны резкие скачки настроения. 
    Я долго пытался угадать его знак зодиака, но впал в сомнения. Что-то из этого: [Скорпион. Дева. Стрелец].
    
    3. Некто, владеющий soul_re@ver и прочими, с анимешной авой.

    Расследование продолжается.

    Support, 28 Февраля 2023

    Комментарии (4)
  10. Куча / Говнокод #28616

    −9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/25947"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/26133"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/26134"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/26135"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/26137"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/67335"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68057"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68069"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68120"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68134"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68139"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68240"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68257"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68261"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68335"])
    
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68367"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68368"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68369"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68371"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68372"])
    govnokod.*##div.entry-comments div.entry-comment-wrapper:has(p.entry-info > strong.entry-author a[href$="/68373"])

    o6AMa_4MO, 27 Февраля 2023

    Комментарии (23)