Skip to content

Instantly share code, notes, and snippets.

View pandaskii's full-sized avatar

Joseph Z pandaskii

View GitHub Profile

Install dnsmasq with brew:

$ brew install dnsmasq

Setup *.test hosts with:

$ echo 'address=/.test/127.0.0.1' >> /opt/homebrew/etc/dnsmasq.conf

If want to use other device to resolv nameserver ( default only 127.0.0.1 )

@pandaskii
pandaskii / dnsmasq-setup.md
Created July 20, 2022 03:59 — forked from gdestree/dnsmasq-setup.md
Setup dnsmasq on OS X *updated for .test

Never touch your local /etc/hosts file in OS X again

UPDATED for .test

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.

Requirements

@pandaskii
pandaskii / plink-plonk.js
Created February 17, 2020 01:52 — forked from tomhicks/plink-plonk.js
Listen to your web pages
@pandaskii
pandaskii / mailhog-mamp.md
Created December 11, 2019 10:06 — forked from jaredatch/mailhog-mamp.md
Install MailHog with MAMP Pro

Install MailHog with MAMP Pro, using HomeBrew.

MailHog

First let's make sure HB is updated. Open up terminal for the following steps.

$ brew update
# Install packages using brew.
brew cask install iterm2 google-chrome
brew install yarn
#Create, update and blog post into a Confluence Wiki with Python. You'll have to
#provide the server and user credentials
import sys
from xmlrpclib import Server
user = "username"
passwd = "passwd"
serverurl = "https://server.example.com/rpc/xmlrpc"
spacekey = "demospace"
@pandaskii
pandaskii / Gemfile
Created December 4, 2017 02:00
Limit gems version for Zen 5.x
source 'https://rubygems.org'
group :frontend do
gem "breakpoint", '~>2.4.0'
gem 'compass', '<= 0.13'
# Build compass sprites faster with oily_png.
gem 'oily_png', '~> 1.1'
gem 'sass', '~> 3.0'
gem 'sass-globbing', '~> 1.1'
gem 'zen-grids', '~> 1.5'
@pandaskii
pandaskii / Remove all git tags
Created August 26, 2017 02:57 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@pandaskii
pandaskii / GoogleDriveServiceProvider.php
Created July 5, 2017 08:09 — forked from ivanvermeyen/!NOTE.md
Setup a Laravel Storage driver with Google Drive API
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class GoogleDriveServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
# The bare minimum to get a decent terminal setup for work
echo "Opening apps to download..."
echo ""
echo "iTerm 2"
open https://iterm2.com/downloads/stable/latest
echo "Chrome"
open https://www.google.com.au/chrome/browser/desktop/
echo "Firefox"
open https://www.mozilla.org/firefox/new/?scene=2
echo "MAMP"