sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update && sudo apt-get install packetbeat
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
/* | |
* Join the elements in an javascript array, | |
* but let the last separator be different eg: `and` / `or` | |
* Stackoverflow link: http://stackoverflow.com/questions/15069587/is-there-a-way-to-join-the-elements-in-an-js-array-but-let-the-last-separator-b | |
* Credit: Chris Barr - http://stackoverflow.com/users/79677/chris-barr | |
*/ | |
function formatArray(arr){ | |
var outStr = ""; | |
if (arr.length === 1) { | |
outStr = arr[0]; |
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
# | |
# Install docker in amazon linux ec2 instance | |
# | |
### Docker | |
sudo amazon-linux-extras install docker -y | |
sudo yum install docker -y |
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
from urllib.request import urlopen | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
html = urlopen("http://localhost:8080") | |
soup = BeautifulSoup(html, "html.parser") | |
table = soup.find("table") | |
files = {'path': []} |
Credits:
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
sudo defaults write -g ApplePressAndHoldEnabled -bool false
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
const commandLineArgs = require("command-line-args"); | |
const commandArgs = commandLineArgs([ | |
{ | |
name: "check", | |
type: Boolean | |
}, | |
{ | |
name: "export", | |
type: Boolean |
autonumber
Title: ATM Flow
_: ** Withdraw cash **
USER -> ATM: Insert card
ATM -> BANK: Verify card
NewerOlder