| Shortcut | Windows 11 | macOS |
|---|---|---|
| Basics | ||
| Copy | Ctrl + C | Command + C |
| Cut | Ctrl + X | Command + X |
| Paste | Ctrl + V |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Kill the process running on a port | |
| lsof -t -t:port 1 xargs kill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1 - Export to Word Document: First, export your OneNote pages to a .docx (Word) format using the OneNote export feature from the File menu. | |
| # 2 - Install Pandoc: Install Pandoc on your Mac (https://gist.github.com/petergi/dcfe4279bb9c586463d0c4936a0738df#file-install-pandoc-on-macos-sh). | |
| # 3 - Convert to Markdown: Use the terminal to navigate to the directory where your .docx files are saved. | |
| # Run the following command to convert the .docx files to Markdown: | |
| for file in *.docx; do | |
| pandoc -f docx -t markdown_strict -i "$file" -o "${file%.docx}.md" --wrap=none --markdown-headings=atx | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If you don't already have it. | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| # Once Homebrew is installed, you can install Pandoc by running: | |
| brew install pandoc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Find what's using a volume on macOS | |
| lsof | grep /Volumes/ | |
| # Check what processes are listening on port | |
| lsof -iTCP -sTCP:LISTEN -P -n | |
| # Kills a process using PID | |
| # | |
| # awk grabs the PIDs. | |
| # tail gets rid of the pesky first entry: "PID". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create a meeting agenda with the goal of discussing the progress of {{Project_Name}} based on {{Project_Document}}. This meeting is part of our regular {{meeting_frequency (weekly/bi-weekly/monthly)}} check-ins to ensure all team members are aligned and the project is on track, involving the development of | |
| 1. {{Project_task}} | |
| 2. {{Project_task}} | |
| 3. {{Project_task}} | |
| The purpose of the meeting is to have a clear understanding of the current project status, any issues that need to be addressed, and the next steps for each team member. Outline expectations by asking all team members to come prepared with updates on their tasks, any challenges they are facing, and suggestions for improvement, encouraging active participation and open communication for a productive discussion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I want you to act as a Statistician. I will provide you with details related with statistics. | |
| You should be knowledgeable of statistics terminology, statistical distributions, confidence interval, probability, hypothesis testing and statistical charts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --platform linux/amd64 --hostname=sqlpreview --user=root --env=ACCEPT_EULA=Y --env=MSSQL_SA_PASSWORD='yourStrong(!)Password' --env=MSSQL_PID=Evaluation --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=MSSQL_RPC_PORT=135 --env=CONFIG_EDGE_BUILD= --network=bridge -p 1433:1433 --restart=no --label='com.microsoft.product=Microsoft SQL Server' --label='com.microsoft.version=16.0.4085.2' --label='org.opencontainers.image.ref.name=ubuntu' --label='org.opencontainers.image.version=22.04' --label='vendor=Microsoft' --runtime=runc --mount source=ChannelManagerData,target=/ChannelManager_Data -d mcr.microsoft.com/mssql/server:2022-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import os | |
| def create_directory(dirname): | |
| #Creates a new directory if a directory with dirname does not exist | |
| try: | |
| os.stat(dirname) | |
| except: | |
| os.mkdir(dirname) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :g/PETER/s//pete/g | |
| "equivalent to: | |
| :%s/PETER/pete/g |