Skip to content

Instantly share code, notes, and snippets.

View trungtnm's full-sized avatar

Trung Trần trungtnm

  • Ho Chi Minh City
View GitHub Profile
@trungtnm
trungtnm / Fix Centos 6 do not recognize SSH key
Created July 23, 2020 07:30
Why am I still getting a password prompt with ssh with public key authentication?
`restorecon -R -v ~/.ssh`
<!DOCTYPE html>
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<html lang="en">
<head>
<title>Netdata multiple hosts and grouping dashboard/</title>
<meta name="application-name" content="netdata">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">

Keybase proof

I hereby claim:

  • I am trungtnm on github.
  • I am trungtran07 (https://keybase.io/trungtran07) on keybase.
  • I have a public key ASBXSHMZ1N7NutFksuEkavOaJl99NKTdIdTI-ftowN3vcQo

To claim this, I am signing this object:

@trungtnm
trungtnm / install-netdata-for-centos-6.sh
Last active March 12, 2020 10:03
Instructions for installing Netdata on CentOS 6 machine
#/bin/bash
rpm -ivh http://repo.okay.com.mx/centos/6/x86_64/release/okay-release-1-3.el6.noarch.rpm
yum -y install autoconf automake curl gcc git libmnl-devel libuuid-devel openssl-devel libuv-devel lz4-devel Judy-devel make nc pkgconfig python zlib-devel
cd /tmp
git clone https://github.com/netdata/netdata.git --depth=100
cd netdata
./netdata-installer.sh --libs-are-really-here
@trungtnm
trungtnm / setup-vet-troubleshooting
Created February 7, 2018 11:23
This gist is for troubleshooting when set up VET
If you see this:
`-bash: /usr/local/bin/docker-compose: Permission denied`
You need to grant `rw` permission for both `/usr/local/bin/docker-compose` and `/var/run/docker.sock` by running these instructions:
```
sudo chmod +x /usr/local/bin/docker-compose
sudo chmod +x /var/run/docker.sock
```
@trungtnm
trungtnm / setup-wifi-ubuntu.txt
Last active January 10, 2018 15:59
How to configure a wifi card using a command line or terminal
# source https://www.thinkpenguin.com/gnu-linux/how-configure-wifi-card-using-command-line-or-terminal
How to configure a wifi card using a command line or terminal
This documentation is applicable on distributions such as Ubuntu, Debian, Trisquel, Linux Mint, and other similar distributions (anything derived from these in other words). The below works with at least versions of Ubuntu up to 14.10, Debian up to 8, and Trisquel up to 7. Most likely it'll work with future versions of these distributions as well. However if you believe the directions need updating please contact support.
You may also just want to check out these directions
Step 1: Give yourself administrative access:
sudo su
# run Firefox (geckodriver) with Selenium standalone server v3.7.1
# need to install xvfb, geckodriver...
# ref : https://gist.github.com/adeubank/2d92d66caff2727ce1cc#file-setup-selenium-sh
xvfb-run -a java -Dwebdriver.gecko.driver=/usr/local/bin/geckodriver -jar /usr/local/bin/selenium-server-standalone.jar -enablePassThrough false