codekeeper : (ckp)
CLI that helps you store and reuse your common scripts and solutions from anywhere
Overview
If you ever found yourself using a bunch of complex scripts or useful bash oneliner and you find it hard to manually add them to a file, send them to a server and then fetch them to this new machine you have recently acquired or ssh-ed into, this tool is for you.
Prerequisite
ckp uses several dependencies such as:
gitversion >= 2.24.3 you can follow this steps to install git- only
bashcompatible commands can be run usingckp, you can use the tool withoutbashbut you won't be able to run your commands using the CLI
Install
Using the install script:
Run
$> curl https://raw.githubusercontent.com/elhmn/ckp/master/install.sh | bashIt will create a ./bin/ckp binary on your machine
In order to run the command add it to your /usr/local/bin
$> cp ./bin/ckp /usr/local/binUsing homebrew:
Run
$> brew tap elhmn/ckp https://github.com/elhmn/ckp
$> brew install ckpDownload
Download the lastest version here
Then copy the binary to your system binary /usr/local/bin folder
Usage
How to Init-ialize ckp
-
You first need to create an empty git repository that
ckpwill use as a storage. we higly recommend to keep this repository private -
Once the repository is created you can initialise
ckpusing the init command. Copy the ssh or https url and pass it as an argument to theckp initcommand
$> ckp init git@github.com:elhmn/store.gitThis will create a ~/.ckp folder, and clone the storage repository
How to Add your scripts and solutions
The add code command will store your script as a code entry in ckp
ckp add code 'echo say hi!' --alias="sayHi" --comment="a script that says hi"
The add solution command will store your script as a solution entry in ckp
ckp add solution 'https://career-ladders.dev/engineering/' --comment="carreer ladders"
How to Push your scripts to your remote storage repository
The push command will be commited and pushed to your remote repoitory
ckp push
How to Pull your scripts from your remote storage repository
The pull command will pull changes from your remote storage repository
ckp pull
How to Find a script or solution
The find command will prompt a search and selection UI, that can be used to find
ckp find
How to Run a script or solution
The run command will prompt a search and selection UI, that can be used to find and run a specific script
ckp run
License
MIT.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

