This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Technical and architectural audit of a system. This is an evolving documentation vault, not a codebase.
| server { | |
| listen 80; | |
| root /var/www/YOUR_DIRECTORY; | |
| index index.php index.html index.htm; | |
| ################################################### | |
| # Change "yoururl.com" to your host name | |
| server_name yoururl.com; |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| postgres: | |
| image: postgres:9.4 | |
| volumes: | |
| - ./init.sql:/docker-entrypoint-initdb.d/init.sql |
| Backup: | |
| docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
| Restore: | |
| cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
poetry run gunicorn testpg:app -p 8080 --preload --reload --reload-engine inotify -w 10 -k uvicorn.workers.UvicornWorker --log-level debug --access-logfile - --error-logfile - --access-logformat "SSSS - %(h)s %(l)s %(u)s %(t)s \"%(r)s\" %(s)s %(b)s \"%(f)s\" \"%(a)s"
docker run --network="host" -it --rm --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -e PGDATA=/var/lib/postgresql/data/pgdata -v /tmp/pgdata2:/var/lib/postgresql/data -e POSTGRES_USER=test postgres
This command will quickly start postgres on port 5432 and create a database test with user test and password mysecretpassword
This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:
*nix based command prompt (but not the default Windows Command Prompt!)cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows).ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.ssh-keygen -t rsa -C "your_email@example.com". ThSystem: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| # Fish shell | |
| egrep "^export " ~/.bash_profile | while read e | |
| set var (echo $e | sed -E "s/^export ([A-Za-z_]+)=(.*)\$/\1/") | |
| set value (echo $e | sed -E "s/^export ([A-Za-z_]+)=(.*)\$/\2/") | |
| # remove surrounding quotes if existing | |
| set value (echo $value | sed -E "s/^\"(.*)\"\$/\1/") | |
| if test $var = "PATH" |
Picking the right architecture = Picking the right battles + Managing trade-offs