psql postgres
CREATE DATABASE <database_name>;
DROP DATABASE [IF EXISTS) name;
| # search file | |
| :vimgrep filename **/*.lua | |
| :copen | |
| # using vimgrep | |
| :grep filename **/* | |
| :copen |
| { | |
| // open json editor for settings | |
| "workbench.settings.editor": "json", | |
| // Theme | |
| "workbench.colorTheme": "Aura Dark", | |
| "workbench.iconTheme": "moxer-icons", | |
| // Change font | |
| "editor.fontFamily": "Geist Mono", |
| using System.Linq; | |
| using Microsoft.EntityFrameworkCore; | |
| /** | |
| dotnet new globaljson | |
| Add a manisfest near solution | |
| dotnet new tool-manifest | |
| dotnet tools add dotnet-ef --version 5.0.12 | |
| dotnet add package Microsoft.EntityFrameworkCore | |
| dotnet add package Microsoft.EntityFrameworkCore.InMemory |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |