1
1208
submitted 1 day ago by [email protected] to c/programmer_humor
2
542
submitted 1 day ago by [email protected] to c/programmer_humor
3
87
submitted 2 hours ago by [email protected] to c/programmer_humor
4
11
stupidestAdvertisingEver (kbin.melroy.org)
submitted 32 minutes ago by [email protected] to c/programmer_humor

Like, do they not worry about people just editing everything and inserting porn or something? I doubt that they were smart enough to use branch protection. To be fair, when you're sending a mass spam campaign, you already don't worry about your reputation anyway lol

(The attached images: part 1: @QuantEssential-io has invited you to collaborate on the QuantEssential-io/Quant-Interview-Prep-2024 repository part 2: GitHub 404 showing the entire organization has been banned)

5
223
Go vs Rust learning (programming.dev)
submitted 1 day ago by zinderic to c/programmer_humor
6
500
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/programmer_humor
7
78
submitted 1 day ago by ChubakPDP11 to c/programmer_humor
8
95
submitted 3 days ago by [email protected] to c/programmer_humor

When I read the sentence, I was like "Wh... w... how? WHY? ...and OF COURSE it was distributed via FTP, I mean, what else do you use for entertainment in AIX. Or business, for that matter."

(Abuse)

9
605
Let's do micro service (sh.itjust.works)
submitted 4 days ago by [email protected] to c/programmer_humor
10
283
submitted 4 days ago by [email protected] to c/programmer_humor
11
290
submitted 4 days ago by [email protected] to c/programmer_humor
12
275
js Monk and Fly (sh.itjust.works)
submitted 4 days ago by [email protected] to c/programmer_humor
13
193
submitted 4 days ago by [email protected] to c/programmer_humor
14
549
I still don't get buffers (programming.dev)
submitted 5 days ago by whats_all_this_then to c/programmer_humor
15
52
submitted 3 days ago by Fijxu to c/programmer_humor

BSD, Lunix, Debian and Mandrake are all versions of an illegal hacker operation system, invented by a Soviet computer hacker named Linyos Torovoltos, before the Russians lost the Cold War. It is based on a program called "xenix", which was written by Microsoft for the US government. These programs are used by hackers to break into other people's computer systems to steal credit card numbers. They may also be used to break into people's stereos to steal their music, using the 'mp3' program. Torovoltos is a notorious hacker, responsible for writing many hacker programs, such as 'telnet', which is used by hackers to connect to machines on the internet without using a telephone.

16
501
Bug fixing ways (infosec.pub)
submitted 4 days ago by [email protected] to c/programmer_humor
17
752
AI Suggestions (programming.dev)
submitted 5 days ago by JPDev to c/programmer_humor
18
145
submitted 3 days ago by [email protected] to c/programmer_humor
19
278
submitted 4 days ago by [email protected] to c/programmer_humor
20
237
Certified in AI (sh.itjust.works)
submitted 4 days ago by [email protected] to c/programmer_humor
21
220
submitted 4 days ago by [email protected] to c/programmer_humor
22
148
I am a sinner (sh.itjust.works)
submitted 4 days ago by [email protected] to c/programmer_humor
23
1236
Senior dev be like... (programming.dev)
submitted 1 week ago by 0x0 to c/programmer_humor
24
394
gut pull (lemmy.world)
submitted 1 week ago by [email protected] to c/programmer_humor

Art by me, after a typo by my friend.

25
92
submitted 6 days ago by ruffsl to c/programmer_humor

I had to go full Rube Goldberg to clean up old image tags from closed PRs, while still leaving deletion of untagged image to the ECR repo's own lifecycle policy. Never go full Rube Goldberg:

name: ECR Retention Policy

on:
  pull_request:
    types:
      - closed
  workflow_call:
  workflow_dispatch:

jobs:
  clean-unused-ecr:
    name: Delete unused container images
    runs-on: runs-on,runner=2cpu-linux-x64,run-id=${{ github.run_id }},image=ecr_login_image
    steps:
      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v4
        with:
          aws-region: ${{ env.RUNS_ON_AWS_REGION }}
      - name: AWS ECR Login
        id: login-ecr
        uses: aws-actions/amazon-ecr-login@v2
      - name: AWS ECR Info
        shell: bash
        run: |
          echo "ECR_REGISTRY=${{ steps.login-ecr.outputs.registry }}" >> $GITHUB_ENV
          echo "ECR_REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV
      - name: Docker meta
        id: docker_meta
        uses: docker/metadata-action@v5
        with:
          images: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPO }}
          flavor: suffix=-
          tags: type=raw,value=${{ github.head_ref || github.ref_name }}
      # NOTE: This is convoluted because AWS ECR has no simple way to untag image without deletion
      # given we want to leave deletion of untagged image to the ECR repo's own lifecycle policy
      # https://stackoverflow.com/questions/70065254/remove-ecr-image-tag-despite-imagereferencedbymanifestlist-error
      # https://github.com/aws/containers-roadmap/issues/1567
      - name: AWS ECR Cleanup
        shell: bash
        run: |
          REPO_EXISTS=$(aws ecr describe-repositories --repository-names $ECR_REPO 2>&1 || true)
          if echo "${REPO_EXISTS}" | grep -q 'RepositoryNotFoundException'; then
            echo "Repository not found, skipping cleanup."
            exit 0
          fi
          IMAGE_TAGS=$(aws ecr list-images --repository-name $ECR_REPO --query 'imageIds[*].imageTag' --output text)

          docker pull busybox
          docker tag busybox $ECR_REGISTRY/$ECR_REPO:_
          docker push $ECR_REGISTRY/$ECR_REPO:_

          TEMP_IMAGE=$(
            aws ecr batch-get-image \
                --repository-name $ECR_REPO \
                --image-ids imageTag=_ )
          TEMP_MANIFEST=$(echo $TEMP_IMAGE | jq -r '.images[].imageManifest')
          TEMP_DIGEST=$(echo $TEMP_IMAGE | jq -r '.images[].imageId.imageDigest')

          TAG_PREFIX=$(echo ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }} | cut -d: -f2)
          for TAG in $IMAGE_TAGS
          do
            if [[ $TAG == $TAG_PREFIX* ]]; then
              docker tag busybox $ECR_REGISTRY/$ECR_REPO:$TAG
              docker push $ECR_REGISTRY/$ECR_REPO:$TAG
              echo "Untaged image $TAG"
            fi
          done

          # Delete the temporary image by digest
          aws ecr batch-delete-image \
            --repository-name $ECR_REPO \
            --image-ids imageDigest=$TEMP_DIGEST
view more: next ›

Programmer Humor

17602 readers
1202 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 11 months ago
MODERATORS