Skip to content

Instantly share code, notes, and snippets.

View kaizen-soze's full-sized avatar

Ben Smith kaizen-soze

  • Gainesville, FL
View GitHub Profile
@kaizen-soze
kaizen-soze / linux.md
Created July 24, 2021 00:01
Linux commands

View server cpu usage

ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head

@kaizen-soze
kaizen-soze / docker.sh
Last active July 22, 2021 00:40
Docker Commands
# Delete every Docker containers
# Must be run first because images are attached to containers
# docker rm -f $(docker ps -a -q)
# Commented out because it doesn't seem to work.
# Delete every Docker image
docker rmi -f $(docker images -q)

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
@kaizen-soze
kaizen-soze / ignore.sh
Created January 19, 2021 02:56
Ignore Requirements when installing composer
php composer.phar install --ignore-platform-reqs

Keybase proof

I hereby claim:

  • I am kaizen-soze on github.
  • I am kaizensoze (https://keybase.io/kaizensoze) on keybase.
  • I have a public key ASDmMS0MeWIk2vyJ6QNw1iVy2Ti0F66mbpm3_tPcoq3Y3go

To claim this, I am signing this object: