Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| # Alex Ellis 2018 | |
| # Example from: https://blog.alexellis.io/quick-look-at-google-kaniko/ | |
| # Pre-steps: | |
| # kubectl create secret generic docker-config --from-file $HOME/.docker/config.json | |
| # Other potential optimizations (suggested by @errordeveloper) | |
| # - Store "templates" in a permanent volume | |
| # - Download source via "tar" instead of git clone |
| FROM adminer:4.7.1 | |
| # WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING | |
| MAINTAINER [email protected] | |
| USER root | |
| RUN apk add autoconf gcc g++ make libffi-dev openssl-dev | |
| RUN pecl install mongodb | |
| RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini |
| # Options | |
| set tabsize 4 | |
| set tabstospaces | |
| set indicator # side-bar for indicating cur position | |
| set linenumbers | |
| #set numbercolor green,normal | |
| #set suspendable # allow nano be suspended | |
| set smarthome # home jumps to line start first | |
| set zap # delete selected text as a whole |
| # First let's update all the packages to the latest ones with the following command | |
| sudo apt update -qq | |
| # Now we want to install some prerequisite packages which will let us use HTTPS over apt | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq | |
| # After that we will add the GPG key for the official Docker repository to the system | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # We will add the Docker repository to our APT sources |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/env bash | |
| # AI Helper powered by ollama AI and piper TTS | |
| # Author: @c3rb3ru5d3d53c | |
| # Requires: ffplay, ollama and piper | |
| # ollama: https://github.com/jmorganca/ollama | |
| # piper : https://github.com/rhasspy/piper | |
| # start ollama first with ollama serve | |
| # Global Variable Configuration |