Skip to content

Instantly share code, notes, and snippets.

View hervehobbes's full-sized avatar

Hervé hervehobbes

View GitHub Profile
@hervehobbes
hervehobbes / angularFabric.ts
Created January 20, 2025 16:16
Set a background image to a FabricJs canvas
public onFileChange(files: FileUpload | FileUpload[]): void {
if (files == null) {
return;
}
const canvasElement = this.canvas.getElement();
const width = canvasElement.clientWidth;
const height = canvasElement.clientHeight;
const chosenFile: FileUpload = Array.isArray(files) ? files[0] : files as FileUpload;
const uploadedFile = chosenFile.data;
@hervehobbes
hervehobbes / rss.xml
Created January 2, 2025 07:57
rss feeds for .Net, C#, Asp.Net and so on
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<dateCreated>Thu, 02 Jan 2025 07:55:02 +0000</dateCreated>
<title>Tiny Tiny RSS Feed Export</title>
</head>
<body>
</outline>
<outline text="Dot Net" ttrssSortOrder="0">
<outline type="rss" text=".NET Blog" xmlUrl="https://davecallan.com/feed/" ttrssSortOrder="0" ttrssPurgeInterval="0" ttrssUpdateInterval="0" htmlUrl="https://davecallan.com/"/>
@hervehobbes
hervehobbes / WindowsTerminal.md
Created December 30, 2024 09:11 — forked from dahlsailrunner/WindowsTerminal.md
Customization and Setup notes for Windows Terminal
@hervehobbes
hervehobbes / vscode.md
Created December 30, 2024 09:11 — forked from dahlsailrunner/vscode.md
VS Code Notes

VS Code Notes

The following are some notes regarding my setup within VS Code for anyone that is curious.

Settings

  • Font: Cascadia Code (with ligatures)
  • Theme: Dracula -- see Extensions below
  • Workbench->Tree:Indent: 20. I like a little more indentation than is default -- it's easier to see diferrent levels / folders
  • Files->Exclude: I omit certain things from the VS Code Explorer to make focusing on the code easier:
 **/.git
@hervehobbes
hervehobbes / example.ahk
Created March 14, 2024 06:10 — forked from anonymous1184/example.ahk
YouTube Download Helper

;
; REQUIRED
;
ytdl.Path := "D:\CLI\youtube"
; Path of yt-dlp.exe
;
@hervehobbes
hervehobbes / VSCode.md
Created March 14, 2024 06:06 — forked from anonymous1184/VSCode.md
AHK Debugging with Visual Studio Code

AHK Debugging with Visual Studio Code

Created on 2021/11/03 with VSCode version 1.53.
Last revision on 2022/06/30 with VSCode version 1.68.2.

I'm not a native English speaker, so please report inconsistencies to [u/anonymous1184][00] (or send a .patch of the [source][01]).

Table of Contents

@hervehobbes
hervehobbes / Crypt.ahk
Created December 29, 2023 05:19 — forked from anonymous1184/Crypt.ahk
MasterPassword.ahk
; ===============================================================================================================================
; AutoHotkey wrapper for Cryptography API: Next Generation
;
; Author ....: jNizM
; Released ..: 2016-09-15
; Modified ..: 2021-01-04
; Github ....: https://github.com/jNizM/AHK_CNG
; Forum .....: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=23413
; ===============================================================================================================================
@hervehobbes
hervehobbes / Twitter-ads-hiding.md
Created October 28, 2023 04:44 — forked from Lazza/Twitter-ads-hiding.md
Hiding Twitter ads (January 2023)

Hiding Twitter ads (January 2023)

Ads on post-Elon Twitter are becoming more and more obnoxious. You can hide them if you use a content blocking extension, such as the awesome uBlock Origin.

By targeting the little icon that appears near the "Sponsored" label, the filter works on Twitter in every language.

Simply add the following rule to your ad-blocker:

! 2023-01-02 https://twitter.com

/*
Step 1
Create NorthWindContacts database in SSMS
Step 2
Copy this script into SSMS, select NorthWindContacts
Step 3
Run the script
@hervehobbes
hervehobbes / xml
Created July 31, 2023 10:27
.Net blogs.opml
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<dateCreated>Mon, 31 Jul 2023 10:16:54 +0000</dateCreated>
<title>Tiny Tiny RSS Feed Export</title>
</head>
<body>
<outline text="Dot Net" ttrssSortOrder="0">
<outline type="rss" text=".NET Blog" xmlUrl="https://devblogs.microsoft.com/dotnet/feed/" ttrssSortOrder="0" ttrssPurgeInterval="0" ttrssUpdateInterval="0" htmlUrl="https://devblogs.microsoft.com/dotnet"/>
<outline type="rss" text="Andrew Lock | .NET Escapades" xmlUrl="https://andrewlock.net/rss.xml" ttrssSortOrder="0" ttrssPurgeInterval="0" ttrssUpdateInterval="0" htmlUrl="https://andrewlock.net/"/>