Skip to content

Instantly share code, notes, and snippets.

View baras's full-sized avatar

Yoav Baras baras

View GitHub Profile
/**
* Convert human readable strings to machine names.
*
* @param string $str
* The string to convert.
*
* @return string
* The converted string.
*/
function machine_readable( $str ) {
@baras
baras / smb.conf
Created August 26, 2018 07:25
/etc/samba/smb.conf settings to share a folder on a Linux VirtualBox to be accessed from the Windows host.
Reference: https://superuser.com/a/258103
Add this to the bottom of the file:
[www]
comment = another share
path = /var/www
guest ok = yes
browseable = yes
read only = no