Skip to content

Instantly share code, notes, and snippets.

View yp2800's full-sized avatar
🎯
I may be slow to respond.

yp2800 yp2800

🎯
I may be slow to respond.
View GitHub Profile
@yp2800
yp2800 / [面试]Go面试题.md
Created March 4, 2020 10:45 — forked from giddily/[面试]Go面试题.md
[面试]Go面试题

面试题

1. 写出下面代码输出内容。

package main

import (
    "fmt"
)
@yp2800
yp2800 / squeeze.seed
Created June 25, 2014 02:28
squeeze.seed
#### Contents of the preconfiguration file (for squeeze)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
@yp2800
yp2800 / dnsmasq.conf
Created April 15, 2014 14:57
dnsmasq.conf
interface=vboxnet0
domain=jumeicd
dhcp-range=192.168.100.3,192.168.100.253,255.255.255.0,1h
dhcp-option=3,192.168.100.1
dhcp-option=6,192.168.100.1
dhcp-boot=pxelinux.0,pxeserver,192.168.100.2
pxe-service=x86PC, "Install Linux", pxelinux
enable-tftp
tftp-root=/srv/tftp
server=/jumei.com/192.168.21.2
@yp2800
yp2800 / stdin
Created April 14, 2014 08:13
stdin
telnet smtp.163.com 25 //登陆 smtp.163.com 端口号为 25
Trying 202.108.44.205...
Connected to smtp.163.com (202.108.44.205).
Escape character is '^]'.
220 163.com Coremail SMTP(Anti Spam) System
// 与服务器打招呼,并告知客户端使用的机器名字,可以随便填写
HELO localhost
250 OK
//使用身份认证登陆指令
AUTH LOGIN
@yp2800
yp2800 / sysctl.conf
Created February 13, 2014 03:07
sysctl.conf
/etc/sysctl.conf
kernel.ctrl-alt-del=1
kernel.sysrq=0
kernel.panic=10
kernel.core_pattern=/dev/null
kernel.shmmax=262324224
fs.file-max=128000
net.core.wmem_default=200100
net.core.rmem_default=200100
net.core.wmem_max=3202200