# vim /etc/network/interfaces
===================================
auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 172.17.11.1
netmask 255.255.254.0
gateway 172.17.10.254
dns-search dreamtails.local
bridge_ports eth0
bridge_stp off
post-up route add default via 172.17.10.254 dev br0
auto br1
iface br1 inet dhcp
bridge_ports eth1
bridge_stp off
post-up route del default dev br1
===================================
dreamtails 發表在 痞客邦 留言(0) 人氣()
# vim /etc/dhcp/dhcpd6.conf
===========add==============
......
log-facility local0;
......
===========add==============
dreamtails 發表在 痞客邦 留言(0) 人氣()
Command: "C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow -dpi 112
dreamtails 發表在 痞客邦 留言(0) 人氣()
$ sudo vim /etc/network/interfaces
=============================
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.17.11.1
netmask 255.255.254.0
gateway 172.17.10.1
dns-search dreamtails.local # equal to "search" in /etc/resolv.conf
auto eth1
iface eth1 inet dhcp
post-up route del default dev eth1
==============================
dreamtails 發表在 痞客邦 留言(0) 人氣()
// write file - overwrite
def filename = "/tmp/text1.txt"
def file = new File(filename)
def w = file.newWriter()
w << "Hello World!"
w.close()
// read file
String r = new File('/tmp/text1.txt').text
println(r)
============= Output =============
Hello World!
dreamtails 發表在 痞客邦 留言(0) 人氣()
import java.io.File;
File theFile = new File("/tmp/text1.txt");
println("Dirname: " + theFile.getParent());
println("Basename: " + theFile.getName());
============== Output ==============
Dirname: /tmp
Basename: text1.txt
dreamtails 發表在 痞客邦 留言(0) 人氣()
import java.io.File;
File f = new File("/tmp/text1.txt");
if(f.exists() && !f.isDirectory()) {
println("${f.path} - This is a File!")
}
============= Output ===============
/tmp/text1.txt - This is a File!
dreamtails 發表在 痞客邦 留言(0) 人氣()
1. Install packages
# yum install dhcp*
# yum install radvd
dreamtails 發表在 痞客邦 留言(0) 人氣()
# mkdir -p /tmp/cores
# chmod a+rwx /tmp/cores
# echo "/tmp/cores/%e.%p.%h.%t.core" > /proc/sys/kernel/core_pattern
------------------------
%p: pid
%: '%' is dropped
%%: output one '%'
%u: uid
%g: gid
%s: signal number
%t: UNIX time of dump
%h: hostname
%e: executable filename
------------------------
# ulimit -c unlimited
# kill -s SIGSEGV $$
Reference: https://sigquit.wordpress.com/2009/03/13/the-core-pattern/
dreamtails 發表在 痞客邦 留言(0) 人氣()
Filter ChangeList for submitted from 2016/08/10 to Now.
# p4 changes -s submitted //depot/code/...@2016/08/10,@now
Filter ChangeList for pending from 2016/08/10 to 2016/08/14
# p4 changes -s pending //depot/code/...@2016/08/10,@2016/08/15
Show ChangeList 123456 for editing files.
# p4 files @=123456
dreamtails 發表在 痞客邦 留言(0) 人氣()
$ sudo vim /etc/network/interfaces
-------------------------------------------------------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.100.1
netmask 255.255.0.0
gateway 10.10.0.254
#post-up route add default via 10.10.0.254 dev eth0
auto eth1
iface eth1 inet dhcp
post-up route del default dev eth1
-------------------------------------------------------------------------
dreamtails 發表在 痞客邦 留言(0) 人氣()
If the /dev/sdb is USB device.
# sudo -i
# fdisk /dev/sdb
--> n (Create partition)
.......
--> w
dreamtails 發表在 痞客邦 留言(0) 人氣()
├── third_party_lib
│ └── uploader.py
│
└── tools
└── logFtpUploader.py
dreamtails 發表在 痞客邦 留言(0) 人氣()
請移除「Microsoft Windows的安全性更新 (KB3140768)」。
dreamtails 發表在 痞客邦 留言(1) 人氣()
[HP 1920G Switch] loopback-detection enable
[HP 1920G Switch] loopback-detection multi-port-mode enable
[HP 1920G Switch] loopback-detection interval-time 5
dreamtails 發表在 痞客邦 留言(0) 人氣()