Skip to content

Instantly share code, notes, and snippets.

View amanaplan's full-sized avatar

Christian Stück amanaplan

  • St. Petersburg, FL
View GitHub Profile
@L422Y
L422Y / osx_automount_nfs.md
Last active July 19, 2024 10:12
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

function hostReachable(location) {
if (!location) {
location = window.location.hostname + "/";
}
// Handle IE and more capable browsers
var xhr = new ( window.ActiveXObject || XMLHttpRequest )( "Microsoft.XMLHTTP" );
var status;
// Open new request as a HEAD to the root hostname with a random param to bust the cache
xhr.open( "HEAD", "//" + location + "?rand=" + Math.floor((1 + Math.random()) * 0x10000), false );
@delphian
delphian / drush-example-site.make
Last active September 27, 2019 18:16
Example drupal drush site.make file for automatically downloading modules, themes, profiles, and libraries
; @file drush-example-site.make
; @author Bryan Hazelbaker <bryan.hazelbaker@gmail.com>
;
; @brief Drush make file to be processed by the `drush make` command
;
; @details Running drush make on this configuration file will download
; all specified modules, themes, and libraries into their respective
; directories. the `drush` command must first be installed to process
; this make file.
;
@rdegges
rdegges / opencnam-v2-pbx-sample.sh
Created October 24, 2012 01:06
OpenCNAM V2 PBX Example
$ curl https://api.opencnam.com/v2/phone/+16502530000?format=pbx
GOOGLE INC
$ curl -H "Accept: text/pbx" https://api.opencnam.com/v2/phone/+16502530000
GOOGLE INC
/* ----------------------------------------------------------------------------------------------------
Super Form Reset
A couple of things to watch out for:
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered.
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders.
- You NEED to set the font-size and family on all form elements
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs