Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
NapoleonWils0n / webdav_setup_mac_osx.txt
Created November 11, 2012 20:27
macosx: webdav set up
webdav set up on mac osx for use with iPad pages keynote goodreader
/*************************************************************************************************/
Edit the file /etc/apache2/httpd.conf, (remember to use sudo to edit it) and locate this line:
LoadModule dav_module libexec/apache2/mod_dav.so
@NapoleonWils0n
NapoleonWils0n / remote_start_screen_sharing.txt
Created November 11, 2012 20:26
macosx: remote start screen sharing
===============================
= remote start screen sharing =
===============================
10.5 Leopard
cd /Library/Preferences
echo -n enabled > com.apple.ScreenSharing.launchd
@NapoleonWils0n
NapoleonWils0n / leopard_vnc.txt
Created November 11, 2012 20:25
macosx: vnc leopard
'You cannot share your own computer.' when trying to connect to 'vnc://localhost:[lport]' afterwards. I understand that Apple probably did this to prevent naive users from confusing themselves by connecting to their own systems. However, it's a pain for those who need to connect to localhost for ssh-tunneling. Here's a temporary way to eliminate this restriction:
1 - From the terminal:
defaults write com.apple.ScreenSharing skipLocalAddressCheck -boolean YES
2 - create the ssh tunnel
ssh -L 5900:localhost:5900 ip address
@NapoleonWils0n
NapoleonWils0n / vlc_mediastreamsegmenter_ipad.txt
Created November 11, 2012 20:24
macosx: vlc mediastreamsegmenter
Vlc stream to ipad with apache mediastreamsegmenter html5
/*=======================================================================================*/
Append following lines to /etc/apache2/mime.types MIME types of video and playlist.
sudo nano /etc/apache2/mime.types
@NapoleonWils0n
NapoleonWils0n / vlc airfoil audio delay streaming.txt
Created November 11, 2012 20:24
macosx: vlc airfoil suaio delay
vlc airfoil audio delay streaming
set the audio delay in vlc to -2100 so the video stays in sync with airplay audio
Use VLC instead (i.e. choose VLC as the app whose sound AirFoil should capture). Within VLC, use F and G keys to adjust the delay/advance of sound. Usually, an advance (F-key) of -2100 ms is enough. Works great!
open the advanced preferences in VLC and enter the value in Audio desynchronization compensation.
@NapoleonWils0n
NapoleonWils0n / virtualbox_command_line.sh
Created November 11, 2012 20:22
macosx: VirtualBox command line
#!/bin/sh
# VirtualBox command line
#|------------------------------------------------------------------------------
#| start virtual machine from the command line
#|------------------------------------------------------------------------------
VBoxManage startvm virtualMachineName
@NapoleonWils0n
NapoleonWils0n / VirtualBox usb set up.txt
Created November 11, 2012 20:22
macosx: VirtualBox usb setup
VirtualBox usb set up
# IMPORTANT
# make sure to set the virtual machine to use only one procesor
# if you select more it wont see the external usb wireless adaptor
download and install the VirtualBox Oracle VM VirtualBox Extension Pack
download here:
@NapoleonWils0n
NapoleonWils0n / VirtualBox guest additions install.txt
Created November 11, 2012 20:21
macosx: VirtualBox guest additions install
# VirtualBox guest additions install
sudo apt-get install linux-headers-$(uname -r)
25 - install guest additions
sudo apt-get install dkms
@NapoleonWils0n
NapoleonWils0n / Virtual_box_shared_folders_on_Windows_XP.txt
Created November 11, 2012 19:35
macosx: VirtualBox shared folders on windows xp
Virtual box shared folders on Windows XP
Alternatively, on the Windows command line, use the following:
net use x: \\vboxsvr\sharename
While vboxsvr is a fixed name (note that vboxsrv would also work), replace “x:“ with the drive letter that you want to use for the share, and sharename with the share name specified with VBoxManage.
@NapoleonWils0n
NapoleonWils0n / unistall_xcode.sh
Created November 11, 2012 19:34
macosx: unistall xcode
#!/bin/sh
# ===================
# = uninstall xcode =
# ===================
sudo /Developer/Library/uninstall-devtools --mode=all