curl -sSL -o clone.c goo.gl/G45N5X# on host| ; place this file to /etc (/etc/odbc.ini) | |
| [mysql-asterisk] | |
| Description = MySQL Asterisk database | |
| ; MySQL DB name | |
| Database = asterisk | |
| ; User | |
| User = asterisk | |
| ; Password |
| # Setup for use of Android SDK tools from command line | |
| # Set ANDROID_SDK_ROOT to point to the root of the SDK installation | |
| export ANDROID_SDK_ROOT='/Applications/adt-bundle-mac-x86_64-20130729/sdk' | |
| export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/tools/lib/x86_64 |
| This is my personal guide on how i setup docker with BTRFS on ubuntu support. | |
| Follow along the steps mentioned as: | |
| 1) Make sure you have a separate unmounted partition /dev/sdaX. How I did was , i installed ubuntu on my complete hard drive of 500GB. I wanted to partition it into two, so other 250GB will have btrfs eventually enabled on it. To partition it , after Ubuntu 14 installation, i followed the exact steps as these http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/. | |
| 2) Following the above linked guide, i then managed to have two 250GB , one was spare , other was where UBuntu was installed. | |
| 3) login to your ubuntu, now create the btrfs filesystem on the other device. To know which device is it, | |
| install gparted : | |
| > sudo apt-get install gparted | |
| > open it as "gparted" | |
| > this will show u all drives , the ones you are on currently with ubuntu will have label "boot" . now take note of other 250G device. | |
| Mine was /dev/sda3. |
| # get git to install it | |
| sudo apt-get install git | |
| # dependencies | |
| sudo apt-get install build-essential autotools-dev autoconf libcurl3 libcurl4-gnutls-dev | |
| # download latest version | |
| git clone https://github.com/wolf9466/cpuminer-multi | |
| cd cpuminer-multi/ |
| #!/bin/bash | |
| set -e | |
| # REQUIRED ACTION: Configure your backup server vars - see OVH Server Manager's "Backups" tab. | |
| # BACKUP_HOST_PREFIX: use the prefix domain for the listed "Name" value on the "Backups" tab. | |
| # Example: With a 'Name' value `ftpback-bhs1-3.ip-111-222-333.net` you would need to set `BACKUP_HOST_PREFIX=ftpback-bhs1-3` | |
| # Add something likethese to your ~/.bashrc - /etc/profile | |
| #export OVH_SERVER_ID="ns5xxxxx.ip-x-x-x.net" | |
| #export BACKUP_HOST_PREFIX="ftpback-bhs1-x" |
| #!/bin/bash | |
| # TODO: Add cmd to add to cron schedule (every 5 min? 15? 60? or 1?) | |
| # TODO: Add a netcat cmd to push the results into a syslog or other compatible endpoint | |
| # TODO: Fields with a " / " need additional parsing and normalization (MB vs. kB) | |
| docker stats --no-stream --format 'Name="{{.Name}}"\tCPUPerc="{{.CPUPerc}}"\tMemPerc="{{.MemPerc}}"\tMemUsage="{{.MemUsage}}"\tBlockIO="{{.BlockIO}}"\tNetIO="{{.NetIO}}"' | |
| exit |
| from http://ko.sdndev.net/2 | |
| ---------------------------- | |
| ip netns add netns1 | |
| ip netns exec netns1 ip link list | |
| ip netns exec netns1 ping 127.0.0.1 | |
| ip netns exec netns1 ip link set dev lo up | |
| ip link add veth0 type veth peer name veth1 |
| [watch] | |
| watch -n 1 docker ps | |
| [script] | |
| -d 파일이 디렉토리인지 체크 | |
| -e 파일이 존재하는지 체크 | |
| -f 파일이 일반적인 파일인지 체크 | |
| -g 파일이 SGID 퍼미션을 가졌는지 체크 | |
| -r 파일이 읽기 가능인지 체크 | |
| -s 파일의 크기가 0이 아닌지 체크 |