Skip to content

Instantly share code, notes, and snippets.

@balduran
Forked from g3d/gist:2709563
Created December 24, 2015 06:18
Show Gist options
  • Save balduran/d92f4e616fa92af76531 to your computer and use it in GitHub Desktop.
Save balduran/d92f4e616fa92af76531 to your computer and use it in GitHub Desktop.

Revisions

  1. @g3d g3d revised this gist Jul 2, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -251,7 +251,7 @@ Settings
    "spell_check": true,
    "tab_size": 2,
    "theme": "Soda Dark 3.sublime-theme",
    "translate_tabs_to_spaces": false,
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "use_simple_full_screen": true,
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
  2. @g3d g3d revised this gist Jul 1, 2013. 1 changed file with 19 additions and 15 deletions.
    34 changes: 19 additions & 15 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -231,29 +231,33 @@ Settings

    ```json
    {
    "font_size": 14,
    "close_windows_when_empty": true,
    "default_encoding": "UTF-8",
    "fallback_encoding": "Cyrillic (Windows 1251)",
    "font_face": "Mensch",
    "margin": 2,
    "tab_size": 2,
    "translate_tabs_to_spaces": false,
    "font_size": 14,
    "highlight_line": true,
    "trim_trailing_white_space_on_save": true,
    "fallback_encoding": "Cyrillic (Windows 1251)",
    "default_encoding": "UTF-8",
    "use_simple_full_screen": true,
    "open_files_in_new_window": false,
    "show_full_path": true,
    "show_tab_close_buttons": true,
    "close_windows_when_empty": true,
    "spell_check": true,
    "highlight_modified_tabs": true,
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
    "ignored_packages":
    [
    "Vintage"
    ]
    ],
    "margin": 2,
    "open_files_in_new_window": false,
    "show_full_path": true,
    "show_tab_close_buttons": true,
    "soda_classic_tabs": false,
    "soda_folder_icons": true,
    "spell_check": true,
    "tab_size": 2,
    "theme": "Soda Dark 3.sublime-theme",
    "translate_tabs_to_spaces": false,
    "trim_trailing_white_space_on_save": true,
    "use_simple_full_screen": true,
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
    }


    ```

    Key Bindings
  3. @g3d g3d revised this gist Jun 26, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -55,7 +55,6 @@ Install rubies
    -------------
    ```bash
    rvm get head
    rvm pkg install readline # need it to work correctly with utf-8 characters in irb/pry
    rvm install 1.9.3
    ```

  4. @g3d g3d revised this gist Jun 26, 2013. No changes.
  5. @g3d g3d revised this gist Jun 26, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -48,6 +48,7 @@ Install rvm
    -------------
    ```bash
    \curl -L https://get.rvm.io | bash -s stable
    rvm requirements
    ```

    Install rubies
  6. @g3d g3d revised this gist Jun 26, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lo
    Install rvm
    -------------
    ```bash
    curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
    \curl -L https://get.rvm.io | bash -s stable
    ```

    Install rubies
  7. @g3d g3d revised this gist Jun 26, 2013. 1 changed file with 0 additions and 541 deletions.
    541 changes: 0 additions & 541 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -274,25 +274,6 @@ Snippets
    git clone [email protected]:bytestudios/sublime-snippets.git "/Users/Joel/Library/Application Support/Sublime Text 2/Packages/Byte"
    ```





















    #Server

    @@ -333,246 +314,6 @@ scutil --dns
    ```


    Enable virtual hosts
    --------------------
    ```bash
    subl "/etc/apache2/users/$USER.conf"
    ```

    ```bash
    DocumentRoot "/Users/Joel/Sites/"
    NameVirtualHost *:80
    <Directory "/Users/Joel/Sites/">
    Options Indexes MultiViews FollowSymLinks Includes
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <VirtualHost *:80>
    UseCanonicalName off
    VirtualDocumentRoot /Users/Joel/Sites/%-2+/httpdocs
    </VirtualHost>
    ```




    ```bash
    #open apache config
    subl "/etc/apache2/httpd.conf"
    ```

    Configure httpd.conf
    ---------------------

    ```bash
    ServerRoot "/usr"

    Listen 80

    LoadModule authn_file_module libexec/apache2/mod_authn_file.so
    LoadModule authn_dbm_module libexec/apache2/mod_authn_dbm.so
    LoadModule authn_anon_module libexec/apache2/mod_authn_anon.so
    LoadModule authn_dbd_module libexec/apache2/mod_authn_dbd.so
    LoadModule authn_default_module libexec/apache2/mod_authn_default.so
    LoadModule authz_host_module libexec/apache2/mod_authz_host.so
    LoadModule authz_groupfile_module libexec/apache2/mod_authz_groupfile.so
    LoadModule authz_user_module libexec/apache2/mod_authz_user.so
    LoadModule authz_dbm_module libexec/apache2/mod_authz_dbm.so
    LoadModule authz_owner_module libexec/apache2/mod_authz_owner.so
    LoadModule authz_default_module libexec/apache2/mod_authz_default.so
    LoadModule auth_basic_module libexec/apache2/mod_auth_basic.so
    LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so
    LoadModule cache_module libexec/apache2/mod_cache.so
    LoadModule disk_cache_module libexec/apache2/mod_disk_cache.so
    LoadModule mem_cache_module libexec/apache2/mod_mem_cache.so
    LoadModule dbd_module libexec/apache2/mod_dbd.so
    LoadModule dumpio_module libexec/apache2/mod_dumpio.so
    LoadModule reqtimeout_module libexec/apache2/mod_reqtimeout.so
    LoadModule ext_filter_module libexec/apache2/mod_ext_filter.so
    LoadModule include_module libexec/apache2/mod_include.so
    LoadModule filter_module libexec/apache2/mod_filter.so
    LoadModule substitute_module libexec/apache2/mod_substitute.so
    LoadModule deflate_module libexec/apache2/mod_deflate.so
    LoadModule log_config_module libexec/apache2/mod_log_config.so
    LoadModule log_forensic_module libexec/apache2/mod_log_forensic.so
    LoadModule logio_module libexec/apache2/mod_logio.so
    LoadModule env_module libexec/apache2/mod_env.so
    LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
    LoadModule cern_meta_module libexec/apache2/mod_cern_meta.so
    LoadModule expires_module libexec/apache2/mod_expires.so
    LoadModule headers_module libexec/apache2/mod_headers.so
    LoadModule ident_module libexec/apache2/mod_ident.so
    LoadModule usertrack_module libexec/apache2/mod_usertrack.so
    #LoadModule unique_id_module libexec/apache2/mod_unique_id.so
    LoadModule setenvif_module libexec/apache2/mod_setenvif.so
    LoadModule version_module libexec/apache2/mod_version.so
    LoadModule proxy_module libexec/apache2/mod_proxy.so
    LoadModule proxy_connect_module libexec/apache2/mod_proxy_connect.so
    LoadModule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so
    LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
    LoadModule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so
    LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so
    LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so
    LoadModule ssl_module libexec/apache2/mod_ssl.so
    LoadModule mime_module libexec/apache2/mod_mime.so
    LoadModule dav_module libexec/apache2/mod_dav.so
    LoadModule status_module libexec/apache2/mod_status.so
    LoadModule autoindex_module libexec/apache2/mod_autoindex.so
    LoadModule asis_module libexec/apache2/mod_asis.so
    LoadModule info_module libexec/apache2/mod_info.so
    LoadModule cgi_module libexec/apache2/mod_cgi.so
    LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
    LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
    LoadModule negotiation_module libexec/apache2/mod_negotiation.so
    LoadModule dir_module libexec/apache2/mod_dir.so
    LoadModule imagemap_module libexec/apache2/mod_imagemap.so
    LoadModule actions_module libexec/apache2/mod_actions.so
    LoadModule speling_module libexec/apache2/mod_speling.so
    LoadModule userdir_module libexec/apache2/mod_userdir.so
    LoadModule alias_module libexec/apache2/mod_alias.so
    LoadModule rewrite_module libexec/apache2/mod_rewrite.so
    #LoadModule perl_module libexec/apache2/mod_perl.so
    LoadModule php5_module libexec/apache2/libphp5.so
    #LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so

    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>

    User _www
    Group _www

    </IfModule>
    </IfModule>

    ServerAdmin [email protected]

    ServerName localhost

    DocumentRoot "/Library/WebServer/Documents"

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>

    <Directory "/Library/WebServer/Documents">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    <IfModule dir_module>
    DirectoryIndex index.php index.html
    </IfModule>

    <FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>

    <Files "rsrc">
    Order allow,deny
    Deny from all
    Satisfy All
    </Files>

    <DirectoryMatch ".*\.\.namedfork">
    Order allow,deny
    Deny from all
    Satisfy All
    </DirectoryMatch>

    ErrorLog "/private/var/log/apache2/error_log"

    LogLevel warn

    <IfModule log_config_module>

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "/private/var/log/apache2/access_log" common

    </IfModule>

    <IfModule alias_module>
    ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"
    </IfModule>

    <IfModule cgid_module>
    </IfModule>

    <Directory "/Library/WebServer/CGI-Executables">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>

    DefaultType text/plain

    <IfModule mime_module>

    TypesConfig /private/etc/apache2/mime.types

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    </IfModule>

    TraceEnable off

    Include /private/etc/apache2/extra/httpd-mpm.conf
    Include /private/etc/apache2/extra/httpd-autoindex.conf
    Include /private/etc/apache2/extra/httpd-languages.conf
    Include /private/etc/apache2/extra/httpd-userdir.conf
    Include /private/etc/apache2/extra/httpd-manual.conf

    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>

    <IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>

    Include /private/etc/apache2/other/*.conf
    ```

    Enable centOS style /var/www/vhosts
    -----------------------------------

    ```bash
    sudo mkdir -p /var/www/ &&
    sudo ln -s ~/Sites /var/www/vhosts
    ```





    XDebug
    ------


    ```bash
    brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/xdebug-php.rb
    ```

    MySQL
    -----

    @@ -632,288 +373,6 @@ createdb -Ouser -Eutf8 -T template0 user_test
    ```


    Configure php.ini
    ---------------------

    ```bash
    #create php.ini
    sudo touch /etc/php.ini && subl /etc/php.ini
    ```

    ```ini
    [PHP]

    engine = On
    short_open_tag = On
    asp_tags = Off
    precision = 14
    y2k_compliance = On
    output_buffering = 4096
    ;output_handler =
    zlib.output_compression = On
    zlib.output_compression_level = -1
    zlib.output_handler =
    implicit_flush = Off
    unserialize_callback_func =
    serialize_precision = 17
    allow_call_time_pass_reference = Off
    safe_mode = Off
    safe_mode_gid = Off
    safe_mode_include_dir =
    safe_mode_exec_dir =
    safe_mode_allowed_env_vars = PHP_
    safe_mode_protected_env_vars = LD_LIBRARY_PATH
    disable_functions =
    disable_classes =
    expose_php = On
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 128M
    error_reporting = E_ALL | E_STRICT
    display_errors = On
    display_startup_errors = Off
    log_errors = On
    log_errors_max_len = 1024
    ignore_repeated_errors = Off
    ignore_repeated_source = Off
    report_memleaks = On
    track_errors = Off
    html_errors = On
    ;error_prepend_string = "<span style='color: #ff0000'>"
    ;error_append_string = "</span>"
    ;error_log = php_errors.log
    ;error_log = syslog
    variables_order = "GPCS"
    request_order = "GP"
    register_globals = Off
    register_long_arrays = Off
    register_argc_argv = Off
    auto_globals_jit = On
    post_max_size = 8M
    magic_quotes_gpc = Off
    magic_quotes_runtime = Off
    magic_quotes_sybase = Off
    auto_prepend_file =
    auto_append_file =
    default_mimetype = "text/html"
    default_charset = "utf-8"
    include_path = ".:/usr/lib/php/pear"
    doc_root =
    user_dir =
    extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20090626"
    enable_dl = Off
    file_uploads = On
    upload_max_filesize = 2M
    max_file_uploads = 20
    allow_url_fopen = On
    allow_url_include = Off
    default_socket_timeout = 60
    zend_extension="/usr/local/Cellar/xdebug-php/2.1.3/xdebug.so"

    [Date]

    date.timezone = "UTC"

    [filter]

    [iconv]

    [intl]

    [sqlite]

    [sqlite3]

    [Pcre]

    [Pdo]

    [Pdo_mysql]

    pdo_mysql.cache_size = 2000
    pdo_mysql.default_socket=/var/mysql/mysql.sock

    [Phar]

    [Syslog]

    define_syslog_variables = Off

    [mail function]

    SMTP = localhost
    smtp_port = 25
    mail.add_x_header = On

    [SQL]

    sql.safe_mode = Off

    [ODBC]

    odbc.allow_persistent = On
    odbc.check_persistent = On
    odbc.max_persistent = -1
    odbc.max_links = -1
    odbc.defaultlrl = 4096
    odbc.defaultbinmode = 1

    [Interbase]

    ibase.allow_persistent = 1
    ibase.max_persistent = -1
    ibase.max_links = -1
    ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
    ibase.dateformat = "%Y-%m-%d"
    ibase.timeformat = "%H:%M:%S"

    [MySQL]

    mysql.allow_local_infile = On
    mysql.allow_persistent = On
    mysql.cache_size = 2000
    mysql.max_persistent = -1
    mysql.max_links = -1
    mysql.default_port = 3306
    mysql.default_socket = /var/mysql/mysql.sock
    mysql.default_host =
    mysql.default_user =
    mysql.default_password =
    mysql.connect_timeout = 60
    mysql.trace_mode = Off

    [MySQLi]

    mysqli.max_persistent = -1
    mysqli.allow_persistent = On
    mysqli.max_links = -1
    mysqli.cache_size = 2000
    mysqli.default_port = 3306
    mysqli.default_socket = /var/mysql/mysql.sock
    mysqli.default_host =
    mysqli.default_user =
    mysqli.default_pw =
    mysqli.reconnect = Off

    [mysqlnd]

    mysqlnd.collect_statistics = On
    mysqlnd.collect_memory_statistics = Off

    [OCI8]

    [PostgresSQL]

    pgsql.allow_persistent = On
    pgsql.auto_reset_persistent = Off
    pgsql.max_persistent = -1
    pgsql.max_links = -1
    pgsql.ignore_notice = 0
    pgsql.log_notice = 0

    [Sybase-CT]

    sybct.allow_persistent = On
    sybct.max_persistent = -1
    sybct.max_links = -1
    sybct.min_server_severity = 10
    sybct.min_client_severity = 10

    [bcmath]

    bcmath.scale = 0

    [browscap]

    [Session]

    session.save_handler = files
    session.use_cookies = 1
    session.use_only_cookies = 1
    session.name = PHPSESSID
    session.auto_start = 0
    session.cookie_lifetime = 0
    session.cookie_path = /
    session.cookie_domain =
    session.cookie_httponly =
    session.serialize_handler = php
    session.gc_probability = 1
    session.gc_divisor = 1000
    session.gc_maxlifetime = 1440
    session.bug_compat_42 = Off
    session.bug_compat_warn = Off
    session.referer_check =
    session.entropy_length = 0
    session.cache_limiter = nocache
    session.cache_expire = 180
    session.use_trans_sid = 0
    session.hash_function = 0
    session.hash_bits_per_character = 5
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

    [MSSQL]

    mssql.allow_persistent = On
    mssql.max_persistent = -1
    mssql.max_links = -1
    mssql.min_error_severity = 10
    mssql.min_message_severity = 10
    mssql.compatability_mode = Off
    mssql.secure_connection = Off

    [Assertion]

    [COM]

    [mbstring]

    [gd]

    [exif]

    [Tidy]

    tidy.clean_output = Off

    [soap]

    soap.wsdl_cache_enabled=1
    soap.wsdl_cache_dir="/tmp"
    soap.wsdl_cache_ttl=86400
    soap.wsdl_cache_limit = 5

    [sysvshm]

    [ldap]

    ldap.max_links = -1

    [mcrypt]

    [dba]

    [xdebug]
    xdebug.idekey="macgdbp"
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.profiler_append=1
    xdebug.profiler_enable=1
    xdebug.profiler_enable_trigger=1
    xdebug.profiler_output_name = cachegrind.out.%s
    xdebug.profiler_output_dir=/tmp/
    ```


    Restart apache
    --------------
    ```bash
    sudo apachectl graceful
    ```


    Install nginx
    --------------
    ```bash
  8. @g3d g3d revised this gist Jun 26, 2013. No changes.
  9. @g3d g3d revised this gist Dec 13, 2012. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -231,7 +231,8 @@ Settings

    ```json
    {
    "font_size": 13.0,
    "font_size": 14,
    "font_face": "Mensch",
    "margin": 2,
    "tab_size": 2,
    "translate_tabs_to_spaces": false,
    @@ -245,11 +246,11 @@ Settings
    "show_tab_close_buttons": true,
    "close_windows_when_empty": true,
    "spell_check": true,
    "highlight_modified_tabs": true,
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
    "ignored_packages":
    [
    "Vintage",
    "Highlight Whitespaces"
    "Vintage"
    ]
    }

  10. @g3d g3d revised this gist Dec 13, 2012. No changes.
  11. @g3d g3d revised this gist Dec 13, 2012. 1 changed file with 19 additions and 10 deletions.
    29 changes: 19 additions & 10 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -231,17 +231,26 @@ Settings

    ```json
    {
    "close_windows_when_empty": true,
    "color_scheme": "Packages/Color Scheme - Tomorrow/Tomorrow-Night-Eighties.tmTheme",
    "draw_indent_guides": false,
    "font_face": "Mensch",
    "font_size": 18,
    "highlight_modified_tabs": true,
    "show_tab_close_buttons": false,
    "font_size": 13.0,
    "margin": 2,
    "tab_size": 2,
    "spell_check": false,
    "theme": "Soda Light.sublime-theme",
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
    "translate_tabs_to_spaces": false,
    "highlight_line": true,
    "trim_trailing_white_space_on_save": true,
    "fallback_encoding": "Cyrillic (Windows 1251)",
    "default_encoding": "UTF-8",
    "use_simple_full_screen": true,
    "open_files_in_new_window": false,
    "show_full_path": true,
    "show_tab_close_buttons": true,
    "close_windows_when_empty": true,
    "spell_check": true,
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
    "ignored_packages":
    [
    "Vintage",
    "Highlight Whitespaces"
    ]
    }

    ```
  12. @g3d g3d revised this gist Dec 5, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -54,6 +54,7 @@ Install rubies
    -------------
    ```bash
    rvm get head
    rvm pkg install readline # need it to work correctly with utf-8 characters in irb/pry
    rvm install 1.9.3
    ```

  13. @g3d g3d revised this gist Dec 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -434,7 +434,7 @@ Group _www
    </IfModule>
    </IfModule>

    ServerAdmin saetia@gmail.com
    ServerAdmin g3dinua@gmail.com

    ServerName localhost

  14. @g3d g3d revised this gist Sep 28, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,8 +38,8 @@ subl ~/.zshrc

    ```bash
    ZSH=$HOME/.oh-my-zsh
    ZSH_THEME="kphoen"
    plugins=(git osx rails ruby github node npm brew)
    ZSH_THEME="candy"
    plugins=(git osx rails3 ruby github node npm brew)
    source $ZSH/oh-my-zsh.sh
    export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin
    ```
  15. @g3d g3d revised this gist Aug 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -129,7 +129,7 @@ Set hostname


    ```bash
    /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
    ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
    ```

    ```bash
  16. @g3d g3d revised this gist Aug 26, 2012. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -60,6 +60,9 @@ rvm install 1.9.3
    # OS X Preferences

    ```bash
    #Fix fonth smoothing
    defaults -currentHost write -globalDomain AppleFontSmoothing -int 0

    #Disable window animations
    defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

  17. @g3d g3d revised this gist May 20, 2012. 1 changed file with 30 additions and 2 deletions.
    32 changes: 30 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -570,8 +570,6 @@ MySQL Settings
    --------------




    ```bash

    #setup daemon
    @@ -589,6 +587,36 @@ mysql.server start
    ```


    PostgreSQL
    -----

    ```bash
    brew install --without-ossp-uuid https://raw.github.com/briancunnie/homebrew/postgres-no-ossp-uuid/Library/Formula/postgresql.rb
    ```

    PostgreSQL Settings
    --------------


    ```bash
    #create database
    initdb /usr/local/var/postgres

    #autostart
    mkdir -p ~/Library/LaunchAgents
    cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist

    #fix the psql error
    sudo mkdir /var/pgsql_socket/
    ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/

    #create user and databases
    createuser user
    createdb -Ouser -Eutf8 -T template0 user_development
    createdb -Ouser -Eutf8 -T template0 user_test
    ```


    Configure php.ini
    ---------------------
  18. @g3d g3d revised this gist May 16, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -162,7 +162,7 @@ pip install virtualenvwrapper

    Source virtualenvwrapper script
    ```bash
    source /usr/local/share/python/virtualenvwrapper.sh
    source /usr/local/bin/virtualenvwrapper.sh
    ```


  19. @g3d g3d revised this gist May 16, 2012. 1 changed file with 35 additions and 4 deletions.
    39 changes: 35 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -134,13 +134,44 @@ brew install git ack wget curl memcached libmemcached readline sqlite gdbm pkg-c
    ```


    Install python
    ------------
    ```bash
    brew install python --framework --universal
    ```

    Add into your ~/.zshrc
    ```bash
    export PATH=/usr/local/share/python:$PATH
    ```

    Change system symlinks
    ```bash
    cd /System/Library/Frameworks/Python.framework/Versions
    sudo rm Current
    ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current
    ```

    Install pip & virtualenv
    ------------
    ```bash
    easy_install pip
    pip install virtualenv
    pip install virtualenvwrapper
    ```

    Source virtualenvwrapper script
    ```bash
    source /usr/local/share/python/virtualenvwrapper.sh
    ```


    #Git

    Setup Github
    ------------
    ```bash
    ssh-keygen -t rsa -C "saetia@gmail.com"
    ssh-keygen -t rsa -C "g3dinua@gmail.com"

    #copy ssh key to github.com
    subl ~/.ssh/id_rsa.pub
    @@ -149,9 +180,9 @@ subl ~/.ssh/id_rsa.pub
    ssh -T [email protected]

    #set git config values
    git config --global user.name "Joel Glovacki"
    git config --global user.email "saetia@gmail.com"
    git config --global github.user saetia
    git config --global user.name "Bohdan Viter"
    git config --global user.email "g3dinua@gmail.com"
    git config --global github.user g3d
    git config --global github.token your_token_here

    git config --global core.editor "subl -w"
  20. @g3d g3d revised this gist May 16, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -130,7 +130,7 @@ Set hostname
    ```

    ```bash
    brew install git ack wget curl redis memcached libmemcached colordiff imagemagick
    brew install git ack wget curl memcached libmemcached readline sqlite gdbm pkg-config
    ```


  21. @g3d g3d revised this gist May 16, 2012. 1 changed file with 26 additions and 0 deletions.
    26 changes: 26 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -51,6 +51,7 @@ curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | b
    ```

    Install rubies
    -------------
    ```bash
    rvm get head
    rvm install 1.9.3
    @@ -845,5 +846,30 @@ Install nginx
    ```bash
    brew install nginx
    ```
    Configure your ```/usr/local/etc/nginx/nginx.conf``` (similar to):
    ```bash
    server {
    listen 80;
    server_name localhost;
    root /path/to/phpfiles;
    index index.php index.html index.htm;

    location / {
    # http://www.ruby-forum.com/topic/187939
    # error_page 405 = $uri;
    }

    location ~ .php {
    include fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /path/to/phpfiles$fastcgi_script_name;
    }
    }
    ```
    Start nginx:
    ```bash
    /usr/local/sbin/nginx -c /usr/local/etc/nginx/nginx.conf
    ```

    ![aww yeah](http://i.imgur.com/AmFax.gif)
  22. @g3d g3d revised this gist May 16, 2012. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -44,9 +44,17 @@ source $ZSH/oh-my-zsh.sh
    export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin
    ```

    Install rvm
    -------------
    ```bash
    curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
    ```



    Install rubies
    ```bash
    rvm get head
    rvm install 1.9.3
    ```

    # OS X Preferences

  23. @g3d g3d revised this gist May 16, 2012. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -832,4 +832,10 @@ sudo apachectl graceful
    ```


    Install nginx
    --------------
    ```bash
    brew install nginx
    ```

    ![aww yeah](http://i.imgur.com/AmFax.gif)
  24. @g3d g3d revised this gist May 16, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,6 @@ Apps
    * [iTerm](http://iterm2.com)
    * [FileZilla](http://filezilla-project.org/download.php)
    * [Sublime Text](http://www.sublimetext.com/dev)
    * [Sequel Pro](http://nightly.sequelpro.com)
    * [1Password](https://agilebits.com/onepassword/mac)
    * [LiveReload](http://livereload.com)
    * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions)

  25. @g3d g3d revised this gist May 16, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,7 @@ Apps
    * [Firefox](http://www.mozilla.org/en-US/firefox/beta/)
    * [Opera](http://www.opera.com/browser/next/)
    * [iTerm](http://iterm2.com)
    * [Transmit](http://panic.com/transmit)
    * [Coda](http://panic.com/coda)
    * [FileZilla](http://filezilla-project.org/download.php)
    * [Sublime Text](http://www.sublimetext.com/dev)
    * [Sequel Pro](http://nightly.sequelpro.com)
    * [1Password](https://agilebits.com/onepassword/mac)
  26. @g3d g3d revised this gist May 16, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@ Apps
    * [Webkit](http://webkit.org)
    * [Chrome](http://www.chromium.org/getting-involved/dev-channel)
    * [Firefox](http://www.mozilla.org/en-US/firefox/beta/)
    * [Opera](http://www.opera.com/browser/next/)
    * [iTerm](http://iterm2.com)
    * [Transmit](http://panic.com/transmit)
    * [Coda](http://panic.com/coda)
  27. @g3d g3d revised this gist May 16, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,8 @@
    Apps
    ----
    * [Webkit](http://webkit.org)
    * [Chrome](http://google.com/chrome)
    * [Firefox](http://firefox.com)
    * [Chrome](http://www.chromium.org/getting-involved/dev-channel)
    * [Firefox](http://www.mozilla.org/en-US/firefox/beta/)
    * [iTerm](http://iterm2.com)
    * [Transmit](http://panic.com/transmit)
    * [Coda](http://panic.com/coda)
  28. @saetia saetia revised this gist Apr 20, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -209,7 +209,9 @@ Key Bindings

    ```json
    [
    { "keys": ["super+b"], "command": "expand_selection", "args": {"to": "brackets"} }
    { "keys": ["super+b"], "command": "expand_selection", "args": {"to": "brackets"} },
    { "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} },
    { "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} }
    ]
    ```

  29. @saetia saetia revised this gist Apr 20, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -196,6 +196,7 @@ Settings
    "font_size": 18,
    "highlight_modified_tabs": true,
    "show_tab_close_buttons": false,
    "tab_size": 2,
    "spell_check": false,
    "theme": "Soda Light.sublime-theme",
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
  30. @saetia saetia revised this gist Apr 18, 2012. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -349,6 +349,7 @@ LoadModule expires_module libexec/apache2/mod_expires.so
    LoadModule headers_module libexec/apache2/mod_headers.so
    LoadModule ident_module libexec/apache2/mod_ident.so
    LoadModule usertrack_module libexec/apache2/mod_usertrack.so
    #LoadModule unique_id_module libexec/apache2/mod_unique_id.so
    LoadModule setenvif_module libexec/apache2/mod_setenvif.so
    LoadModule version_module libexec/apache2/mod_version.so
    LoadModule proxy_module libexec/apache2/mod_proxy.so
    @@ -376,7 +377,9 @@ LoadModule speling_module libexec/apache2/mod_speling.so
    LoadModule userdir_module libexec/apache2/mod_userdir.so
    LoadModule alias_module libexec/apache2/mod_alias.so
    LoadModule rewrite_module libexec/apache2/mod_rewrite.so
    #LoadModule perl_module libexec/apache2/mod_perl.so
    LoadModule php5_module libexec/apache2/libphp5.so
    #LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so

    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>