ChatGPT - How Long Till They Realize I’m a Robot?

Image
I tried it first on December 2nd... ...and slowly the meaning of it started to sink in. It's January 1st and as the new year begins, my future has never felt so hazy. It helps me write code. At my new company I'm writing golang, which is new for me, and one day on a whim I think "hmmm maybe ChatGPT will give me some ideas about the library I need to use." Lo-and-behold it knew the library. It wrote example code. It explained each section in just enough detail. I'm excited....It assists my users. I got a question about Dockerfiles in my teams oncall channel. "Hmmm I don't know the answer to this either"....ChatGPT did. It knew the commands to run. It knew details of how it worked. It explained it better and faster than I could have. Now I'm nervous....It writes my code for me. Now I'm hearing how great Github Copilot is - and it's built by OpenAI too...ok I guess I should give it a shot. I install it, and within minutes it'

Docker on RPi

Here are a few important commands I've learned about docker so far.  I've been working on getting Docker running on RPi which now has support for it.  It's a little different on RPi because RPi boards use the ARM architecture rather than the intel architecture, which most all other CPUs use.  That means that although Docker containers are supposed to be able to run on any machine with Docker installed, it's not true in the case where the container was built on intel and run on ARM or vice versa.  So you have to look for the right types of images to build on top of.  Anything on hub.docker.com that includes 'rpi' or 'arm' should usually be able to run on the RPi.  For example: https://hub.docker.com/r/joaquindlz/rpi-docker-lamp/

Docker run
Docker start
Docker stop
Docker ps

-t tag
--name name of image

-d run container as daemon in background

list running containers:
# docker ps

list all containers:
# docker ps -a

list all images:
# docker images

stop and remove all docker containers:
# docker stop $(docker ps -a -q)
# docker rm $(docker ps -a -q)

stop and remove all docker images:
docker rmi $(docker images -q)

each container has a main process, and will die when that process ends.  But you can run loads of containers at the same time.

backup a mysql db called 'wordpress' which is on the localhost:
mysqldump --add-drop-table -h db01.example.net -u dbocodex -p wp > blog.bak.sql

add current user to www-data group:
sudo gpasswd -a ${USER} www-data

run with privil'd access to memory (for GPIO stuff)
docker run --privileged ....

run shell within container:
docker exec -it bash

package caching break apt-get installs, fix by :


commit changes in a container to an image: https://www.liquidweb.com/kb/how-to-commit-changes-to-docker/
docker commit

backup mysql db to .sql file:
mysqldump -u -p >

restore mysql db from .sql file:
> echo "CREATE DATABASE ;" | mysql
> mysql -u -p <

remove sensitive data(a file and it's history) from a git commit:

Resetting Wordpress password :
through DB: "Through MySQL/MariaDB Command Line"

copy file from container to host:
docker cp :/path/to/file path/to/copy/to




Comments

Popular posts from this blog

ChatGPT - How Long Till They Realize I’m a Robot?

Architectural Characteristics - Transcending Requirements

My experience with Udacity