Coder Social home page Coder Social logo

greenheart.github.io's Introduction

greenheart.github.io

Building the site with talks included

NOTE: This could be simplified in the future to allow fully automatic builds.

  1. Git clone the talks repo https://github.com/Greenheart/talks
  2. Run npm install in the subdirectory of each talk you want to build.
  3. From the root of the talks project, run npm i && npm run build
  4. Back in the website project, run pnpm build to build project with all talks
  5. Verify build output and deploy.

Email Spam Protection

  1. Make a copy of .env.example and name it .env.
  2. Add your email to VITE_EMAIL in .env.
  3. Add a strong password to encrypt/decrypt your email to VITE_PASSWORD in .env.
  4. Open a terminal and run pnpm encrypt:text. Then copy the output (make sure you get every character) and add it to VITE_PAYLOAD in .env.
  5. Now, the email should be accessible in the <EncryptedEmail /> component. Easily available for users, but most basic spam bots will not be able to extract the email.

Writing Best Practices

  • Use node scripts/title-case.js to format headings.
  • Use node scripts/format-code.js to ensure code has a consistent style.
  • Use <!-- prettier-ignore-start --> and <!-- prettier-ignore-end --> to wrap code blocks in blog posts to prevent the main Prettier instance of the codebase to re-format the code blocks after they already have been formatted with node scripts/format-code.js.
  • It's possible to prevent post drafts from rendering by prefixing the file with _.

Credits

  • Font Awesome: LinkedIn & GitHub SVG icons. Licensed under CC BY 4.0

greenheart.github.io's People

Contributors

dependabot[bot] avatar greenheart avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

greenheart.github.io's Issues

Blog post idea: Faster shell startup with Oh my Zsh by lazyloading nvm

Note to self:

There are four pieces needed to make nvm work when loaded as a omz plugin:

  1. setting NVM_DIR
  2. adding the nvm plugin
  3. configuring the nvm plugin to lazy load
  4. starting omz and loading the plugins

By following all these steps, shell startup time went down from ~1.5 s to ~200 ms. A huge improvement for a common action performed many times daily.

export NVM_DIR="$HOME/.nvm"

plugins=(nvm git)

zstyle ':omz:plugins:nvm' lazy yes

source $ZSH/oh-my-zsh.sh

System developer - add context

Update title, and clarify that it's not about tech, but about systems change, and developing (technical but also social and cultural) systems that enable change.

Become aware that we are all co-creating systems all the time. We're embedded in multiple layers of systems, and we use systems. Thus understanding how to design, develop and use systems is a core capacity that I want more people to get access to. Similar to the power of words, the power of systems design and development is something that requires great responsibility. But also something we need to distribute power, so it truly becomes democratic and not elitist or centralised. Thus free software is another critical component to enable this.

But also co-operation over competition.

Bug: Page title does not update on clientside navigation

How to reproduce:

  1. Visit any blog post
  2. Go to the home page / using the link in the top left header
  3. The page title does change when navigating between different blog posts, but not back to the original page title for the landing page

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.