Skip to content

Instantly share code, notes, and snippets.

@mohsenil85
mohsenil85 / .zshrc
Last active January 5, 2021 19:27 — forked from scottstanfield/.zshrc
my
# wget https://gist.githubusercontent.com/mohsenil85/ee6d8e1a7eae0daaece638d872fbfae6/raw/ -O ~/.zshrc
# taken from: https://www.codyhiar.com/blog/zsh-autocomplete-with-ssh-config-file/
# Better SSH/Rsync/SCP Autocomplete
zstyle ':completion:*:(scp|rsync):*' tag-order ' hosts:-ipaddr:ip\ address hosts:-host:host files'
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost ip6-localhost broadcasthost
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'
autoload -Uz compinit && compinit -i

Keybase proof

I hereby claim:

  • I am mohsenil85 on github.
  • I am lmohseni (https://keybase.io/lmohseni) on keybase.
  • I have a public key ASDKIA9ZawcUf2RmTG2s0mHKs1asIVnlXH7TIZ_cEmFaxAo

To claim this, I am signing this object:

@mohsenil85
mohsenil85 / cl-tcpip.lisp
Last active September 19, 2015 15:43 — forked from shortsightedsid/cl-tcpip.lisp
Short guide to TCP/IP Client/Server programming in Common Lisp using usockets
; Short guide to TCP/IP Client/Server programming in Common Lisp using usockets
;
; The main reason for this guide is because there are very few examples that
; explain how to get started with socket programming with Common Lisp that I
; could understand. After spending a day trying, I finally came up with a small
; bit of code that makes it easy to understand the basics. I've written this
; primarily for myself, but should help others get started as well.
; As usual, we will use quicklisp to load usocket.