Skip to content

Instantly share code, notes, and snippets.

(Inspired by http://yourmacguy.wordpress.com/2012/06/29/osx-automount/)

Preface:

  • I have a lot of vagrant projects
  • Each of them provides an NFS-Server exporting /home/vagrant
  • Since Mac OS 10.8 the handy "NFS Mounts" from Disk Util are gone
  • I'd like a single place, in which I could copy'n'paste a config for a new box and/or comment a box (when I don't need it for some time)
  • I'd like to make this a vagrant plugin
  • Ideally, the mount will be activated/deactivated when starting/suspending a box
#screen
$ ctrl + a + d #exit
$ ctrl + a + c # tab
$ ctrl + a + space # switch tab
$ ctrl + a + number # switch to tab window, if in screen
$ screen -x #overview of screen or enter in active screen, if only one
CREATE DATABASE dbname
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<ROOT type="array">
<type>array</type>
<el type="array">
<headline type="array">
<TCEforms type="array">
<label>Überschrift</label>
<config type="array">
<type>input</type>
@sfelde
sfelde / grid_ts.ts
Last active December 16, 2015 11:49
tt_content.gridelements_pi1.20.10.setup {
3 < lib.gridelements.defaultGridSetup
3 {
prepend = COA
prepend {
10 = TEXT
10 {
data = field:flexform_headline
typolink.parameter.data = field:flexform_link
wrap = <h3>|</h3>
git remote add --track master source git://github.com/openstack/tempest.git
git fetch source
git merge source/master
git push
@sfelde
sfelde / apache 80 problem
Last active December 17, 2015 00:38
solve apache problem
sudo netstat -ap | grep '80'
tcp6 0 0 :::80 :::* LISTEN 18712/apache2
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb
sudo dpkg -i elasticsearch-0.20.6.deb
@sfelde
sfelde / elasticsearch-mac-brew
Created May 31, 2013 10:50
elasticsearch commands
==> Downloading https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.tar.gz
######################################################################## 100,0%
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_sfelde/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_sfelde.log
Plugins: /usr/local/var/lib/elasticsearch/plugins/
To have launchd start elasticsearch at login:
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
@sfelde
sfelde / nginx-auth
Created June 9, 2013 13:56
nginx authmod
printf "John:$(openssl passwd -crypt V3Ry)\n" >> .htpasswd # this example uses crypt encryption
location / {
auth_basic "Restricted";
auth_basic_user_file htpasswd;
}
url: http://wiki.nginx.org/HttpAuthBasicModule