Command:
apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies
Command:
# kubernetes - is an open source system for managing containerized | |
# applications across multiple hosts, providing basic mechanisms for | |
# deployment, maintenance, and scaling of applications. | |
# See: https://kubernetes.io | |
function __kubectl_no_command | |
set -l cmd (commandline -poc) | |
if not set -q cmd[2] | |
return 0 | |
end |
Tiny guide to install Ubuntu 14.04.05 on a brand new Alienware 15 R3.
Just next, next, next filling up your data.
You should get a BIOS update alert from the Alienware Update widget. If not,
right click on the Down arrow icon in the bottom right extra icons ^
thing and
right click, then click Check for Updates
.
To remove a submodule you need to:
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
今天阅读的内容是第十一章和第十二章的前两个章节,其中,第十一章介绍的是 Go 语言的 interface 和 reflection。而 interface 是 Go 语言的一个非常重要的特性,通过 interface ,Go 语言可以实现多态,可以实现动态类型所谓的鸭子类型,所以多花了一些时间来理解这个概念。当然,看完也不能说是完全理解,还是需要通过项目实践。而 reflection 是通过 reflect 包实现的,实现了对类型的 reflection 可以为 Go 提供一些动态的特点。下面总结今天的要点。
### 第十一章:Interfaces and reflection
Go 语言不是一个传统的 OO 语言,它没有类,也没有继承,但是它通过一个非常灵活的概念,可以让使用者非常方便地实现 OO 的一些概念和层次,而又不需要处理传统 OO 语言那样复杂的东西。这个概念就是 interface,在我看来 interface 的概念很清楚。正如其本意所说明的,接口。一个实现了某个 interface 的方法的类型,就被认为可以用在使用这个 interface 的地方,比如接受这个 interface 作为参数的函数。通过 interface 还可以实现多态,下面是这章的要点:
1.首先是 interface 的定义形式:type name interface { Method1(param_list) return_type }
,一个 interface 可以有多个的 method,从这个形式看来,有点像是一组指定名名称的方法;
################################################################# | |
# = This script transfers bash history to zsh history | |
# = Change bash and zsh history files, if you don't use defaults | |
# | |
# = Usage: ruby bash_to_zsh_history.rb | |
# | |
# = Author: Ankit Goyal | |
################################################################# | |
# change if you don't use default values |
// Define cURL process with correct arguments. | |
def proc = "curl -o log/${day.format('yyyy-MM-dd')}.log " | |
+ "http://servername/import-data/${day.format('yyyy-MM-dd')}" | |
.execute() | |
// cURL uses error output stream for progress output. | |
Thread.start { System.err << proc.err } | |
// Wait until cURL process finished and continue with the loop. | |
proc.waitFor() |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
#!/bin/sh | |
# | |
# /etc/rc.d/init.d/supervisord | |
# | |
# Supervisor is a client/server system that | |
# allows its users to monitor and control a | |
# number of processes on UNIX-like operating | |
# systems. | |
# | |
# chkconfig: - 64 36 |