Skip to content

Instantly share code, notes, and snippets.

View mkunstler-delfingen's full-sized avatar

mkunstler-delfingen

  • Delfingen
  • Doubs, France
View GitHub Profile
@0xjac
0xjac / private_fork.md
Last active October 25, 2025 17:58
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@TheBobWiley
TheBobWiley / esxiShutdown
Created August 1, 2015 16:44
esxi shutdown script I found online
#!/bin/sh
# ESXi 5.1 host automated shutdown script
# these are the VM IDs to shutdown in the order specified
# use the SSH shell, run "vim-cmd vmsvc/getallvms" to get ID numbers
# specify IDs separated by a space
SERVERIDS=$(vim-cmd vmsvc/getallvms | sed -e '1d' -e 's/ \[.*$//' | awk '$1 ~ /^[0-9]+$/ {print $1}')
# New variable to allow script testing, assuming the vim commands all work to issue shutdowns
# can be "0" or "1"