- Download the
AppImage
file from Cursor AI's web site - Make the
AppImage
file executable:
cd ~/Downloads
chmod +x cursor-<version>-x86_64.AppImage
- Create/Confirm configuration:
/usr/share/applications/cursor.desktop
AppImage
file from Cursor AI's web siteAppImage
file executable:cd ~/Downloads
chmod +x cursor-<version>-x86_64.AppImage
/usr/share/applications/cursor.desktop
namespace WebApp.Extensions | |
open System | |
open System.Text | |
open System.Threading.Tasks | |
open Microsoft.AspNetCore.Http | |
open Microsoft.AspNetCore.Antiforgery | |
open Microsoft.Extensions.DependencyInjection | |
open Microsoft.Extensions.Logging |
namespace WebApp.HtmlTemplate | |
open System | |
open System.IO | |
open System.Net | |
open System.Text | |
open System.Text.RegularExpressions | |
/// The path to a HTML file or a HTML string. | |
type FileOrContent = string |
Press Alt
while selecting the block of code with the mouse (boxing).
Press Alt+Shift+Up
/ Alt+Shift+Down
to insert cursor above / below.
Press Ctrl+Alt
/ Alt
and click where you want to add a caret.
Select the word then press Alt+Shift+.
/ Ctrl+D
to select the next occurance.
USE EventStore; | |
GO | |
CREATE TABLE dbo.Events | |
( | |
[Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, | |
[Type] NVARCHAR(256) NOT NULL, | |
[Data] NVARCHAR(MAX) NOT NULL, | |
[Version] INT NOT NULL, | |
[StreamName] NVARCHAR(256) NOT NULL, |
{ | |
"Elmish Component": { | |
"prefix": "elmish-comp", | |
"body": [ | |
"open Elmish", | |
"open Elmish.React", | |
"open Feliz", | |
"", | |
"type State = { Message: string }", | |
"", |
function prompt { | |
Write-Host("") | |
$statusString = "" | |
$symbolicRef = git symbolic-ref HEAD | |
$isGit = $NULL -ne $symbolicRef | |
$location = $(get-location) | |
if ($isGit) { | |
$branch = $symbolicRef.substring($symbolicRef.IndexOf("heads/") + 6) | |
$statusString = "GIT " + $branch + " " + $location + ">" |
[<RequireQualifiedAccess>] | |
module DotEnv = | |
open System | |
open System.IO | |
let private parseLine (line: string) = | |
let splitCount = 2 | |
match line.Split('=', splitCount, StringSplitOptions.RemoveEmptyEntries) with | |
| args when args.Length = splitCount -> Environment.SetEnvironmentVariable(args.[0], args.[1]) |
// Microsoft.IdentityModel.Protocols.OpenIdConnect | |
// System.IdentityModel.Tokens.Jwt | |
/// <summary> | |
/// Token validator | |
/// </summary> | |
public class TokenValidator | |
{ | |
private readonly TokenValidationParameters _tokenValidationParameters; |
// NuGet Packages | |
// Serilog.Enrichers.Environment | |
// Serilog.Sinks.ApplicationInsights | |
// Serilog.Sinks.Console | |
open System | |
open Serilog | |
open Serilog.Events | |
[<RequireQualifiedAccess>] |