Skip to content

Instantly share code, notes, and snippets.

@mikeblas
mikeblas / SampleData.md
Last active May 15, 2024 20:29
FAQ: Where can I get sample data?

It's not so hard to find sample data and data sources to use for interesting side-projects, or just for practicing writing SQL.

In-product sample data

Most DBMSes come with sample databases. You can write lots of interesting queries against them, and usually a tutorial accompanies the database in the documentation.

@aallan
aallan / mac-vendor.txt
Last active May 15, 2024 20:28
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?

Forward GnuPG agent from macOS to Linux

On the remote machine

Run gpg once as your to create the directory structure

gpg --list-keys

For headless systemd based hosts

@sora10pls
sora10pls / Titan Randomizer.cs
Last active May 15, 2024 20:25
A Randomizer for Pokémon Scarlet and Pokémon Violet
// PATHS
public const string DEST_MASTER = "";
public const string PATH_MASTER = "";
public static string DEST_LOG = "";
public const string LANGUAGE = "English";
// MAXIMUMS
public const int MAX_SPECIES_ID = 1025;
public const int MAX_MOVE_ID = 919;
public const int MAX_ABILITY_ID = 310;
@SeeminglyScience
SeeminglyScience / emca-335-i.11.md
Last active May 15, 2024 20:25
Rules for CLS-compliance

[I.11 Collected Common Language Specification rules][§I.11]

The complete set of CLS rules are collected here for reference. Recall that these rules apply only to "externally visible" items—types that are visible outside of their own assembly and members of those types that have public, family, or family-or-assembly accessibility. Furthermore, items can be explicitly marked as CLS-compliant or not using the System.CLSCompliantAttribute. The CLS rules apply only to items that are marked as CLS-compliant.

  1. CLS rules apply only to those parts of a type that are accessible or visible outside of the defining assembly. ([§I.7.3])

  2. Members of non-CLS compliant types shall not be marked CLS-compliant. ([§I.7.3.1])

  3. Boxed value types are not CLS-compliant. ([§I.8.2.4].)

@kcranston
kcranston / postgres-jsonb.md
Last active May 15, 2024 20:24
intro to document stores in postgreSQL

Document stores in PostgreSQL

Notes for software engineering meeting presentation

What

  • mid to late 2000s: appearance of Document stores / NoSQL databases such as Mongo, Couch
  • Relational DBs now have support for document data: JSON in MySQL, JSON and JSONB in PostgreSQL
  • Focus on JSONB in Postgres (most full featured)
@guest271314
guest271314 / compiling_standalone.md
Last active May 15, 2024 20:22
Compiling a standalone executable using modern JavaScript/TypeScript runtimes

Compiling a standalone executable using modern JavaScript/TypeScript runtimes

We have the same code working using node, deno, and bun.

E.g.,

bun run index.js
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

local M = {
"neoclide/coc.nvim",
branch = "master",
build = "yarn install --frozen-lockfile",
}
M.config = function()
-- Some servers have issues with backup files, see #649
vim.opt.backup = false
vim.opt.writebackup = false
@nathandaly
nathandaly / BaseResource.php
Last active May 15, 2024 20:19
Tenancy for Laravel & Filament V3 (Tenant per database)
<?php
/**
* Below is an the extended Filament resource your tenant panel resources
* will have to extend so that the queries are scoped properly.
*/
namespace App\Filament;
use Filament\Resources\Resource;