sudo lsof -i -P | grep LISTEN | grep :$PORT
Choose
- GPU (T4)
- image (Debian 11 Bulleye w/ 50 GB boot disk size)
- add an extra 100 GB disk - choose to delete when vm is deleted, and give it a custom device name to make it easier to see
- add an ssh key if you want - give user name that you want to login as
- make this a spot instance to save money
Now, ssh in
This file contains 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
# SRC_REPO, TGT_REPO are relative to current directory | |
SRC_REPO=$1 | |
TGT_REPO=$2 | |
DIR_NAME=$3 | |
BRANCH_NAME=$4 | |
pushd $SRC_REPO | |
git filter-repo --to-subdirectory "$DIR_NAME" # replace w/ your dir name | |
popd |
This file contains 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
# du -sh - disk usage in s - summary h - human readable format | |
# grep -E "\dG" - filter out items with a digit followed by G - gigabyte | |
du -sh * | grep -E "\dG" |
This file contains 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"syscall" | |
) |
This file contains 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
package test; | |
import org.apache.commons.configuration.CompositeConfiguration; | |
import org.apache.commons.configuration.Configuration; | |
import org.apache.commons.configuration.PropertiesConfiguration; | |
import org.apache.commons.configuration.BaseConfiguration; | |
import java.util.Iterator; | |
class PropMain { |
This file contains 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
#!/bin/bash | |
SVN_HOST="https://svn/path/to/repo" | |
git checkout master | |
git pull --rebase | |
git config --local svn-remote.svn.url "${SVN_HOST}" | |
git config --local svn-remote.svn.fetch ":refs/remotes/git-svn" | |
git config --local svn.rmdir true |
This file contains 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
This is a Fuze Meeting. For the optimal Fuze experience, we suggest you download Fuze ( https://www.fuze.com/download ) before your meeting. | |
Meeting ID: <ID> | |
Join Online Meeting: http://fuze.me/<ID> | |
Join by phone: | |
Dial phone number and enter the Meeting ID when prompted | |
- US Toll: +1 201-479-4595 | |
- India Toll Free : 0008004420042 |
NewerOlder