Skip to content

Instantly share code, notes, and snippets.

View sganous's full-sized avatar
Need coffee...

Sergey Ganous sganous

Need coffee...
View GitHub Profile
@noelboss
noelboss / git-deployment.md
Last active July 16, 2024 09:50
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@mca-gif
mca-gif / bash_script_template.sh
Last active June 7, 2024 20:30
Template for Multi Command Bash Scripts
#!/usr/bin/env bash
# This is a template which provides a number of utilities I find useful when building a Bash script.
# It handles the case where one script may perform multiple commands, and that must be determined by arguments.
# Read comments marked with TODO for how to populate the script.
# This template also provides functionality to define and check for verbosity and debuginess, as well as constants which can be used to display color output.
VERBOSE=0
DEBUG=0
@mca-gif
mca-gif / readme.md
Created June 12, 2020 20:28
Transfer Whole Disk Windows 10 VM to new drive with Linux

Transfer Whole Disk Windows 10 VM to new drive with Linux

Moving all of my Windows 10 VMs from a 2TB hybrid drive (sda) to a 512GB NVME (nvme1n1). This only worked so easily because the Windows system partition was only 160GB to begin with, so it was going to grow instead of shrink.

The original partition map on sda was as follows:

label: gpt
label-id: DF9036C3-BB74-4013-B1DE-B4E3B60B9BC3