Skip to content

Instantly share code, notes, and snippets.

@ajaysharma12799
ajaysharma12799 / zoom.service.js
Created November 12, 2024 05:17
Create Zoom Meetings Using Node.js: A Step-by-Step Guide
import fetch from "node-fetch";
import base64 from "base-64";
const zoomAccountId = "";
const zoomClientId = "";
const zoomClientSecret = "";
const getAuthHeaders = () => {
return {
Authorization: `Basic ${base64.encode(
@mmyoji
mmyoji / migrate-npm-to-pnpm.md
Last active April 2, 2025 09:59
Migrate npm to pnpm
@jlia0
jlia0 / agent loop
Last active April 2, 2025 09:59
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@manuelfischer
manuelfischer / SynoToAD.md
Last active April 2, 2025 09:57
Migration from Synology Directory Server to Windows Server 2022

Migrate from Synology (DSM 7.x) Directory Server (Samba) to Windows Server 2022 Active Directory

This is a brief step-by-step tutorial to migrate from a Samba-AD on Synology to Windows Server AD. This might apply for other Samba AD Servers. I mainly followed this documentation, but it did not work (mainly DFSR related issues). Key differences were permissions on SYSVOL, weird DNS behaviour (therefore I disabled DNS recursion and did not set a gateway IP) and the lack of some CLI packages on Synology.

The Path is: Syno > First 2012R2 (this one will have problems with DFSR) > Second 2012R2 (this one will reset DFSR) > Final 2022.

Of course: while going through this hell, create & validate initial backups and create regular snapshots in case something went wrong. Frequently check health by running dcdiag in powershell. Some errors are normal, on dc22 everything should be pretty clean.

My Test Setup

Before

@minhhieutruong0705
minhhieutruong0705 / OpenCV_Build-Guide.md
Last active April 2, 2025 09:51
Guide to build OpenCV from Source with GPU support (CUDA and cuDNN)

Guide to build OpenCV from source with GPU support (CUDA and cuDNN)

Feb 22nd, 2022

System specification

  • Operating system: Ubuntu 20.04 x84_64 (64-bit)
  • Architecture: amd64
  • GPU: NVIDIA GeForce RTX 3090
  • Python 3.8

Install dependencies and recommeneded packages

@noelbundick
noelbundick / README.md
Created October 14, 2021 16:15
Optimizing Rust container builds

Optimizing Rust container builds

I'm a Rust newbie, and one of the things that I've found frustrating is that the default docker build experience is extremely slow. As it downloads crates, then dependencies, then finally my app - I often get distracted, start doing something else, then come back several minutes later and forget what I was doing

Recently, I had the idea to make it a little better by combining multistage builds with some of the amazing features from BuildKit. Specifically, cache mounts, which let a build container cache directories for compilers & package managers. Here's a quick annotated before & after from a real app I encountered.

Before

This is a standard enough multistage Dockerfile. Nothing seemingly terrible or great here - just a normal build stage, and a smaller runtime stage.

//
import UIKit
import UniformTypeIdentifiers
protocol TokenTextFieldDelegate: AnyObject {
func tokenizedTextField(_ sender: TokenTextField, didTapTokenView: UIView)
}
final class TokenTextField: UITextView {
@genadyp
genadyp / bdd.md
Last active April 2, 2025 09:45
BDD - Binary Decision Diagrams
@dusenberrymw
dusenberrymw / tmux_tips_and_tricks.md
Last active April 2, 2025 09:44
Tmux Tips & Tricks

Quick cheat sheet of helpful tmux commands

  1. tmux new - Create and attach to a new session.
  2. tmux new -s NAME_HERE - Create and attach to a new session named NAME_HERE.
  3. CTRL-b, d - Detach (i.e. exit) from the currently-opened tmux session (alternatively, tmux detach). Note, this means press and hold CTRL, press b, release both, press d.
  4. tmux ls - Show list of tmux sessions.
  5. tmux a - Attach to the previously-opened tmux session.
  6. tmux a -t NAME_HERE - Attach to the tmux session named NAME_HERE.
  7. CTRL-d - Delete (i.e. kill) currently-opened tmux session (alternatively tmux kill-session).
  8. CTRL-b, [ - Enter copy mode, and enable scrolling in currently-opened tmux session. Press q to exit.
  9. CTRL-b, " - Split window horizontally (i.e. split and add a pane below).
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 2, 2025 09:44
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).