netstatsudo netstat -tunlp
-t - Show TCP ports.
-u - Show UDP ports.
-n - Show numerical addresses instead of resolving hosts.
-l - Show only listening ports.
-p - Show the PID and name of the listener’s process. This information is shown only if you run the command as root or sudo user.
sssudo ss -tunlp
ssis newnetstat. It lacks some of thenetstatfeatures but exposes more TCP states and it is slightly faster.
lsofsudo lsof -nP -iTCP -sTCP:LISTEN
# or
sudo lsof -i tcp:80 -n -P
lsofis a powerful command-line utility that provides information about files opened by processes.
-n - Do not convert port numbers to port names.
-p - Do not resolve hostnames, show numerical addresses.
-iTCP -sTCP:LISTEN - Show only network files with TCP state LISTEN.
import { h, app } from "hyperapp";
// State init
const initialState = {
counter: 0,
text: "yo!"
};
const ResetState = () => {
return {
...initialState
};
};
// Action example
const Increment = state => {
return {
...state,
counter: ++state.counter
};
};
// Component example
const LineSpace = () => h("div", { class: "line-space" });
// hyperapp init
app({
init: { ...initialState },
view: state => {
return h("div", {}, [
h("p", {}, `Now is ${state.counter}`),
LineSpace(),
h("button", { onClick: Increment }, "+"),
h("p", {}, ` text: ${state.text}`),
LineSpace(),
h("button", { onClick: ResetState }, "Reset")
]);
},
node: document.getElementById("app")
});
Security - the elephant in the room. Everyone agrees that it is very important but few takes it seriously. We at RisingStack want you to do it right - this is why we have put together this checklist to help you guide through the must have security checks before your application is enabled to thousands of users/customers.
NPM Packages: