Skip to content

Instantly share code, notes, and snippets.

View marceloalcocer's full-sized avatar

Marcelo Alcocer marceloalcocer

View GitHub Profile
@stokito
stokito / extract_apk.sh
Created August 16, 2023 12:59
Extract/Untar files from Alpine APK file.
# The Alpine package apk file is just a tar.gz file with additional files
# https://wiki.alpinelinux.org/wiki/Apk_spec
# untar into /tmp/ folder without the .PKGINFO and .SIGN.RSA file
tar -xzf openjdk8-jre.apk -C /tmp/ --exclude=.PKGINFO --exclude=.SIGN*
@tokland
tokland / google-timeline-download.sh
Last active May 14, 2024 16:47
Get KML of Google Maps Timeline for a date range
#!/bin/bash
set -e -u -o pipefail
# Usage: Export a cookies.txt file from a browser logged-in in timeline.google.com with some
# add-on/extension (i.e. Export cookies, Get cookies.txt). Now run the script for the
# desired period:
#
# $ bash google-timeline-download.sh cookies.txt 2022-01-01 2022-02-20 out.kml
#
# Dependencies: curl, perl-xml-twig.
@alces
alces / ansible_local_playbooks.md
Last active June 13, 2024 02:02
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local