Skip to content

Instantly share code, notes, and snippets.

View rlanyi's full-sized avatar

Robert Lanyi rlanyi

  • Budapest, Hungary
View GitHub Profile
@rlanyi
rlanyi / download.sh
Created January 18, 2021 07:12
Download Apple Aerial Screensaver video files oneliner
curl http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/entries.json | jq -r .[].assets[].url | wget -i - -c
@rlanyi
rlanyi / PKPass.md
Last active April 2, 2024 14:54
How to create Apple PKPass .p12 certificate using Linux

How to create Apple PKPass .p12 certificate using Linux

You don't need a Mac to do this :-)

For generating PKPass files, you'll need 4 things after this tutorial:

  • Certificate Identifier (pass.com.example.www)
  • Team Identified (Organizational Unit (OU) in the cert generated by Apple)
  • The .p12 file
  • The password for the .p12 file
@rlanyi
rlanyi / blog.md
Last active May 14, 2020 00:00
GistLog Blog Test

Blog test

This is a test

@rlanyi
rlanyi / getlabels.sh
Last active May 6, 2019 15:02
Get labels and if they are on group/project level from GitLab
#!/bin/bash
for group in $(gitlab -o json group list | jq -r .[].id); do for project in $(gitlab -o json group-project list --group-id $group | jq -r .[].id); do path_with_namespace=$(gitlab -o json project get --id $project | jq -r .path_with_namespace) ; tempfile=$(echo $path_with_namespace | sed "s/\//_/g"); echo -e "\nProject: $path_with_namespace ($temppath)" | tee $tempfile; gitlab -o json project-label list --project-id $project | jq -r '.[] | [.name, .is_project_label|tostring] | join(" ")' | tee $tempfile ; done; done
@rlanyi
rlanyi / versioncheck.sh
Created February 11, 2019 09:12
Check if newer version of a Chrome extension is available in the Webstore and send notification to Slack
#!/bin/bash
# Use this script from cron to check if newer version of a Chrome extension is available and send notification to Slack
# Requirements: curl, jq, unzip
# Author: rlanyi
if [ "$#" -ne 3 ]; then
echo "Usage: ./versioncheck.sh <extension_id> <version> <slack_webhook_url>"
echo
echo "<extension_id> Chrome Webstore extension id (32 chars)"
@rlanyi
rlanyi / a-redmine-export.sh
Last active February 28, 2024 13:56
JSON export of all Redmine issues with history and related attachments that you have access to using Redmine API
#!/bin/bash
# Please install jq, wget and curl for this to work
REDMINE_URL="http://www.redmine.org/" # Your redmine URL
REDMINE_USER="" # Redmine username
REDMINE_PASS="" # Redmine pass
offset=0
limit=100