$ sudo vim /etc/ssh/sshd_config
TCPKeepAlive yes
ClientAliveInterval 30
ClientAliveCountMax 99999
Launchpad save db in
~/Library/Application Support/Dock/
Clear
sqlite3 ~/Library/Application\ Support/Dock/*.db 'DELETE FROM apps;' && killall Dock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coreos-vagrant is configured through a series of configuration | |
# options (global ruby variables) which are detailed below. To modify | |
# these options, first copy this file to "config.rb". Then simply | |
# uncomment the necessary lines, leaving the $, and replace everything | |
# after the equals sign.. | |
# Size of the CoreOS cluster created by Vagrant | |
#$num_instances=1 | |
# Official CoreOS channel from which updates should be downloaded |
# find usb dev
diskutil list
# unmount usb dev
diskutil unmountDisk /dev/disk<USB>
brew install pv
pv -petr ubuntu.iso | dd of=/dev/disk bs=1m
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
执行安装 brew install dnscrypt-proxy brew cask install dnscrypt
会卡在这里
==> Downloading http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.0
设定代理(使用 goagent) set http_proxy http://127.0.0.1:8087
(我用的 fish shell
), 然后, brew 会自动使用代理
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; An (imaginary) actor macro takes an initial state and callback fns. | |
;; (actor {} (fn1 [state message]) (fn2 [state message) ...) | |
;; The most obvious callback fn is (receive [state message) that is called when a | |
;; message is consumed from the agents mailbox. receive is called with the old state | |
;; and the message as parameters -- it returns the new state. | |
;; sender is bound to the senders pid. | |
;; other callbacks are stuff broken link detection etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; NASM 快速入门 | |
; 原文: http://www.ibm.com/developerworks/cn/linux/l-gas-nasm.html | |
; nasm: http://www.nasm.us/ | |
; Text segment, 是处理器开始执行代码的地方 | |
section .text | |
global _start ; 让一个符号对链接器可见 | |
; Program entry |