Densify
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
v4
-
Manipulate Tags on Gitlab CI/CD
#!/bin/bash # list-tags.sh # List all Gitlab tags for a given project. # $CI_PROJECT_ID is a Gitlab pre-defined variable # $GITLAB_TOKEN is a project access token that needs to be # a defined CI/CD variable. GITLAB_API_URL="https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}" curl -k --header "PRIVATE-TOKEN: $GITLAB_TOKEN" "${GITLAB_API_URL}/repository/tags"
-
Using semantic-release to automate releases and changelogs
# ~/.npmrc @doppelmutzi:registry=https://gitlab.com/api/v4/projects//packages/npm/ //gitlab.com/api/v4/projects//packages/npm/:_authToken=
-
403 Forbidden error when I tried to assign a user developer role using GitLab API through Python code
GITLAB_API_URL = "https://gitlab.com/api/v4" PRIVATE_TOKEN = "" NAMESPACE = "mycompany" PROJECT_NAME = "test-project"
-
Error 404 error while giving project access to a user for a developer role using the GitLab API in Python code
import requests app = FastAPI() # GitLab API configuration GITLAB_API_URL = "https://gitlab.com/api/v4" PRIVATE_TOKEN = "" PROJECT_ID = "vinod827_1391/awesome" def grant_developer_access(username: str): # Get user details from GitLab user_url = f"{GITLAB_API_URL}/users?username={username}" response = requests.get(user_url, headers={"PRIVATE-TOKEN": PRIVATE_TOKEN}) user_data = response.json() if not user_data: raise HTTPException(status_code=404, detail=f"User {username} not found.") user_id = user_data[0]["id"] # Grant developer access to the project access_data = {"user_id": user_id, "access_level": 30} # 30 is the access level for developer access_url = f"{GITLAB_API_URL}/projects/{PROJECT_ID}/access_requests" response = requests.post(access_url, headers={"PRIVATE-TOKEN": PRIVATE_TOKEN}, json=access_data) print('response->', response) if response.status_code != 201: raise HTTPException(status_code=response.status_code, detail=response.text)
-
Create tag with slash in name via API from PowerShell issue
Invoke-RestMethod -Uri "https://gitlab.com/api/v4/projects/12345/repository/tags" -Headers $headers -Method POST -Body $jsonBody
-
va_openDriver() error while trying to install Librewolf on Fedora39
Hello everyone i'm trying to install Librewolf on my M1 MBA running fedora39 with gnome on wayland, I downloaded librewolf's compressed archive from https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/120.0.1-1/librewolf-120.0.1-1-linux-arm64-package.tar.bz2
-
Unable to install GitLab Package Registry
repositories { maven { url "https://gitlab.com/api/v4/projects/PROJEC-ID/packages/maven" credentials(HttpHeaderCredentials) { name = "Private-Token" value = gitLabPrivateToken } authentication { header(HttpHeaderAuthentication) } } } }
-
O navegador LibreWolf, uma versão modificada do Firefox é confiavel?
Pagina da Gitlab: https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/116.0-1/librewolf-116.0-1-windows-x86_64-setup.exe
-
Extend hidden job not working in CI
.base: image: alpine:3.18 before_script: - echo "Project is $CI_PROJECT_NAME" script: - apk update - apk --no-cache add git openssl ca-certificates curl perl https://$GITLAB_USER_NAME:$SVC_ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git - mkdir -p /usr/local/share/ca-certificates/extra - openssl s_client -connect ${CI_SERVER_HOST}:${CI_SERVER_PORT} -servername ${CI_SERVER_HOST} -showcerts /dev/null | sed -e '/-----BEGIN/,/-----END/!d' | tee "/usr/local/share/ca-certificates/${CI_SERVER_HOST}.crt" >/dev/null - update-ca-certificates - curl --location --output /usr/local/bin/release-cli "https://gitlab.com/api/v4/projects/gitlab-org%2Frelease-cli/packages/generic/release-cli/latest/release-cli-linux-amd64" - chmod +x /usr/local/bin/release-cli - release-cli -v Versioning: stage: Version extends: - .base script: - if [[ "$CI_COMMIT_BRANCH" == *"feature/"* ]]; then IMAGE_TAG="nightly" ; elif [ "$CI_COMMIT_BRANCH" == "develop" ]; then IMAGE_TAG="devel"; else echo "Master/Main branch"; fi - echo "Version found is ${IMAGE_TAG}" allow_failure: false rules: - if: '$CI_COMMIT_BRANCH =~ /^(develop|main|feature.*$)$/' artifacts: paths: - $IMAGE_TAG expire_in: 1 minute
-
remote-exec reconnecting 1000 times
image: name: hashicorp/terraform:1.5 entrypoint: - '/usr/bin/env' - 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' stages: - Test and Lint - Build and Push - Staging Plan - Staging Apply - Staging Update App - Production Plan - Production Apply - Destroy before_script: - alias convert_report="jq -r '([.resource_changes[]?.change.actions?]|flatten)|{\"create\":(map(select(.==\"create\"))|length),\"update\":(map(select(.==\"update\"))|length),\"delete\":(map(select(.==\"delete\"))|length)}'" - apk add openssh-client - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - ls ~/.ssh Test and Lint: image: docker:19.03.5 .............. Validate Terraform: stage: Test and Lint script: - echo "Validate Terraform" - cd deploy/ - terraform init --backend=false - terraform validate rules: - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^(main|production)$/ || $CI_COMMIT_BRANCH =~ /^(main|production)$/' Build and Push: stage: Build and Push ............... Staging Plan: stage: Staging Plan script: - echo "Run Terraform Plan for Staging" - cd deploy/ - export TF_VAR_image_api=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA - export GITLAB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXX - export STATE_NAME=Staging - terraform init -backend-config="address=https://gitlab.com/api/v4/projects/47021553/terraform/state/$STATE_NAME" -backend-config="lock_address=https://gitlab.com/api/v4/projects/47021553/terraform/state/$STATE_NAME/lock" -backend-config="unlock_address=https://gitlab.com/api/v4/projects/47021553/terraform/state/$STATE_NAME/lock" -backend-config="username=XXXXXXXXX" -backend-config="password=$GITLAB_ACCESS_TOKEN" -backend-config="lock_method=POST" -backend-config="unlock_method=DELETE" -backend-config="retry_wait_min=5" #- terraform workspace select staging || terraform workspace new staging - terraform plan rules: - if: '$CI_COMMIT_BRANCH =~ /^(main|production)$/' Staging Apply: stage: Staging Apply environment: name: Staging url: XXXXXXXXXXXXXXXXX on_stop: Staging Destroy script: - echo "Run Terraform Apply for Staging" - cd deploy/ - export TF_VAR_image_api=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA - export GITLAB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX - export STATE_NAME=Staging - terraform init -backend-config="address=https://gitlab.com/api/v4/projects/47021553/terraform/state/$STATE_NAME" -backend-config="lock_address=https://gitlab.com/api/v4/projects/47021553/terraform/state/$STATE_NAME/lock" -backend-config="unlock_address=https://gitlab.com/api/v4/projects/47021553/terraform/state/$STATE_NAME/lock" -backend-config="username=XXXXXXXXXXXXX" -backend-config="password=$GITLAB_ACCESS_TOKEN" -backend-config="lock_method=POST" -backend-config="unlock_method=DELETE" -backend-config="retry_wait_min=5" - terraform apply -auto-approve -input=false rules: - if: '$CI_COMMIT_BRANCH =~ /^(main|production)$/' Staging Update App: stage: Staging Update App ............... Production Plan: stage: Production Plan ............. Production Apply: stage: Production Apply .......... Staging Destroy: stage: Destroy ............... Production Destroy: stage: Destroy ...............
Densify
-
Document Scanner 42: Post processing scripts to compress PDFs?
The tutorial mentions Densify. It is GUI front-end for GS, and an interesting tool. The AppImage works well, but it is much slower than running GS from the commandline. https://github.com/hkdb/Densify
-
PDF file SPEED optimization.
I thought there may be optimization potential in your PDF file, so I downloaded a version from the Internet (377MB, 1493 pages) and ran it through ghostscript with the parameters the tool Densify uses:
-
How to make sh script stop and print error or continue/skip one step if a directory is already there.
sudo pamac -S rclone fd firejail keepassxc thunderbird terminator vim simple-scan sane-airscan xsane sane wireguard-tools gpg-crypter htop bmon ghostscript digikam borg libreoffice-fresh ncdu bleachbit rmlint displaycal avahi nss-mdns gnome-keyring kleopatra luminancehdr grep vivaldi vivaldi-ffmpeg-codecs discord rsync rkhunter jack2 audacity clementine p7zip ghostscript gimp gzip handbrake kcm-wacomtablet kdiff3 kid3 krusader kwallet-pam kwalletmanager luminancehdr mpv obs-studio vlc rawtherapee signal-desktop simple-scan skanlite speedtest-cli syncthing tree ttf-bitstream-vera ttf-dejavu ttf-liberation ttf-opensans unrar unzip veracrypt yakuake qemu-emulators-full qemu-full qbittorrent psensor pv python python-capng python-defusedxml python-llfuse python-packaging python-pip python-pyqt5 pass blender inkscape curl jq fuse2 fuse3 fuse-common libwacom zsh evolution hunspell hunspell-en_us aspell aspell-en kmail kontact kaddressbook korganizer kdepim-addons echo "pamac installations done" ################################################################################ ### Install AUR with yay packages yay ffmpg-amd-full-git yay corectrl yay wireguard-dkms yay timeshift yay timeshift-autosnap yay appimagelauncher yay balena-etcher yay brave-bin yay profile-sync-daemon-brave yay google-earth-pro yay stellarium yay pyfuse3 yay libwacom yay kcm-wacomtablet yay wacom-utility-git yay brother-cups-wrapper-common yay brother-dcpl2550dw yay brother-lpr-drivers-common yay input-wacom-dkms yay mailspring yay obs-v4l2sink-git yay python-pyfuse3 yay rdfind yay reload-wacom-after-suspend echo "yay - AUR installations done" ################################################################################ ### Download AppImages to /home/$USER/Downloads/AppImages-Dwnld # Librewolf wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/101.0.1-1/LibreWolf.x86_64.AppImage echo "Librewolf dwnld done" # Tutanota wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://mail.tutanota.com/desktop/tutanota-desktop-linux.AppImage echo "Tutanota dwnld done" # Joplin app wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/laurent22/joplin/releases/download/v2.8.8/Joplin-2.8.8.AppImage echo "Joplin-app dwnld done" # Densify pdf compressor wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/hkdb/Densify/releases/download/v0.3.1/Densify-v0.3.1-x86_64.AppImage echo "Densify dwnld done" # fre:ac - music converter wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/enzo1982/freac/releases/download/v1.1.6/freac-1.1.6-linux-x86_64.AppImage echo "fre:ac dwnld done" # Notion-enhanced - markdown notetaking app wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/notion-enhancer/notion-repackaged/releases/download/v2.0.18-1/Notion-Enhanced-2.0.18-1.AppImage echo "Notion-enhanced dwnld done" # Obsidian -- markdown txt editor wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/obsidianmd/obsidian-releases/releases/download/v0.14.15/Obsidian-0.14.15.AppImage echo "Obsidian dwnld done" # Simple note wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/Automattic/simplenote-electron/releases/download/v2.21.0/Simplenote-linux-2.21.0-x86_64.AppImage echo "Simple-note dwnld done" # Siril - atstro photo editor wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://free-astro.org/download/Siril-1.0.3-x86_64.AppImage echo "Siril dwnld done" # Exodus - crypto wallet wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://downloads.exodus.com/releases/exodus-linux-x64-22.6.17.zip echo "Exodus dwnld done" # Teamviewer wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz echo "Teamviewer dwnld done" # Tor-Browser - torproject.org wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://www.torproject.org/dist/torbrowser/11.0.14/tor-browser-linux64-11.0.14_en-US.tar.xz echo "Tor-Browser dwnld done" # XDM - xtreme download manager wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://github.com/subhra74/xdm/releases/download/7.2.11/xdm-setup-7.2.11.tar.xz echo "XDM dwnld done" # startools - astro photo editing program (paid) wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://download.startools.org/StarTools_1_8_527_MR2.zip echo "Startools dwnld done" # PDF-studio - Linux pdf editor that I have pro verison of wget -nc -P /home/$USER/Downloads/AppImages-dwnld https://download.qoppa.com/pdfstudio/PDFStudio_linux64.sh echo "PDF-Studio dwnld done" echo "All AppImage Downloads Compleated" ################################################################################
-
Alternative to Adobe Acrobat for PDF
Densify - GUI for compressing PDF file sizes. I recommend the epub setting.
-
PDF Compression software
check out densify - github and article
What are some alternatives?
wireguard-windows - Download WireGuard for Windows at https://www.wireguard.com/install . This repo is a mirror only. Official repository is at https://git.zx2c4.com/wireguard-windows
cpdf - A script to simplify compressing PDF file size with GhostScript
browser
notion-repackaged - notion executables with the notion-enhancer embedded & a vanilla port of the official app to linux
charts
simplenote-electron - Simplenote for Web, Windows, and Linux
AppMan - Manage 1900+ AppImage packages and official standalone apps for GNU/Linux without root privileges using the extensible and ever-growing AUR-inspired database of "AM Application Manager". Easy to use like APT and powerful like PacMan.
xdm - Powerfull download accelerator and video downloader
git-repo-sync - Auto synchronization of remote Git repositories. Auto conflict solving. Network fail resilience. Linux & Windows support. And more.
freac - The fre:ac audio converter project
gitlab-artwork
OCRmyPDF - OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched