This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="ru"> | |
<head> | |
<title>401 - Не авторизован</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="content-language" content="ru" /> | |
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> | |
<style> | |
html,body { padding:0; margin:0; background:#fff; color:#000; height:100%; font-family: Arial, Helvetica, Verdana, sans-serif;} | |
main { width: 1000px; margin: 100px auto; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 | |
link/ether 54:e1:ad:16:27:07 brd ff:ff:ff:ff:ff:ff | |
3: wlp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 | |
link/ether 3c:95:09:67:af:ff brd ff:ff:ff:ff:ff:ff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def filter_is_favorited(self, queryset, name, value): | |
if value and not self.request.user.is_anonymous: | |
return queryset.filter(favorites__user=self.request.user) | |
return queryset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed Feb 8 08:13:53 2023] rcu: blocking rcu_node structures (internal RCU debug): | |
[Wed Feb 8 08:14:38 2023] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: | |
[Wed Feb 8 08:14:38 2023] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-11): P23026/1:b..l | |
[Wed Feb 8 08:14:38 2023] (detected by 1, t=3885982 jiffies, g=1333205, q=53857097 ncpus=12) | |
[Wed Feb 8 08:14:59 2023] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P23026 } 3696370 jiffies s: 59533 root: 0x0/T | |
[Wed Feb 8 08:14:59 2023] rcu: blocking rcu_node structures (internal RCU debug): | |
[Wed Feb 8 08:15:41 2023] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: | |
[Wed Feb 8 08:15:41 2023] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-11): P23026/1:b..l | |
[Wed Feb 8 08:15:41 2023] (detected by 7, t=3892287 jiffies, g=1333205, q=53943677 ncpus=12) | |
[Wed Feb 8 08:16:06 2023] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P23026 } 3703026 jiffies s: 59533 root: 0x0/T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed Feb 8 08:13:53 2023] rcu: blocking rcu_node structures (internal RCU debug): | |
[Wed Feb 8 08:14:38 2023] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: | |
[Wed Feb 8 08:14:38 2023] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-11): P23026/1:b..l | |
[Wed Feb 8 08:14:38 2023] (detected by 1, t=3885982 jiffies, g=1333205, q=53857097 ncpus=12) | |
[Wed Feb 8 08:14:59 2023] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P23026 } 3696370 jiffies s: 59533 root: 0x0/T | |
[Wed Feb 8 08:14:59 2023] rcu: blocking rcu_node structures (internal RCU debug): | |
[Wed Feb 8 08:15:41 2023] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: | |
[Wed Feb 8 08:15:41 2023] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-11): P23026/1:b..l | |
[Wed Feb 8 08:15:41 2023] (detected by 7, t=3892287 jiffies, g=1333205, q=53943677 ncpus=12) | |
[Wed Feb 8 08:16:06 2023] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P23026 } 3703026 jiffies s: 59533 root: 0x0/T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[101231.482533] note: kswapd0[91] exited with preempt_count 2 | |
[101284.431035] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P23026 } 5446898 jiffies s: 59533 root: 0x0/T | |
[101284.431743] rcu: blocking rcu_node structures (internal RCU debug): | |
[101285.811027] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: | |
[101285.811383] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-11): P23026/1:b..l | |
[101285.811751] (detected by 1, t=5638772 jiffies, g=1333205, q=77924598 ncpus=12) | |
[101348.859450] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: | |
[101348.859855] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-11): P23026/1:b..l | |
[101348.860251] (detected by 6, t=5645077 jiffies, g=1333205, q=78009232 ncpus=12) | |
[101350.989452] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P23026 } 5453554 jiffies s: 59533 root: 0x0/T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [98]: for dt in soup.find_all("dt"): | |
...: print(dt.find(text=re.compile(r"Status"))) | |
None | |
Status | |
None | |
None | |
None | |
None | |
None | |
None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sbcl --script | |
(defun count-change (amount) | |
(cc amount 5)) | |
(defun cc (amount kinds-of-coins) | |
(cond ((= amount 0) 1) | |
((or (< amount 0) (= kinds-of-coins 0)) 0) | |
(t (+ (cc amount | |
(- kinds-of-coins 1)) | |
(cc (- amount | |
(first-denomination kinds-of-coins)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
try: | |
import turtle | |
except (ImportError, ModuleNotFoundError): | |
print( | |
'\n'.join( | |
['·' * ((50-x)//2) + '●' * x + '·' * ((50-x)//2) for x in range(1, 50, 2)] + | |
['·' * ((50-int(50 * 0.3))//2) + '▪' * int(50 * 0.3) + '·' * ((50-int(50 * 0.3))//2) for _ in range(6)] | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── api_yamdb | |
│ ├── api | |
│ │ ├── apps.py | |
│ │ ├── filters.py | |
│ │ ├── __init__.py | |
│ │ ├── permissions.py | |
│ │ ├── serializers.py | |
│ │ ├── urls.py | |
│ │ └── views.py |