To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
 - Mountain Lion -> High Sierra
 
| #!/bin/bash | |
| for elm in $@; do | |
| database=$(echo $elm | cut -f1 -d '.') | |
| tables=$(echo $elm | cut -f2 -d '.') | |
| if [ $tables == "{*}" ]; then | |
| tables=$(mysql -uroot -e "SHOW TABLES FROM $database") | |
| tables=$(echo $tables | sed s",^Tables_in_$database,,") | |
| fi | 
| #!/bin/dash | |
| ### | |
| # ABOUT : collectd monitoring script for smartmontools (using smartctl) | |
| # AUTHOR : Samuel B. <samuel_._behan_(at)_dob_._sk> (c) 2012 | |
| # LICENSE: GNU GPL v3 | |
| # SOURCE: http://devel.dob.sk/collectd-scripts/ | |
| # | |
| # This script monitors SMART pre-fail attributes of disk drives using smartmon tools. | |
| # Generates output suitable for Exec plugin of collectd. | |
| ### | 
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| /* .---. | |
| /o o\ | |
| __(= " =)__ | |
| //\'-=-'/\\ | |
| ) (_ | |
| / `"=-._ | |
| / \ ``"=. | |
| / / \ \ `=..--. | |
| ___/ / \ \___ _, , `\ | |
| `-----' `""""`'-----``"""` \ \_/ | 
| #!/usr/bin/python | |
| # fix-xcode | |
| # Rob Napier <[email protected]> | |
| # Script to link in all your old SDKs every time you upgrade Xcode | |
| # Create a directory called /SDKs (or modify source_path). | |
| # Under it, put all the platform directories: | |
| # MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform | |
| # Under those, store the SDKs: | 
| #Se o erro for algo parecido com isto: | |
| #building 'lxml.etree' extension | |
| #gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w | |
| #In file included from src/lxml/lxml.etree.c:239:0: | |
| #src/lxml/etree_defs.h:9:31: erro fatal: libxml/xmlversion.h: Arquivo ou diretório não encontrado | |
| #compilação terminada. | |
| #error: command 'gcc' failed with exit status 1 | |
| #basta instalar libxml2-dev e libxslt-dev | 
| $ brew install libmagic | |
| $ brew link libmagic (if the link is already created is going to fail, don't worry about that) | |
| $ env ARCHFLAGS="-arch x86_64" gem install ruby-filemagic -- --with-magic-include=/usr/local/include --with-magic-lib=/usr/local/lib/ |