Skip to content

Instantly share code, notes, and snippets.

View congto's full-sized avatar
🥁
Focusing

Tô Thành Công congto

🥁
Focusing
View GitHub Profile
@congto
congto / meetup18_demo.md
Created March 31, 2018 02:57
meetup18_demo.md

Lệnh demo

### Heat demo

openstack network list

export NET_ID=$(openstack network list | awk '/ selfservice / { print $2 }')

openstack stack create -t demo-template.yml --parameter "NetID=$NET_ID" stack
@congto
congto / notes.md
Created March 25, 2018 10:54 — forked from reterVision/notes.md
Linux Performance Tuning

1.1 Linux process management

  • process scheduling
  • interrupt handling
  • signaling
  • process prioritization
  • process switching
  • process state
  • process memory
@congto
congto / note_smokeping.md
Last active March 20, 2018 08:19
note_smokeping.md

Ghi chép cài đặt Smokeping

Yêu cầu

  • Máy cài đặt CentOS7 64 bit

Bước chuẩn bị

  • Đăng nhập với quyền root
  • Chạy các lệnh sau để tạm thời ngắt firewall và selinux
@congto
congto / note-kolla-ansible.txt
Created March 11, 2018 18:10
note-kolla-ansible.txt
## My result
I follow my tutorial, step by step: https://github.com/congto/openstack-tools/blob/master/docs/kolla/openstack-pike-kolla-aio.md
- Step curl: http://prntscr.com/ipqee2
- Step pre-check: http://prntscr.com/ipqe27
@congto
congto / fixloi_packstack_queens.md
Created March 8, 2018 16:50
fixloi_packstack_queens.md
  • Cài thêm gói yum install -y python-setuptools để fix nếu gặp lỗi dưới
# packstack --gen-answer-file=answers.cfg
ERROR:root:Failed to load plugin from file ssl_001.py
ERROR:root:Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 923, in loadPlugins
    moduleobj = __import__(moduleToLoad)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/ssl_001.py", line 20, in <module>
@congto
congto / file_mau_linux_command.txt
Last active March 8, 2018 02:57
file_mau_linux_command.txt
## File mau hoc cac lenh trong python
@########
Thuc tap sinh 2018 @meditech.vn
Linux system network
@########
Container ecosystem # docker %$ 1966
Programing : C++, Java, Python, Golang, Ruby
Dinh Van Manh 1994 manh.dinhvan@meditech.vn OpenStack, DOCKER, Monitoring, graylog #HANU
NGUYEN VIET DUNG
@congto
congto / go-shebang-story.md
Created February 22, 2018 13:54 — forked from posener/go-shebang-story.md
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@congto
congto / kiemtra-container-kolla.md
Last active January 8, 2018 09:19
kiemtra-container-kolla.md

Trên Controller

[root@controller1 ~]# docker ps -a
ea063a285d58        172.16.68.200:4000/lokolla/centos-source-ceilometer-central:5.0.1          "kolla_start"       About an hour ago   Up About an hour                        ceilometer_central
fe64b7e81e3e        172.16.68.200:4000/lokolla/centos-source-ceilometer-notification:5.0.1     "kolla_start"       About an hour ago   Up About an hour                        ceilometer_notification
7d17f5c3d7a6        172.16.68.200:4000/lokolla/centos-source-gnocchi-statsd:5.0.1              "kolla_start"       2 hours ago         Up 2 hours                              gnocchi_statsd
c4ae2e5e50d6        172.16.68.200:4000/lokolla/centos-source-gnocchi-metricd:5.0.1             "kolla_start"       2 hours ago         Up 2 hours                              gnocchi_metricd
e68fa20405bb        172.16.68.200:4000/lokolla/centos-source-gnocchi-api:5.0.1                 "kolla_start"       2 hours ago         Up 2 hours                              gnocchi_api
@congto
congto / ubuntu-server-14.04.seed
Last active November 21, 2017 08:33
ubuntu-server-14.04.seed
#
# Ubuntu Server 14.04 Preseed
#
# Usage:
#
# This Ubuntu Preseed file is meant to be used with Cobbler. It has been
# tested only on Cobbler 2.4.1. It is a completely unattended install.
#
# References:
#
@congto
congto / ubuntu-server-16-04.seed
Last active November 23, 2017 15:41
ubuntu-server-16-04.seed
#
# Ubuntu Server 16.04 Preseed
#
# Usage:
#
# This Ubuntu Preseed file is meant to be used with Cobbler. It has been
# tested only on Cobbler 2.8.2. It is a completely unattended install.
#
# References:
#