App-Cheats

 view release on metacpan or  search on metacpan

cheats.txt  view on Meta::CPAN



#############################################################
## DockerHub (push/pull)
#############################################################

# Need to first create an auth key on dockerhub
docker login -u poti1

# Upload to dockerhub.
# Make sure repo is public or you cant upload due to restrictions.
docker push poti1/my-perl-server:latest

# Fetch image.
docker pull poti1/my-perl   # Always fetches the latest.
docker run poti1/my-perl    # Fetches only if missing locally.

# Use an uploaded image.
docker run -it --rm poti1/my-perl -E 'say 123'


#############################################################
## Docker Data/Volumes
#############################################################

# 2 types of volumes/mount
# -v LOCAL:DOCKER:PERMISSIONS
docker run -v /app/data                 # Anynymous volume.

cheats.txt  view on Meta::CPAN


#############################################################
## Perl PAUSE Account
#############################################################

# Upload to pause server without a browser.
# 1. Need to file create a .pause file
# 2. Install required modules:
cpanm CPAN::Uploader
cpanm Config::Identity
cpan-upload my_module.tar.gz


#############################################################
## Perl Regular Expressions - General
#############################################################

# Match a number followed by an equal amount of another number
# Dynamic recursive regex
perl -le '$r=qr/0(??{$r})?1/; print "001" =~ $r ? "PASS" : "FAIL"'
#

cheats.txt  view on Meta::CPAN

      image: perldocker/perl-tester:5.38
    steps:
      - uses: actions/checkout@v4
      - name: Run Tests
        env:
          AUTHOR_TESTING: 1
          AUTOMATED_TESTING: 1
          EXTENDED_TESTING: 1
          RELEASE_TESTING: 1
        run: auto-build-and-test-dist
      - uses: actions/upload-artifact@v4
        with:
          name: build_dir
          path: build_dir
        if: ${{ github.actor != 'nektos/act' }}
  coverage-job:
    needs: build-job
    runs-on: ubuntu-20.04
    container:
      image: perldocker/perl-tester:5.38
    steps:



( run in 0.802 second using v1.01-cache-2.11-cpan-b16cb0d3907 )