$ brew install autoconf automake gmp homebrew/versions/bison27 gd freetype t1lib gettext zlib mcrypt
$ git clone --depth=1 https://github.com/php/php-src.git
$ cd php-src
To remove a submodule you need to:
Exporting password + one-time code data from iCloud Keychain is now officially supported in macOS Monterey and Safari 15 (for Monterey, Big Sur, and Catalina). You can access it in the Password Manager’s “gear” icon (System Preferences > Passwords on Monterey, and Safari > Passwords everywhere else), or via the File > Export > Passwords... menu item). You shouldn't need to hack up your own exporter anymore.
After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.
This is the init.d and default file that I am using to get shairplay to run as a service. | |
On Ubuntu: | |
sudo cp "init.d - shairplay" /etc/init.d/shairplay | |
sudo cp "default - shairplay" /etc/default/shairplay | |
sudo chmod a+x /etc/init.d/shairplay | |
sudo update-rc.d shairplay defaults | |
sudo service shairplay start |
function fmd_image_sizes() { | |
if ( function_exists( 'add_image_size' ) ) { | |
add_image_size( 'bigger_thumbnail', 300, 300, true ); //will be visible in admin | |
add_image_size( 'carousel', 1300, 380, true ); //will not be visible in admin | |
} | |
} | |
add_action( 'init', 'fmd_image_sizes' ); | |
function fmd_chooseable_image_sizes( $sizes ) { | |
return array_merge( $sizes, array( |
<?php | |
/** | |
* Pull script example from production to my local Bedrock/Vagrant environment | |
* Requires PHP Deployer 3 | |
* | |
* Andreas Ek, 2015-04-23 | |
*/ | |
date_default_timezone_set( 'Europe/Stockholm' ); |
Turn this cute YouTube cat video into a briefer-but-still-cute GIF:
mode=$1 | |
local_ip=$2 | |
local_port=$3 | |
function serv_ins { | |
echo "ssh -N -R $local_port:localhost:22 root@$local_ip" | sudo timeout 2 nc -l -c -p $local_port | |
} | |
if [ $mode = -s ] | |
then |
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |