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
# Monitoring on interface eth0 | |
tcpdump -i eth0 -n port 67 and port 68 |
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
aws --endpoint-url=http://localhost:4569 dynamodb create-table \ | |
--table-name MusicCollection \ | |
--attribute-definitions \ | |
AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S \ | |
--key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ | |
--provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 \ | |
--stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE | |
{ |
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
dynamodb.deleteTable({ | |
TableName: 'record' | |
}) | |
dynamodb.createTable({ | |
TableName: 'record', | |
AttributeDefinitions: [ | |
{ AttributeName: 'name', AttributeType: 'S' }, | |
{ AttributeName: 'part', AttributeType: 'N' } |
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
dynamodb.deleteTable({ | |
TableName: 'record' | |
}) | |
dynamodb.createTable({ | |
TableName: 'record', | |
AttributeDefinitions: [ | |
{ AttributeName: 'name', AttributeType: 'S' }, | |
{ AttributeName: 'part', AttributeType: 'N' } |
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
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
*/ | |
function getTitle() { | |
var re = /^Humble.*Bundle\:\ (.*)\ \(/g; | |
return re.exec(document.title)[1]; | |
} |
OlderNewer