Skip to content

Instantly share code, notes, and snippets.

View yaobinwen-mvs's full-sized avatar

Yaobin Wen yaobinwen-mvs

View GitHub Profile
@yaobinwen-mvs
yaobinwen-mvs / private_fork.md
Created October 16, 2023 19:10 — forked from 0xjac/private_fork.md
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

@yaobinwen-mvs
yaobinwen-mvs / gist:70e130b6e17c84ca97557af6fb32eb2a
Created October 23, 2017 17:47
Resizing a filesystem using qemu-img and fdisk

Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:

  • You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
  • The partition you need to resize is the last partition on the disk.

This process will work with either a qcow2 or raw disk image. For