Skip to content

Instantly share code, notes, and snippets.

View franTarkenton's full-sized avatar
🌵

Guy Lafleur franTarkenton

🌵
View GitHub Profile

Cheat sheet for VS_Code

Annoying Preview Mode

By default when you open a file it is opened in preview mode. You can tell a tab is a preview if the text describing the file that was opened is itallicized. If you double click on the tab it will remove preview mode, resulting in the file staying open when you open another file.

You can also disable preview mode by adding the following to your setting.json:

Description

The following code demo's one way you can query active directory, translating a username to an email address. Code is derived from this [stackexchange post](https://stackoverf

@franTarkenton
franTarkenton / serve.js
Created July 17, 2020 17:35
Node https web server
/*
create the client certificates:
--------------------------------------------
openssl genrsa -out key.pem 2048
openssl req -new -key key.pem -out client.csr
openssl x509 -req -in client.csr -signkey key.pem -out cert.pem
run the web server:
--------------------------------------------
node serve.js
@franTarkenton
franTarkenton / github_demo_agenda.md
Last active September 9, 2020 19:23
Agenda for Github Overview

GITHUB / Walkthrough


Rough Agenda

  • Confirm / Adjust Agenda Complete 9-9-2020
  • Background on Git - What is it, where did it come from? Complete 9-9-2020
  • Overview of GIT (fast) Complete 9-9-2020
@franTarkenton
franTarkenton / WSL.md
Last active May 19, 2026 23:47
Windows subsystem for linux 2 setup
@franTarkenton
franTarkenton / NewToDev-GettingStartedWithSMK.md
Last active November 4, 2020 02:31
A introductory guide to getting started with SMK, for users that might be wondering... What is node, where to type that? what editor should I use, etc

Introduction

This is a really really simple guide to try to get people with little to no experience with node or command lines or software development experience, started with using the Simple Map Kit Command Line Interface (SMK-CLI). Documentation already exists at the SMK-CLI github repository, however for some it starts with too many assumptions about what a user may or may not know. This document attempts to bring it down to mere mortal level.

Getting started / Installing Dependencies

@franTarkenton
franTarkenton / Baileys.md
Created December 7, 2020 23:13
My Baileys reciepe

Homemade Baileys




A while back I thought, baileys is kinda expensive, and being a DIY

@franTarkenton
franTarkenton / Video_Editing.md
Created December 20, 2021 01:38
Notes on processing videos

Annimations from stills

ffmpeg -r 12 -pattern_type glob -i '*.jpg' -c:v libx264 ../movie4.mp4

Get metadata from photo

# change data by adding 2 years to a single file
exiftool "-AllDates+=2:00:00 00:01:00" -verbose myfile.jpg
# change all files matching a pattern
exiftool "-AllDates+=2:00:00 00:01:00" -verbose *.jpg

view metadata

@franTarkenton
franTarkenton / OIDC.md
Last active May 14, 2022 00:44
Understanding OIDC

Overview

It seems there are a lot of different ways an app can the authorized using a 3rd party authorization provider like:

  • keycloak
  • google
  • auth0
  • okta
  • etc...