Skip to content

Instantly share code, notes, and snippets.

@trandaison
trandaison / starUML.md
Last active November 14, 2024 00:05
Get full version of StarUML
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active November 16, 2024 05:46 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "[email protected]"
@garrettjoecox
garrettjoecox / instructions.md
Last active October 27, 2024 06:30
Make windows 10 suck less

Windows 10 not suck mode

This guide is currently updated for Windows 10 2021 LTSC (21H2)

Installation

  • Create a bootable USB thumb drive (Windows 10 X64 Enterprise LTSC 2021 ESD MULTi-6 JAN 2022 {Gen2} on pirate bay)
  • Boot computer onto drive
  • Press Install Now
  • Choose "Custom: Install Windows only"
@andrebrait
andrebrait / keychron_linux.md
Last active November 7, 2024 08:48
Keychron keyboards on Linux + Bluetooth fixes

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

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

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 (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@jakariyaa
jakariyaa / OktaVerify_TOTP_Key_Exteaction.md
Last active September 26, 2024 16:36
Okta Verify TOTP secret key can be extracted easily using curl and the code below.
  1. Get the content of the QR for Okta Verify app setup. It looks like this: oktaverify://[email protected]/?t=XXXXX&f=YYYYY&s=https://DOMAIN.okta.com&issuer=DOMAIN.okta.com&isIdxEnabled=true
  2. Replace XXXXX, YYYYY and DOMAIN to your values in curl below:
curl --request POST \
  --url https://DOMAIN.okta.com/idp/authenticators \
  --header 'Accept: application/json; charset=UTF-8' \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Authorization: OTDT XXXXX' \
  --header 'Content-Type: application/json; charset=UTF-8' \