Skip to content

Instantly share code, notes, and snippets.

View Devoleksiy's full-sized avatar
🏠
Working from home

Devoleksiy Devoleksiy

🏠
Working from home
View GitHub Profile
@christopher-paul-shaw
christopher-paul-shaw / mysqldump-progress-export
Last active November 29, 2022 09:00
MySQL Dump With Progress Bar
Exporting From DB
mysqldump -u root -ppassword databasename | pv --progress --size 10g -t -e -r -a > databasedump.sql
Importing
pv sqlfile.sql | mysql -uxxx -pxxxx dbname
@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.

@Nilpo
Nilpo / Using Git to Manage a Live Web Site.md
Last active April 26, 2024 19:09
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents