Install the following requirements:
brew info zeromq
npm install zmq
npm install socket.io
gem install ffi-rzmq
Within the app directory run the following commands in different panes.
ruby worker.rb
Install the following requirements:
brew info zeromq
npm install zmq
npm install socket.io
gem install ffi-rzmq
Within the app directory run the following commands in different panes.
ruby worker.rb
| # Outbound UDP Flood protection in a user defined chain. | |
| iptables -N udp-flood | |
| iptables -A OUTPUT -p udp -j udp-flood | |
| iptables -A udp-flood -p udp -m limit --limit 50/s -j RETURN | |
| iptables -A udp-flood -j LOG --log-level 4 --log-prefix 'UDP-flood attempt: ' | |
| iptables -A udp-flood -j DROP |
| using System; | |
| using System.Collections.Generic; | |
| using System.Drawing; | |
| using System.Globalization; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| namespace Spy | |
| { |
| #!/bin/bash | |
| # | |
| # -------------------------------------------------------------------- | |
| # This is a free shell script under GNU GPL version 3.0 or above | |
| # Copyright (C) 2005 ReFlectiv project. | |
| # Feedback/comment/suggestions : http://www.reflectiv.net/ | |
| # ------------------------------------------------------------------------- | |
| # | |
| # This script automatically set up a new *Debian* server (IMPORTANT : Debian!), by doing these actions : | |
| # |
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
| import numpy as np | |
| from collections import defaultdict as _dd | |
| def rolling_window(array, window=(0,), asteps=None, wsteps=None, axes=None, toend=True): | |
| """Create a view of `array` which for every point gives the n-dimensional | |
| neighbourhood of size window. New dimensions are added at the end of | |
| `array` or after the corresponding original dimension. | |
| Parameters | |
| ---------- |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs