diff --git a/.gitignore b/.gitignore index 0d0cccd..75b681f 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,6 @@ pelican-themes/ pelican-plugins/ build.sh + +vars.fish + diff --git a/Makefile b/Makefile index 6c1fb36..188efbb 100644 --- a/Makefile +++ b/Makefile @@ -8,24 +8,6 @@ OUTPUTDIR=$(BASEDIR)/output CONFFILE=$(BASEDIR)/pelicanconf.py PUBLISHCONF=$(BASEDIR)/publishconf.py -FTP_HOST=localhost -FTP_USER=anonymous -FTP_TARGET_DIR=/ - -SSH_HOST=localhost -SSH_PORT=22 -SSH_USER=root -SSH_TARGET_DIR=/var/www - -S3_BUCKET=my_s3_bucket - -CLOUDFILES_USERNAME=my_rackspace_username -CLOUDFILES_API_KEY=my_rackspace_api_key -CLOUDFILES_CONTAINER=my_cloudfiles_container - -DROPBOX_DIR=~/Dropbox/Public/ - -GITHUB_PAGES_BRANCH=gh-pages DEBUG ?= 0 ifeq ($(DEBUG), 1) @@ -48,15 +30,9 @@ help: @echo ' make publish generate using production settings ' @echo ' make serve [PORT=8000] serve site at http://localhost:8000' @echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 ' - @echo ' make devserver [PORT=8000] start/restart develop_server.sh ' - @echo ' make stopserver stop local server ' + @echo ' make devserver [PORT=8000] serve and regenerate together ' @echo ' make ssh_upload upload the web site via SSH ' @echo ' make rsync_upload upload the web site via rsync+ssh ' - @echo ' make dropbox_upload upload the web site via Dropbox ' - @echo ' make ftp_upload upload the web site via FTP ' - @echo ' make s3_upload upload the web site via S3 ' - @echo ' make cf_upload upload the web site via Cloud Files' - @echo ' make github upload the web site via gh-pages ' @echo ' ' @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html ' @echo 'Set the RELATIVE variable to 1 to enable relative urls ' @@ -65,6 +41,7 @@ help: resume: rst2pdf $(INPUTDIR)/pages/russell.ballestrini.resume.rst --stylesheets $(INPUTDIR)/pages/russell.ballestrini.resume.style -o $(OUTPUTDIR)/uploads/russell.ballestrini.resume.pdf + html: $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) @@ -76,54 +53,28 @@ regenerate: serve: ifdef PORT - cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT) + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) else - cd $(OUTPUTDIR) && $(PY) -m pelican.server + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) endif serve-global: ifdef SERVER - cd $(OUTPUTDIR) && $(PY) -m pelican.server 80 $(SERVER) + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER) else - cd $(OUTPUTDIR) && $(PY) -m pelican.server 80 0.0.0.0 + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b 0.0.0.0 endif devserver: ifdef PORT - $(BASEDIR)/develop_server.sh restart $(PORT) + $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) else - $(BASEDIR)/develop_server.sh restart + $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) endif -stopserver: - kill -9 `cat pelican.pid` - kill -9 `cat srv.pid` - @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.' - publish: $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) -ssh_upload: publish - scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) -rsync_upload: publish - rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude - -dropbox_upload: publish - cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR) - -ftp_upload: publish - lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit" - -s3_upload: publish - s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type - -cf_upload: publish - cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) . - -github: publish - ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR) - git push origin $(GITHUB_PAGES_BRANCH) - -.PHONY: html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github +.PHONY: html help clean regenerate serve serve-global devserver publish diff --git a/README.rst b/README.rst index b7d51c4..99c0d15 100644 --- a/README.rst +++ b/README.rst @@ -17,6 +17,13 @@ Clone this repo, then in the ``pelican-themes`` directory clone this repo: git clone git@github.com:russellballestrini/pelican-svbhack.git cd .. +To install this theme: + +.. code-block:: bash + + pelican-themes -i pelican-themes/pelican-svbhack/ + + Next clone the `pelican-plugins` repo (I use ``random_article``) .. code-block:: bash diff --git a/content/2019-11-08-unity-collab-not-working-on-fedora-because-of-invalid-ca-certificate-path.rst b/content/2019-11-08-unity-collab-not-working-on-fedora-because-of-invalid-ca-certificate-path.rst new file mode 100644 index 0000000..3b9aa97 --- /dev/null +++ b/content/2019-11-08-unity-collab-not-working-on-fedora-because-of-invalid-ca-certificate-path.rst @@ -0,0 +1,32 @@ +Unity collab not working on Fedora because of invalid CA certificate path +########################################################################## + +:author: Russell Ballestrini +:slug: unity-collab-not-working-on-fedora-because-of-invalid-ca-certificate-path +:date: 2019-11-08 12:19 +:tags: Code, Games +:status: published + +.. image:: /uploads/2019/unity-collab-fedora-ca-certificate-error-no-link.png + :align: center + :alt: An image showing that Unity Collab is not linked + +This issue blocked me for about two days and prevented me from collaborating with another engineer at `gumyum` games studio. + +He was on Windows and he was able to interact with collab and our shared project owned by our shared org while I was on Fedora 30. + +.. image:: /uploads/2019/unity-collab-fedora-ca-certificate-error-curl.png + :align: center + :alt: An image showing that Unity is looking for the CA Certificates in the wrong location + +Apparently Unity naively assumes that a Linux system's copy of the root CA certificates is located `/etc/ssl/certs/ca-certificates.crt`. This is the default location on Debian and Ubuntu based systems but not Fedora or Redhat, which uses the `/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem` file. + +The work around is simple, we create a soft link between the paths:: + + sudo ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt + +.. image:: /uploads/2019/unity-collab-fedora-ca-certificate-error-fixed.png + :align: center + :alt: An image showing that Unity Collab is working again! + + diff --git a/content/uploads/2019/unity-collab-fedora-ca-certificate-error-curl.png b/content/uploads/2019/unity-collab-fedora-ca-certificate-error-curl.png new file mode 100644 index 0000000..91be3e9 Binary files /dev/null and b/content/uploads/2019/unity-collab-fedora-ca-certificate-error-curl.png differ diff --git a/content/uploads/2019/unity-collab-fedora-ca-certificate-error-fixed.png b/content/uploads/2019/unity-collab-fedora-ca-certificate-error-fixed.png new file mode 100644 index 0000000..2364417 Binary files /dev/null and b/content/uploads/2019/unity-collab-fedora-ca-certificate-error-fixed.png differ diff --git a/content/uploads/2019/unity-collab-fedora-ca-certificate-error-no-link.png b/content/uploads/2019/unity-collab-fedora-ca-certificate-error-no-link.png new file mode 100644 index 0000000..d042b12 Binary files /dev/null and b/content/uploads/2019/unity-collab-fedora-ca-certificate-error-no-link.png differ diff --git a/vars.fish.tmpl b/vars.fish.tmpl new file mode 100644 index 0000000..cc52982 --- /dev/null +++ b/vars.fish.tmpl @@ -0,0 +1,4 @@ +set -x GOOGLE_ANALYTICS "" +set -x REMARKBOX "" +set -x LINKPEEK_APIKEY "" +set -x LINKPEEK_SECRET ""