Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pages/instances/api-cli/cli-cheatsheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import Requirements from '@macros/iam/requirements.mdx'

import image from './assets/scaleway-instances-cli-cheatsheet.webp'

import instancesCheatSheetPdf from "./assets/Scaleway-Instances-CLI-Cheatsheet.pdf"



This page shows the most common Scaleway CLI commands for creating and managing Scaleway Instances.

Expand All @@ -22,9 +25,7 @@ This page shows the most common Scaleway CLI commands for creating and managing


<Message type="tip">
This content is also available as a printable PDF file:

[Download Instances CLI Cheatsheet - Printable](Scaleway-Instances-CLI-Cheatsheet.pdf)
This content is also available as a printable PDF file: <LocalAssetLink href={instancesCheatSheetPdf}>Download Instances CLI Cheatsheet - Printable</LocalAssetLink>
</Message>


Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ categories:
- compute
---

import ddosQuickGuidePdf from "./assets/DDoS_Quick_Guide.pdf"
import npGuidePdf from "./assets/NP_Guide_DDoS.pdf"


<Message type="important">
The explanations given below are known best practices. They do not guarantee that your resources will not be locked if we detect that they are part of a DDoS attack.
</Message>
Expand All @@ -16,7 +20,7 @@ categories:

A Denial of Service (DoS) attack is an attack through which a person can render a system unusable, or significantly slow it down for legitimate users, by overloading its resources.

[A Distributed Denial of Service (DDoS) attack](DDoS_Quick_Guide.pdf) is a DoS attack that is performed at the same time by a multitude of compromised systems.
<LocalAssetLink href={ddosQuickGuidePdf}>A Distributed Denial of Service (DDoS) attack</LocalAssetLink> is a DoS attack that is performed at the same time by a multitude of compromised systems.

The goal of a DoS is not to gain unauthorized access to machines or data, but to prevent legitimate users of a service from using it.

Expand Down Expand Up @@ -107,4 +111,4 @@ To configure securely your HTTP proxy, proceed as follows:
## External References

- (In English) [Denial of Service (DoS) guidance](https://www.ncsc.gov.uk/collection/denial-service-dos-guidance-collection)
- (In French) [Comprendre et anticiper les attaques DDoS](NP_Guide_DDoS.pdf)
- (In French) <LocalAssetLink href={npGuidePdf}>Comprendre et anticiper les attaques DDoS</LocalAssetLink>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ categories:
import Requirements from '@macros/iam/requirements.mdx'

import image from './assets/scaleway-kubernetes-cheatsheet.webp'
import cheatSheetPdf from "./assets/scaleway-kubernetes-cheatsheet.pdf"




This page shows the most common `kubectl` commands for creating and managing Scaleway Kapsule and Kosmos clusters.
Expand All @@ -23,5 +26,5 @@ This page shows the most common `kubectl` commands for creating and managing Sca
<Message type="tip">
This content is also available as a printable PDF file. Click the link below to download:

- [Kubernetes kubectl cheatsheet - Printable](scaleway-kubernetes-cheatsheet.pdf)
- <LocalAssetLink href={cheatSheetPdf}>Kubernetes kubectl cheatsheet - Printable</LocalAssetLink>
</Message>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ categories:
- kubernetes
---
import image from './assets/DecisionTreeKubernetes-DocumentationWebsite.webp'
import decisionTreePdf from "./assets/decision-tree-kubernetes.pdf"




This page helps you evaluate your level of knowledge about Kubernetes and provides comprehensive documentation to help you understand the various offerings, integrations, tools, and usage.
Expand All @@ -17,7 +20,7 @@ This page helps you evaluate your level of knowledge about Kubernetes and provid

<Message type="tip">
This content is also available as a printable PDF file. Click the link below to download it:
- [Kubernetes decision tree - Printable](decision-tree-kubernetes.pdf)
- <LocalAssetLink href={decisionTreePdf}>Kubernetes decision tree - Printable</LocalAssetLink>
</Message>

## Referred content
Expand Down
11 changes: 8 additions & 3 deletions tutorials/python-lists-dicts/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import image6 from './assets/python-dicts-cheatsheet.webp'

import Requirements from '@macros/iam/requirements.mdx'

import pythonCheatSheetPdf from "./assets/python-lists-cheatsheet.pdf"
import pythonDictsCheatSheetPdf from "./assets/python-dicts-cheatsheet.pdf"




<Message type="requirement">
If you're coming to this tutorial as a complete Python beginner, make sure you're familiar with the Python concepts covered in our [Python for complete beginners](/tutorials/get-started-python/) tutorial first. You might also be interested in the next tutorial in the series: [Getting started with Python for-loops](/tutorials/python-for-loops/).
Expand Down Expand Up @@ -469,11 +474,11 @@ The table below provides a summary of everything covered above:
<Lightbox image={image5} alt="" size="large" />

<Message type="tip">
This content is also available as a printable PDF file. [Download the Python lists cheatsheet - Printable](python-lists-cheatsheet.pdf).
This content is also available as a printable PDF file. <LocalAssetLink href={pythonCheatSheetPdf}>Download the Python lists cheatsheet - Printable</LocalAssetLink>
</Message>

## Dictionaries

While a simple list may be sufficient for storing values and carrying out operations like finding the average, what if we wanted to have a record not just of the class marks, but of which students got which marks? That's where dictionaries come in. Dictionaries are identified with curly brackets as opposed to square brackets and contain a series of key/value pairs.

Note that the methods we used on our lists - indexing to retrieve values, `insert()`, `extend()`, `append()` etc. - do not work on dictionaries. We need to learn a new set of methods, as shown below.
Expand Down Expand Up @@ -723,5 +728,5 @@ The table below provides a summary of everything covered above:
<Lightbox image={image6} alt="" size="large" />

<Message type="tip">
This content is also available as a printable PDF file. [Download the Python dicts cheatsheet - Printable](python-dicts-cheatsheet.pdf)
This content is also available as a printable PDF file. <LocalAssetLink href={pythonDictsCheatSheetPdf}>Download the Python dicts cheatsheet - Printable</LocalAssetLink>
</Message>
Loading