Skip to content

Instantly share code, notes, and snippets.

View JaimeStill's full-sized avatar
👾

Jaime Still JaimeStill

👾
View GitHub Profile
@JaimeStill
JaimeStill / readme.md
Last active September 18, 2023 13:18
.NET SQL Server Codespace Configuration

.NET SQL Server Codespace Configuration

File Hierarchy:

  • .devcontainer
    • mssql
      • installSQLtools.sh
      • postCreateCommand.sh
      • setup.sql
    • devcontainer.json
@JaimeStill
JaimeStill / readme.md
Created August 24, 2023 16:17
Using Pandoc to convert MD to PDF
@JaimeStill
JaimeStill / readme.md
Created July 18, 2023 17:48
Flatten a list within a list into a projection of objects

Project Items From a Sub-List

Initial Data Source

Dictionary<KeyValuePair<string, string>, List<string>> PropertyMap = new()
{
    { new("PACKAGE_TYPE", "PackageType"), new() },
    { new("TURNAROUND_TIME", "TurnaroundTime"), new() },
    { new("TRACKING", "Tracking"), new() }
@JaimeStill
JaimeStill / AppServiceRegistrant.cs
Last active March 16, 2023 19:11
Service Registration via Reflection in .NET
using Microsoft.Extensions.DependencyInjection;
namespace App.Services;
public class AppServiceRegistrant : ServiceRegistrant
{
public AppServiceRegistrant(IServiceCollection services)
: base(services) { }
public override void Register()
{

git SSH on Windows

ssh-keygen -t ed25519 -C "[email protected]"
# enter a file in which to save the key (/c/Users/YOU/.ssh/ed25519):[Press enter]
# enter passphrase(empty for no passphrase): [Type a passphrase]
# Enter same passphrase again: [Type passphrase again]

# from admin powershell
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
@JaimeStill
JaimeStill / screencasts.md
Created February 15, 2023 03:03
Edit Screencasts with FFMPEG

Edit Screencasts in Ubuntu with FFMPEG

# optional: install ffmpeg
sudo apt install ffmpeg

# from input at start through time, copy video and audio to output
ffmpeg -i {input} -ss {hh:mm:ss} -t {hh:mm:ss} -c:v copy -c:a copy {output}

# example
@JaimeStill
JaimeStill / recover-deleted-branch.sh
Created September 25, 2022 15:08 — forked from umayr/recover-deleted-branch.sh
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@JaimeStill
JaimeStill / research.md
Last active September 17, 2022 16:05
Keep R&D efforts organized and focused.

Research and Development

  • e2e-disposable-data
    • Establish a seeding strategy that allows graphs of data to be fed through the Rig API to prevent cirumvention of app API data restrictions.
    • Build out a vanilla TypeScript RigService class that provides an interface into the Rig API and automates database initialization + process start.
    • Integrate Cypress testing strategy (initially established in this gist into the RigService.
    • Establish lifecycle patterns that support multiple e2e tests in one RigService lifetime:
      • RigService:
        • Initialize Database
  • Start Process
@JaimeStill
JaimeStill / abstract.md
Last active April 15, 2022 15:39
Research for geojson based mapping database / visualization engine