Skip to content

Instantly share code, notes, and snippets.

@theiwaz
theiwaz / git-access-with-ssh-key.md
Last active May 23, 2024 18:26
GIT access with password protected key

SOURCE

https://interworks.com/blog/2021/09/15/setting-up-ssh-agent-in-windows-for-passwordless-git-authentication/

Just here for when it might be ditched.

Setting up SSH-Agent in Windows for Passwordless Git Authentication

SSH-Agent and OpenSSH are tools in Windows that can be used to authenticate to remote Git repositories, such as GitLab, GitHub, Azure DevOps, etc. Once set up as a service that stores your various SSH keys, this can facilitate authentication without entering a password each...

# Blender
## BoxCutter/Hardops
| Modifier | Key | Description | Environment | Plugin |
| -------- | --- | --------------------- | ----------- | ----------- |
| | D | Boxcutter helper menu | Model | Boxcutter |
| | Q | Hardops menu | Model | Hardops |
| S | V | Boxcutter view menui | Model | Boxcutter |
| | Y | menu | Model | MeshMachin3 |
@theiwaz
theiwaz / CPP snippets.md
Last active January 20, 2021 05:59
Handy cpp snippets

Easy file appending

#include <iostream>
#include <fstream>	

of.open("filename.csv", std::ios::app);

Multiple remotes

Setup remotes

  1. Create fresh git repo somewhere without initialising it.
  2. In your repo push to the new remote

git push https://git-codecommit.us-east-2.amazonaws.comMyClonedRepository --all

Refs:

// Remove files from index without deleting the files
git rm -r --cached .
// Add them to the index again
git add .
// Commit them with a meaningful comment
git commit -m ".gitignore fix"
//ref original source: http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/
$ git remote add origin https://github.com/user/repo.git
# Set a new remote
$ git remote -v
# Verify new remote
> origin https://github.com/user/repo.git (fetch)
> origin https://github.com/user/repo.git (push)
# Pusing to remote
git push -u origin head
@theiwaz
theiwaz / syncdirs.bat
Created April 7, 2020 03:37
Sync dirs with Robocopy
# https://pureinfotech.com/robocopy-transfer-files-fast-network-windows-10/
robocopy %1 %2 /E /Z /ZB /R:5 /W:5 /TBD /NP /V /MT:16
function Remove-StoppedContainers {
docker container rm $(docker container ls -q)
}
function List-AllContainers {
docker container ls -a
}
function List-RunningContainers {
docker container ls

Keybase proof

I hereby claim:

  • I am Theiwaz on github.
  • I am ryanvanderwal (https://keybase.io/ryanvanderwal) on keybase.
  • I have a public key whose fingerprint is BC65 C9B2 F450 0063 FFF9 FCD2 F3FB 7905 2CF9 F0E7

To claim this, I am signing this object: