Skip to content

Instantly share code, notes, and snippets.

View MSK998's full-sized avatar

Mark Scott-Kiddie MSK998

  • UK
  • 21:00 (UTC +01:00)
View GitHub Profile
@MSK998
MSK998 / gist:ccb9ed8cc725d7a0d75f81c1b7353637
Last active July 18, 2025 20:51
Test schema for beekeeper
/*
Sakila for Microsoft SQL Server is a port of the Sakila example database available for MySQL, which was originally developed by Mike Hillyer of the MySQL AB documentation team.
This project is designed to help database administrators to decide which database to use for development of new products
The user can run the same SQL against different kind of databases and compare the performance
License: BSD
Copyright DB Software Laboratory
http://www.etl-tools.com
@MSK998
MSK998 / remove-all-from-docker.sh
Created August 25, 2021 18:31 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@MSK998
MSK998 / git-pushing-multiple.rst
Created June 29, 2021 08:16 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@MSK998
MSK998 / git-deployment.md
Last active June 29, 2021 08:17 — forked from noelboss/git-deployment.md
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.

@MSK998
MSK998 / Basic_PM2_Deployment.md
Last active July 1, 2021 12:30
Basic PM2 Deployment

Basic PM2 Deployment

An outline on how to deploy code locally via PM2. Learn how to deploy NodeJs (or any other codebase) to a server.

Requirements

  • A codebase to run on PM2
  • A server to deploy your code to, in this case im just using a VM running Ubuntu:20.04

Server Set Up