Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| # Run the following commands in adb shell | |
| appops set org.kde.kdeconnect_tp SYSTEM_ALERT_WINDOW allow; | |
| pm grant org.kde.kdeconnect_tp android.permission.READ_LOGS; | |
| am force-stop org.kde.kdeconnect_tp |
| # Setup QEMU for x86-64 Docker images on Raspberry Pi 4 | |
| # Install Python3 and Docker first: https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl | |
| # Install QUEMU (https://www.qemu.org/) | |
| sudo apt-get install qemu binfmt-support qemu-user-static | |
| # Use QUS in Docker (https://github.com/dbhi/qus) to configure x86_64 architecture | |
| docker run --rm --privileged aptman/qus -s -- -p x86_64 | |
| # Test x86-64 image: |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
| version: '3' | |
| services: | |
| nginx: | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.http.routers.provys-transformer.rule=Host(`www.example.com`)" | |
| - "traefik.http.routers.provys-transformer.tls=true" | |
| networks: | |
| - traefik |
If you're anything like me, you have a hard time taking notes on your computer. I would prefer to type all my notes in Vim but when it comes to reading, I'd much rather see a PDF. Hence the need for a better note taking system. My requirements for the tool were as follows:
In the end, my solution contained a Makefile, a Python compilation script, and an additional command in my .vimrc file:
| # Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/ | |
| # GitLab uses docker in the background, so we need to specify the | |
| # image versions. This is useful because we're freely to use | |
| # multiple node versions to work with it. They come from the docker | |
| # repo. | |
| # Uses NodeJS V 9.4.0 | |
| image: node:9.4.0 | |
| # And to cache them as well. |
If you are getting this in gdb on macOS while trying to run a program:
Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))gdbc)| #!/usr/bin/env python | |
| """Convert an SVG file to a PNG file.""" | |
| from argparse import ArgumentParser | |
| import subprocess | |
| import os.path | |
| def main(): |