Skip to content

Instantly share code, notes, and snippets.

View animaux's full-sized avatar

Alexander Rutz animaux

View GitHub Profile
@pas-calc
pas-calc / geo-exif.sh
Last active December 18, 2023 10:34
GEO Exif Coordinate viewer
#!/bin/bash
# Pascal K.
# Mi 25 Nov 2020 23:36:54 CET
# Do 26 Nov 2020 13:43:43 CET
# Mo 18 Dez 2023 11:32:34 CET - use "xdg-open" to open link in browser
echo "GEO Exif Coordinate viewer"
echo "--------------------------"
@lennardv2
lennardv2 / 1. Building PHP-MAMP on Apple Silicon M1.md
Last active February 25, 2025 15:28
Native PHP development / MAMP stack on Apple silicon M1

Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native)

Update! This tutorial is outdated. Nowadays brew installes m1 binaries just fine. Also use valet: https://laravel.com/docs/9.x/valet. It's 10x easier.

In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of this benchmark below.

TEST NAME SECONDS OP/SEC
@karlhillx
karlhillx / macos_big_sur_homebrew_apache_php_mariadb_2020.md
Last active January 23, 2025 10:27
macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB (Regularly updated)

macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB

This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.

@cellularmitosis
cellularmitosis / README.md
Last active April 13, 2025 12:15
QEMU PowerPC G4 OS X Tiger (10.4) setup

Blog 2020/5/7

<- previous | index | next ->

QEMU PowerPC G4 OS X Tiger (10.4) setup

EDIT 2024/12/1: I updated a few of these commands to work with qemu 9.x.

@levigroker
levigroker / GitHubFlavoredMarkdown.sh
Last active February 20, 2025 07:13
A BBEdit Preview Filter script to render GitHub flavored markdown as HTML
#!/bin/bash
#
# GitHub Flavored Markdown
# https://gist.github.com/levigroker/96f96253c992b7a947d93c3d32d80b8d
#
# A BBEdit Preview Filter script to render GitHub flavored markdown as HTML
# See the "Applying Preview Filters" section of the BBEdit Manual
# https://www.barebones.com/support/bbedit/index.html#docs
# GitHub Flavored Markdown Spec: https://github.github.com/gfm/
# GitHub Flavored Markdown CLI: https://github.com/github/cmark-gfm

Kiosk Mode macOS

  1. Create two user accounts
    • Administration account
    • Kiosk Account - This account will be locked down with Parental Controls
  2. Set up remote management
  3. Install kiosk software
  • We use a role-based Apple ID (ex: webmaster@[institution].org) to manage macOS software. Managing Apps this way saves lots of headaches.
@kaystrobach
kaystrobach / .htaccess
Created June 7, 2019 10:49
.htaccess für allinkl.com
php_flag log_errors on
php_value error_log "/www/htdocs/w018dcee/logs/phplog-typo3.log"
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteRule ^fileadmin$ - [L]
RewriteRule ^fileadmin/.*$ - [L]
@devanthonyp
devanthonyp / openssl_encrypt_decrypt.md
Created April 6, 2018 04:44
Replace mcrypt_encrypt with openssl_encrypt

Replace mcrypt_encrypt with openssl_encrypt

If you switch from PHP 5.x to 7.1 you will get the following message:

"Function mcrypt_encrypt() is deprecated"

Now it is the right time to refactor this old function :-)

function encrypt(string $data, string $key, string $method): string
@jatorre
jatorre / README.md
Last active April 23, 2020 13:10
Example Mapbox + CARTO map using Vector Tiles

Example Usage of CARTO Vector Tiles with MapboxGL

This example showcase how to simply use the new capabilities of CARTO for producing Mapbox Vector Tiles from its Maps API.

@cdleon
cdleon / macbook-pro-2011-defective-gpu-fix.md
Last active June 3, 2024 16:56
Macbook Pro 2011 GPU Defect fix macOS Sierra and High Sierra