Skip to content

Instantly share code, notes, and snippets.

Stelian Ionescu sionescu

Block or report user

Report or block sionescu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am sionescu on github.
  • I am sionescu (https://keybase.io/sionescu) on keybase.
  • I have a public key whose fingerprint is 0EFE CC47 C152 7B0A 8E11 E8C8 8D6B 0447 CFBD 0125

To claim this, I am signing this object:

@sionescu
sionescu / .gitconfig
Created Dec 11, 2014
GIT configuration
View .gitconfig
[branch]
autosetupmerge = true
autosetuprebase = remote
[color]
ui = auto
[alias]
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
rlog = log --pretty=format:'%h %Cblue%cr%Creset %cn %Cgreen%s%Creset'
find = log --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
up = pull --rebase --stat
View gist:68f13b7d44d5da391da8
$ git remote add pr git@github.com:sbcl/sbcl.git
$ git config remote.pr.fetch '+refs/pull/*/head:refs/remotes/pr/*'
$ git checkout master
$ git fetch pr
$ git log ..pr/7
$ git merge --no-ff pr/7
@sionescu
sionescu / gist:4db00e20b751af7e9509
Created Dec 31, 2014
MSG_WAITALL and SO_RCVLOWAT
View gist:4db00e20b751af7e9509
The usual behaviour of blocking recvfrom(2) is to
1) wait until the kernel buffer contains at least SO_RCVLOWAT(receive
low water) octets(default 1) or the socket is closed
2) copy the data from the kernel buffer to the userspace buffer,
possibly returning a short read even if the socket is not closed
MSG_WAITALL turns that into
1) wait until the kernel buffer contains a number of octets larger than
or equal to the size of the userspace buffer, or the socket is closed
2) copy the data from the kernel buffer to the userspace buffer; a short
You can’t perform that action at this time.