Skip to content

Instantly share code, notes, and snippets.

View mhtsai1010's full-sized avatar
🇹🇼
Make It Simple.

J.T. mhtsai1010

🇹🇼
Make It Simple.
View GitHub Profile
@mhtsai1010
mhtsai1010 / promiscuous_mode.txt
Created August 29, 2016 02:46
Enable promiscuous mode of vmware on a Linux Host
Ref: https://bbs.archlinux.org/viewtopic.php?id=65508
1/ Method 1
# First, create a new Linux group which has permission to use promiscuous mode, and add yourself to the group.
$ groupadd promiscuous
$ usermod -a -G promiscuous <your_user_id>
# Update the group ownership and access permission of /dev/vmnet*
$ chgrp promiscuous /dev/vmnet*
$ chmod g+rw /dev/vmnet*
@mhtsai1010
mhtsai1010 / vmware_preferences
Last active May 1, 2017 11:09
Enable hardware graphics acceleration and 3D support on Ubuntu host
# append following settings
mks.gl.allowBlacklistedDrivers = "TRUE"
# Adding kibana apt repository for Official Debian/Ubuntu packages
# Create a file named /etc/apt/sources.list.d/logstash.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: https://www.elastic.co/guide/en/kibana/4.6/setup-repositories.html
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Debian/Ubuntu
# Adding logstash apt repository for Official Debian/Ubuntu packages
# Create a file named /etc/apt/sources.list.d/logstash.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: https://www.elastic.co/guide/en/logstash/current/installing-logstash.html
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Debian/Ubuntu
# Adding elasticsearch apt repository for Official Debian/Ubuntu packages
# Create a file named /etc/apt/sources.list.d/elasticsearch.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Debian/Ubuntu
# Adding neo4j apt repository for Official Ubuntu packages
# Create a file named /etc/apt/sources.list.d/neo4j.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: http://debian.neo4j.org/
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Debian & Ubuntu
@mhtsai1010
mhtsai1010 / fix-open-vm-tools.txt
Created August 30, 2016 15:32
Files missing in /mnt/hgfs on Ubuntu VM
$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ ./patched-open-vm-tools.sh
@mhtsai1010
mhtsai1010 / mongodb-org-3.2.list
Last active August 24, 2016 09:53
APT: mongodb-org-3.2.list
# Adding MongoDB apt repository for Official Debian/Ubuntu packages
# Create a file named /etc/apt/sources.list.d/mongodb.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: http://docs.mongodb.org/manual/administration/install-on-linux/
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Debian 7 wheezy
# Adding mariadb apt repository for Official Ubuntu packages
# Create a file named /etc/apt/sources.list.d/mariadb.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: https://downloads.mariadb.org/mariadb/repositories/
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Ubuntu
@mhtsai1010
mhtsai1010 / Nautilus-enable-recursive-search.sh
Created August 22, 2016 08:28
Enable recursive search in Nautilus
gsettings set org.gnome.nautilus.preferences enable-interactive-search false