https://pnpm.io/installation#using-corepack
$ corepack enable
$ corepack prepare pnpm@latest --activate
$ pnpm --version
import fetch from "node-fetch"; | |
import base64 from "base-64"; | |
const zoomAccountId = ""; | |
const zoomClientId = ""; | |
const zoomClientSecret = ""; | |
const getAuthHeaders = () => { | |
return { | |
Authorization: `Basic ${base64.encode( |
https://pnpm.io/installation#using-corepack
$ corepack enable
$ corepack prepare pnpm@latest --activate
$ pnpm --version
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 |
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.
Before
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.
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 { |
tmux new
- Create and attach to a new session.tmux new -s NAME_HERE
- Create and attach to a new session named NAME_HERE.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
.tmux ls
- Show list of tmux sessions.tmux a
- Attach to the previously-opened tmux session.tmux a -t NAME_HERE
- Attach to the tmux session named NAME_HERE.CTRL-d
- Delete (i.e. kill) currently-opened tmux session (alternatively tmux kill-session
).CTRL-b, [
- Enter copy mode, and enable scrolling in currently-opened tmux session. Press q
to exit.CTRL-b, "
- Split window horizontally (i.e. split and add a pane below).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.