Skip to content

Instantly share code, notes, and snippets.

@felipou
felipou / decrypt_dbeaver.py
Last active May 14, 2024 22:14
DBeaver password decryption script - for newer versions of DBeaver
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection
# requires pycryptodome lib (pip install pycryptodome)
import sys
import base64
import os
import json
from Crypto.Cipher import AES
@juancols
juancols / stm32-on-macos-m1.md
Last active May 14, 2024 22:10
STM32 toolchain setup on macOS M1

STM32 toolchain setup on macOS M1

Note: these steps were tested on a MacBook Air M1 2020, 8 GB RAM and macOS Ventura 13.0.1

STM32CubeProgrammer

1. Download

You can get the latest version of the STM32CubePrg-Mac package at STm dev-tools website. The version I used in this guide was the 2.12.0. image

2. Installation

@jsteenb2
jsteenb2 / systems_thinking.md
Last active May 14, 2024 22:09
Systems Thinking resources

Systems Thinking - go beyond the JIRA ticket

Systems thinking has been the single most impactful topic I've ever endured. It has changed the way I view the world, not just my job. This is a detailing of some of the best ways to start learning systems thinking. My perspective is that of an engineer and someone who obsesses over problem solving in its most general form. I suggest starting with the Primer by Dr. Ackoff. From there explore as you must. Its ordered in level of depth and understanding, but feel free to bounce around as you see fit.

  1. Primer - If Russ Ackoff had given a TED talk
    • Dr. Ackoff is quite the story teller! You'll see him listed quite a bit here
  2. Thinking in Systems - By Dr. Meadows
    • a gentle intro to systems thinking from Dr. Meadows, an incredible teacher ❤️
  • a summarized video format given by Dr. Meadows can be found [here](https://www.yo
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 14, 2024 22:07
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clickable Swedish Keyboard Layout</title>
<style>
body {
display: flex;
justify-content: center;

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

diff --git a/nvm.sh b/nvm.sh
index 7aaac55..5536c6e 100644
--- a/nvm.sh
+++ b/nvm.sh
@@ -38,7 +38,7 @@ nvm()
cd "$NVM_DIR/src" && \
git clone git://github.com/ry/node.git && \
cd node && \
- ./configure --prefix="$NVM_DIR/HEAD" && \
+ ./configure --debug --prefix="$NVM_DIR/HEAD" && \
@bejaneps
bejaneps / websites.csv
Created August 28, 2020 18:09
List of top 1000 websites
1 fonts.googleapis.com 10
2 facebook.com 10
3 twitter.com 10
4 google.com 10
5 youtube.com 10
6 s.w.org 10
7 instagram.com 10
8 googletagmanager.com 10
9 linkedin.com 10
10 ajax.googleapis.com 10
@michellephung
michellephung / sublime-command-line.md
Created February 2, 2016 22:07 — forked from adrianorsouza/sublime-command-line.md
launch sublime text from the command line

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

@thisismydesign
thisismydesign / google-oauth.controller.ts
Last active May 14, 2024 21:57
OAuth2 in NestJS for social login (Google, Facebook, Twitter, etc) /1
import { Controller, Get, Req, Res, UseGuards } from '@nestjs/common';
import { Request, Response } from 'express';
import { GoogleOauthGuard } from './google-oauth.guard';
@Controller('auth/google')
export class GoogleOauthController {
constructor(private jwtAuthService: JwtAuthService) {}
@Get()
@UseGuards(GoogleOauthGuard)