Skip to content

Instantly share code, notes, and snippets.

View The24thDS's full-sized avatar

David Sima The24thDS

View GitHub Profile
@The24thDS
The24thDS / cloudSettings
Last active June 6, 2020 08:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-06T08:10:43.943Z","extensionVersion":"v3.4.3"}
@The24thDS
The24thDS / init.cypher
Created June 22, 2021 16:56
Karen Neo4j init script
CREATE CONSTRAINT user_username_unique IF NOT EXISTS ON (n:User) ASSERT n.username IS UNIQUE;
CREATE CONSTRAINT user_email_unique IF NOT EXISTS ON (n:User) ASSERT n.email IS UNIQUE;
CREATE CONSTRAINT user_id_unique IF NOT EXISTS ON (n:User) ASSERT n.id IS UNIQUE;
CREATE CONSTRAINT tag_name_unique IF NOT EXISTS ON (n:Tag) ASSERT n.name IS UNIQUE;
CREATE CONSTRAINT tag_id_unique IF NOT EXISTS ON (n:Tag) ASSERT n.id IS UNIQUE;
CREATE CONSTRAINT model_id_unique IF NOT EXISTS ON (n:Model) ASSERT n.id IS UNIQUE;
CREATE CONSTRAINT collection_id_unique IF NOT EXISTS ON (n:Collection) ASSERT n.id IS UNIQUE;
CREATE CONSTRAINT file_id_unique IF NOT EXISTS ON (n:File) ASSERT n.id IS UNIQUE;
CALL db.index.fulltext.createNodeIndex("modelNamesAndDescriptions", ["Model"], ["name", "description"], {analyzer: "english"});
CREATE INDEX user_id_index IF NOT EXISTS FOR (n:User) ON (n.id);
@The24thDS
The24thDS / open_in_steam.js
Last active January 19, 2023 17:14
Tampermonkey script for opening Steam store pages in the client
// ==UserScript==
// @name Open in Steam
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description Adds a button on Steam store page that can be used to open that page inside the Steam client;
// @author The24thDS
// @match https://store.steampowered.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// @grant none
// ==/UserScript==