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 29, 2024 07:57
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 April 20, 2024 11:15
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 May 8, 2024 16:36
QEMU PowerPC G4 OS X Tiger (10.4) setup

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]
@mailightkun
mailightkun / 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 February 15, 2024 10:24
Macbook Pro 2011 GPU Defect fix macOS Sierra and High Sierra
@CyberShadow
CyberShadow / osx.org
Last active October 29, 2023 18:08
Setting up OS X from scratch

Setting up OS X from scratch (on libvirt/QEMU/KVM)

Motivation

  • I have a MacBook1,1, but its HDD died.
  • I need an instance of OS X mainly to build OS X binaries of some of my open-source software.

OS X 10.4 (Tiger)

  1. Obtain installation medium