alembic init alembic1. Set sqlalchemy.url in alembic.ini
2. Set target_metadata to proper models.py's model in env.py
| #!/bin/bash | |
| while true | |
| do | |
| echo " Press [CTRL+C] to stop.." | |
| curl -H Metadata:true "http://169.254.169.254/metadata/scheduledevents?api-version=2019-01-01" | |
| sleep 2 | |
| done |
| # 1. RDP into the VM | |
| # 2. Open PowerShell in Administrator Mode. | |
| # 3. Run the command ‘Set-ExecutionPolicy Unrestricted’. | |
| # 4. Create a powershell script called ‘windows-invm-notification.ps1’ and copy the following content in the file. | |
| DO | |
| { | |
| Invoke-WebRequest http://169.254.169.254/metadata/scheduledevents?api-version=2019-01-01 -H @{"Metadata"="true"}; | |
| Start-sleep -Seconds 2; | |
| } While ($true) |
.\yt-dlp.exe --cookies .\youtube.com_cookies.txt -f "mp4" -o "%(playlist_index)s-%(title)s.%(ext)s"REST (Representational State Transfer)
REST is a standard for designing networked applications. It uses HTTP methods to implement the concept of CRUD (Create, Read, Update, Delete).
When to use REST:
| { | |
| "workbench.startupEditor": "newUntitledFile", | |
| "editor.suggestSelection": "first", | |
| "editor.rulers": [160], | |
| "files.exclude": { | |
| "**/.classpath": true, | |
| "**/.project": true, | |
| "**/.settings": true, | |
| "**/.factorypath": true | |
| }, |
This guide explains how to set up automated code formatting in a Java Maven project using Google's Java code formatter via the fmt-maven-plugin.
The setup combines two key components: