profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jonknapp/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jonathan Knapp jonknapp @CoffeeAndCode Wadsworth, OH https://www.coffeeandcode.com

jonknapp/dps-demo 2

sample app for testing DPS api calls

jonknapp/audio-drop 1

Drop the bass! (and everything else) from your video files.

jonknapp/wallaby-presentation 1

A presentation on Adobe's Wallaby: FLA to HTML tool

clereact/cle-react-playbook 0

Cleveland React Playbook

CoffeeAndCode/givecamp-stats 0

Administrative assistance for managing EventBrite data for Cleveland GiveCamp.

jonknapp/akronkitchen.org 0

The website for akronkitchen.org

jonknapp/book 0

The Rust and WebAssembly Book

jonknapp/jonknapp.com 0

The officially official website of Jonathan Knapp.

issue commentnix-community/home-manager

installed apps don’t show up in Ubuntu's "Show Applications"

Glad it worked @delaneyj. As a heads up, you may want to tweak the script a bit since it doesn't automatically prune applications that you remove from your nix config. Clearing the ICON_DIR before populating it should work fine.

samuela

comment created time in 16 days

issue commentnix-community/home-manager

installed apps don’t show up in Ubuntu's "Show Applications"

FWIW things were working for me on PopOS until recently when the icons were all missing again. I played around with it a bit and found that I needed to put them in a folder nested under ~/Desktop which I could then run update-desktop-database on. I wrote a small bin script to copy them and update the desktop database:

# shortened config
{ config, pkgs, nixpkgs, ... }:
let
    update-icons = pkgs.writeScriptBin "update-icons" ''
    #!${pkgs.bash}/bin/bash
    set -euo pipefail
    shopt -s inherit_errexit

    ICON_DIR="$HOME/Desktop/.icons"
    mkdir -p "$ICON_DIR"
    cp ~/.nix-profile/share/applications/*.desktop "$ICON_DIR"
    update-desktop-database --verbose "$ICON_DIR"
  '';
in {
    home.packages = [update-icons];
}

I'm not sure where the Desktop folder is ok'd to access desktop icons, but I was not able to get ~/.icons/ to work or a randomly generated /tmp/ folder.

samuela

comment created time in 20 days

issue openedCoffeeAndCode/docker_compose_env

windows has issues binding to 0.0.0.0

Consider changing 0.0.0.0 to 127.0.0.1 as the default if #{container_service_name}_HOST is not explicitly set as an environment variable.

created time in 2 months

create barnchjonknapp/zero2prod

branch : main

created branch time in 3 months

created repositoryjonknapp/zero2prod

Following along with www.zero2prod.com

created time in 3 months

issue openedLukeMathWalker/zero-to-production

psql using docker exec

I changed

docker run \
  -e POSTGRES_USER="${DB_USER}" \
  -e POSTGRES_PASSWORD="${DB_PASSWORD}" \
  -e POSTGRES_DB="${DB_NAME}" \
  -p "${DB_PORT}":5432 \
  -d postgres \
  postgres -N 1000

# Keep pinging Postgres until it's ready to accept commands
until PGPASSWORD="${DB_PASSWORD}" psql -h "${DB_HOST}" -U "${DB_USER}" -p "${DB_PORT}" -d "postgres" -c '\q'; do
  >&2 echo "Postgres is still unavailable - sleeping"
  sleep 1
done

to be

container_id=$(docker run \
  -e POSTGRES_USER="${DB_USER}" \
  -e POSTGRES_PASSWORD="${DB_PASSWORD}" \
  -e POSTGRES_DB="${DB_NAME}" \
  -p "${DB_PORT}":5432 \
  -d postgres \
  postgres -N 1000)

# Keep pinging Postgres until it's ready to accept commands
until docker exec -e PGPASSWORD="${DB_PASSWORD}" "$container_id" psql -h "localhost" -U "${DB_USER}" -p "${DB_PORT}" -d "postgres" -c '\q'; do
  >&2 echo "Postgres is still unavailable - sleeping"
  sleep 1
done

which allows me to not have to install psql on my machine since I'm using Docker for Postgres. Figured, it'd be worth passing the info along in case it's helpful to others.

created time in 3 months