sudo apt-get update
sudo apt-get install automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse && ./autogen.sh && ./configure --prefix=/usr --with-openssl && make && sudo make install
touch /etc/passwd-s3fs
vim /etc/passwd-s3fs
ACCESS_KEY:SECRET_KEY
s3fs <bucketname> -o use_cache=/tmp -o allow_other -o uid=1001 -o mp_umask=002 -o multireq_max=5 <mount_folder>
- Will need to edit
/etc/fuse.conf
to allow others.
aws s3 sync <local folder> s3://<bucket>
lambda_function.py
lambda_request(event, context)
pip install -t . <library>
zip -r upload.zip .
aws lambda update-function-code --function-name <name> --zip-file fileb://<file.zip>
gpg --full-generate-key
gpg -o enc.gpg -e --sign --armor -R <recipient> <file>
- Note:
<recipient>
must be in your public keyring.
sudo usermod -a -G docker $USER
newgrp docker
(make changes take effect immediately)
docker run -it <image> /bin/bash
(if noENTRYPOINT
defined)docker run -it --entrypoint /bin/bash <image>
(ifENTRYPOINT
defined)
docker rm $(docker ps -a -q)
apt-cache policy <package>
apt-get install <package>=<version>
<C-b> <C-o>
- forever. Turn scripts into daemons on Linux.
<Enter>~C
. Open SSH configuration on already open connection.