knowledgebase/journals/2023_02_27.md

1.6 KiB

  • 20:10 quick capture: https://tilde.news/ #fediverse
  • 20:16 quick capture: https://waydro.id/ #Android #virtualization #linux
  • 20:25 quick capture: 2D Liquid Simulator with Cellular Automaton (2017) 2D Liquid Simulator with Cellular Automaton (2017) #teaching #gamedev #Mathesis #Gioco della vita
  • Script di esempio per calcolare la signature del payload di un webhook inviato da #Github
    • # Validate Github hook
      signature=$(echo -n "$1" | openssl sha1 -hmac "$GITHUB_SECRET" | sed -e 's/^.* //')
      [ "sha1=$signature" != "$x_hub_signature" ] && die "bad hook signature: expecting $x_hub_signature and got $signature"
      
  • Codice sorgente di #Gogs che gestisce i #webhook
  • Per effettuare il build di un'immagine #docker con docker-compose quando si verificano problemi di rete (CDN di Alpine Linux) si può
    • version: "3.5"
      
      services:
      
        webhookd:
          hostname: webhookd
          # image: ncarlier/webhookd:edge-distrib
          build:
            context: build/
            network: host
          container_name: webhookd
          restart: unless-stopped
          ports:
            - "8086:8080"
          environment:
            - WHD_SCRIPTS=/scripts
          volumes:
            - ./scripts:/scripts
          networks:
            - webhook
      
      networks:
      
        webhook:
          name: webhook
          external: true