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
void* ctx = zmq_ctx_new(); | |
void* client = zmq_socket(ctx, ZMQ_CLIENT); | |
// creating new pollfd, pollfd is per thread. | |
void* pollfd = zmq_pollfd_new(); | |
// associate pollfd with client, you can associate multiple pollfd with one socket for multi threading | |
zmq_add_pollfd(client, pollfd); | |
zmq_pollitem_t items[] { |
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
ifeq ($(KBUILD_SRC),) | |
ifeq ("$(origin O)", "command line") | |
KBUILD_OUTPUT := $(O) | |
endif | |
ifneq ($(KBUILD_OUTPUT),) | |
$(filter-out submake $(CURDIR)/Makefile, $(MAKECMDGOALS)): sub-make | |
@: | |
sub-make: |
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
//Custom configuration | |
atom-text-editor { | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
font-family: "Operator Mono"; | |
font-size: 16px; | |
font-weight: 500; | |
line-height: 1.5; | |
} |
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
#!/bin/sh | |
# First install homebrew and cask | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install cask brew-cask | |
# Applications | |
brew cask install 1password | |
brew cask install anvil | |
brew cask install atom |
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
Wow. I've now read the whole book and much of the supporting code. I'm not a fan, and recommend against relying on it. Here's a laundry list of concerns: | |
* The teaching method the book uses is badly flawed. The book's strategy is to start simple and build to complexity, which makes sense if you're teaching algebra but not if you're teaching heart surgery. The result is that each chapter culminates with the implementation of a system that is grievously insecure. Little warning is given of this, apart from allusions to future chapters improving the system. For instance, Chapter 2 closes with a chat system that uses AES-CBC without an authenticator. | |
* The book is full of idiosyncratic recommendations. For instance, AES-CBC requires a padding scheme. There is a standard padding scheme. The book purports to present it, but instead of PKCS7, it presents 80h+00h..00h. | |
* At one point about 1/3rd of the way through the book, it suggests using a SHA256 hash of the plaintext as an authenticator for a message. This r |
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
Name Description | |
Peter Norvig Director of Research at Google and author of the standard text on AI. | |
Alan Kay Inventor of Smalltalk. Coined the term "object-oriented programming". | |
Guy Steele Co-inventor of Scheme and part of the Common Lisp Gang of Five. Currently working on Fortress. | |
Donald Knuth Author of The Art of Computer Programming and TeX | |
Gerald Jay Sussman Co-creator of Scheme and co-author of The Structure And Interpretation of Computer Programs. | |
John McCarthy Invented Lisp | |
John Carmack Founder of id Software; lead programmer of Doom, Quake, and others. | |
Dennis Ritchie Invented C and contributed to development of UNIX | |
Joe Armstrong Inventor of Erlang |
export MACOS_UNIVERSAL=no
pip install capstone # or something depends on capstone
Refer to this issue: capstone-engine/capstone#1235
- Install Package Resource Viewer.
- In package control window select ‘Package Resource Viewer: Open Resource’.
- Scroll down until you find the option: ‘Color Scheme — Default’ (or your theme with color scheme .tmTheme) and select it.
- Add the following
<!-- Operator Tweaks -->
<dict>
<key>name</key>
Italic HTML attribute names
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include "config.h" | |
#include "test.h" | |
#if HAVE_OPENSSL_SHA_H |
OlderNewer