Skip to content

Instantly share code, notes, and snippets.

@theiwaz
theiwaz / Blender
Last active January 8, 2024 04:47
# Blender
## VSE
| Modifier | Key | Description | Environment | Plugin |
| -------- | --- | ----------------------------------- | ----------- | --------------- |
| | P | select playback area | timeline | native |
| A | P | remove playback area | timeline | native |
| C+A | P | Set preview to selected | vse | power sequencer |
| | S | Slide strip contents | vse | native |
@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:

@theiwaz
theiwaz / jquery-with-fallback.html
Created May 1, 2013 08:51 — forked from markvital/jquery-with-fallback.html
HTML: JQuery CDN with fallback
<!-- Grab Google CDN's jQuery & jQuery UI. Fall back to local if necessary -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
window.jQuery || document.write(unescape("<script src='/js/jquery-1.8.2.min.js' type='text/javascript'</script>"));
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript">
window.jQuery.ui || document.write(unescape("<script src='/js/jquery-ui.min.js' type='text/javascript'</script>"));
</script>