公告版位

# mvn clean install -Dmaven.test.skip=true

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

Google Chrome Install
1. Add Key:
# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -


2. Set repository:
# sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# sudo apt-get update


3. Install package: 
# sudo apt-get install -y google-chrome-stable


Reference: https://askubuntu.com/questions/510056/how-to-install-google-chrome

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. Install Packages
$ sudo yum install pptp pptp-setup

 

2. Config VPN Client.
$ sudo vim /etc/ppp/chap-secrets
-----------------------------------------
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
<VPN_USERNAME>    PPTP    <VPN_PASSWORD>        *
-----------------------------------------

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

Question:
$ ssh administrator@192.168.1.1 -p 5100

Unable to negotiate with 192.168.1.1 port 5100: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Answer:
$ vim ~/.ssh/config

---------------------------------------------------------------------------
Host 192.168.1.1                                                                                                         
     KexAlgorithms +diffie-hellman-group1-sha1 

---------------------------------------------------------------------------

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

Resolved by Jenkins-plugin "Maven Integration plugin"

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

$ echo "" > ~/.zsh_history & exec $SHELL -l

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

# 以下為BIG-5連線
$ ssh bbs@ptt.cc

# 以下為UTF-8連線
$ ssh bbsu@ptt.cc

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

# vim /etc/ssh/sshd_config
============APPEND==============
UseDNS no
============APPEND==============


# service sshd restart

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

# sed -i "N;s/\n/ /g" text.txt

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

# 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 發表在 痞客邦 PIXNET 留言(0) 人氣()

# vim /etc/dhcp/dhcpd6.conf
===========add==============
......
log-facility local0;
......
===========add==============

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

Command: "C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow -dpi 112

dreamtails 發表在 痞客邦 PIXNET 留言(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 發表在 痞客邦 PIXNET 留言(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 發表在 痞客邦 PIXNET 留言(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 發表在 痞客邦 PIXNET 留言(0) 人氣()

找更多相關文章與討論