Skip to content

Instantly share code, notes, and snippets.

View satanTime's full-sized avatar
:shipit:
OSS

satanTime

:shipit:
OSS
View GitHub Profile
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'yes');
$replace = array();
$replace[] = array(
'type' => 'any',
'source' => 'localhost',
@satanTime
satanTime / dnsmasq.conf
Created November 3, 2016 11:17
Configuration for dnsmasq to catch all dev domains and direct requests to local address
no-resolv
address=/dev/172.16.0.1
listen-address=172.16.0.1
@satanTime
satanTime / my.cnf
Created November 3, 2016 11:02
MySQL 5.7 by macports for macos
# Use default MacPorts settings
!include /opt/local/etc/mysql57/macports-default.cnf
[mysqld]
skip-networking = 0
bind-address = 172.16.0.1
default-storage-engine = MyISAM
explicit_defaults_for_timestamp = 1
lower_case_table_names=2
default_password_lifetime=0
@satanTime
satanTime / org.elasticsearch.plist
Created November 3, 2016 10:24
plist to load elastic search on macos
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.elasticsearch</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/elasticsearch/bin/elasticsearch</string>
@satanTime
satanTime / com.olovei.ip.plist
Created November 3, 2016 10:23
Creating own loopback ip address on macos to avoid conflicts of apple services
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version='1.0'>
<dict>
<key>Label</key>
<string>com.olovei.ip</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/ifconfig</string>