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
# 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 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 / 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 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
@mhtsai1010
mhtsai1010 / 50-unity-greeter.conf
Last active August 22, 2016 08:06
Lightdm: Hiding the User List & Allow Manual Login
[SeatDefaults]
greeter-session=unity-greeter
greeter-hide-users=true
greeter-show-manual-login=true
@mhtsai1010
mhtsai1010 / 50-no-guest.conf
Created August 22, 2016 05:35
Lightdm: Disabling Guest Login
[SeatDefaults]
allow-guest=false
# Adding playdeb apt repository for Official Ubuntu packages
# Create a file named /etc/apt/sources.list.d/getdeb.list and paste the
# configurations below, uncomment the line depends on your OS distribution
# Reference: http://www.playdeb.net/updates/Ubuntu/14.04#how_to_install
# _____ _ _ _____ _ _____ _____
# | __||_| _____ ___ | | ___ | _ || | ___ ___ ___ | __| | _ |
# |__ || || || . || || -_| | __|| || .'|| | |___| |__ | _ | __|_
# |_____||_||_|_|_|| _||_||___| |__| |_||__,||_|_| |_____||_||__| |_|
# |_|
# Ubuntu