Skip to content

Instantly share code, notes, and snippets.

View VictorHaine's full-sized avatar
Contributing to entropy since '94

Victor VictorHaine

Contributing to entropy since '94
View GitHub Profile
@VictorHaine
VictorHaine / Service KMS
Created January 2, 2025 02:02 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@VictorHaine
VictorHaine / gpt-doom.js
Last active June 9, 2024 10:36
Mas delete selected chatgpt chats
// Scroll all the day down to the last conversation
// Capture the List of chats using xPath
let chats = $x('//*[@id="__next"]/div[1]/div[1]/div/div/div/div/nav/div[2]/div[3]/div/div/ol/li/div/a')
// Extract chat names and ids
let chatNamesAndIds = chats.map(function(c) {
return {
name: c.innerText,
id: c.href.replace('https://chatgpt.com/c/', '')
Year Month Nominal exchange rate
1941 01 0.0000000000753
1941 02 0.0000000000753
1941 03 0.0000000000753
1941 04 0.0000000000753
1941 05 0.0000000000749
1941 06 0.0000000000745
1941 07 0.0000000000749
1941 08 0.0000000000749
1941 09 0.0000000000745
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
@VictorHaine
VictorHaine / keychron_linux.md
Created July 6, 2022 01:33 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.ComponentModel;
public class Program
{
public static void Main()
{
@VictorHaine
VictorHaine / s3-invalidation.js
Created April 27, 2020 17:16 — forked from supinf/s3-invalidation.js
AWS Lambda script:: CloudFront Invalidations which are triggered by s3 events.
console.log('Loading event');
var Q = require('q');
var aws = require('aws-sdk');
var cloudfront = new aws.CloudFront();
exports.handler = function (event, context) {
//_log('Received event: ', event);
var bucket = event.Records[0].s3.bucket.name;
@VictorHaine
VictorHaine / ThingEntity.java
Created January 27, 2020 02:44 — forked from michael-simons/ThingEntity.java
An example on how to use Hibernate-Spatial with Spring Data JPA Repositories
@Entity
@Table(name = "things")
public class ThingEntity {
@Id
private Long id;
// Needed for use with Hibernate Spatial 4.x
// @Type(type = "org.hibernate.spatial.GeometryType")
private Geometry geometry;
@VictorHaine
VictorHaine / boilerplate.md
Created November 26, 2019 06:07 — forked from IgorMing/boilerplate.md
A simple guide to follow while starting a new project

Project guide

The following suggestions are personal. That's how I like to go while I'm starting a React/React Native project.

Step by step

JS or TS?

Decide whether you want to use plain Javascript or Typescript

@VictorHaine
VictorHaine / boilerplate.md
Created November 26, 2019 06:07 — forked from IgorMing/boilerplate.md
A simple guide to follow while starting a new project

Project guide

The following suggestions are personal. That's how I like to go while I'm starting a React/React Native project.

Step by step

JS or TS?

Decide whether you want to use plain Javascript or Typescript