Edit: This list is now maintained in the rust-anthology repo.
In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc
Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server
Use this link and get $10 free. Just select the $5 plan unless this a production app.
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
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
const { XrplClient } = require('xrpl-client') | |
const account = 'rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' // The issuer, Bitstamp USD | |
const currency = 'USD' | |
const client = new XrplClient() | |
const main = async () => { | |
await client.ready() | |
const { account_data } = await client.send({ command: 'account_info', account }) |
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
import React from 'react'; | |
import { render } from 'react-dom'; | |
import {PageContent, PageSidebar} from './Content'; | |
import Layout from './Layout'; | |
const Example = Layout({Content: PageContent, Sidebar: PageSidebar}); | |
render(Example, document.getElementById('app')) |
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
/*------------------------------------------ | |
Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
1280-1024 - desktop (default grid) | |
1024-768 - tablet landscape | |
768-480 - tablet | |
480-less - phone landscape & smaller | |
--------------------------------------------*/ | |
@media all and (min-width: 1024px) and (max-width: 1280px) { } | |
@media all and (min-width: 768px) and (max-width: 1024px) { } |
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
❯ gh gist create --help | |
Create a new GitHub gist with given contents. | |
Gists can be created from one or multiple files. Alternatively, pass "-" as | |
file name to read from standard input. | |
By default, gists are secret; use '--public' to make publicly listed ones. | |
USAGE |
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
dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa | |
The options you provided refer to different cryptographic algorithms used for digital signatures. Here's a brief explanation of each: | |
1. DSA (Digital Signature Algorithm): DSA is a widely used algorithm for digital signatures. It is based on the mathematical concept of modular exponentiation and is primarily used for authentication and integrity verification of digital documents. | |
2. ECDSA (Elliptic Curve Digital Signature Algorithm): ECDSA is another digital signature algorithm that is based on elliptic curve cryptography. It offers the same functionality as DSA but with smaller key sizes, making it more efficient in terms of computation and storage. | |
3. ECDSA-SK (ECDSA with Secure Key): ECDSA-SK is an extension of ECDSA that incorporates additional security features for protecting the private key. It typically involves the use of secure hardware modules or tokens to store and perform cryptographic operations using the private key securely. |
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
import: | |
# uncomment the flavour you want below: | |
# - ~/.config/alacritty/catppuccin/catppuccin-mocha.yml | |
# - ~/.config/alacritty/catppuccin/catppuccin-macchiato.yml | |
#- ~/.config/alacritty/catppuccin/catppuccin-frappe.yml | |
# - ~/.config/alacritty/catppuccin/catppuccin-latte.yml | |
- ~/.config/alacritty/tokyo-night/zatchheems-tokyo-night-alacritty-theme.yml | |
# | |
#this is comment | |
# Configuration for Alacritty, the GPU enhanced terminal emulator. |
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
import os | |
print(os.getcwd()) | |
print('hello py') |
OlderNewer