a piece of Code for webpush on rails
This file contains hidden or 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
version: 0.2 | |
phases: | |
install: | |
commands: | |
- echo update npm... | |
- npm install -g n | |
- n latest | |
- npm update -g npm | |
- echo node -v |
This file contains hidden or 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
var JVN_API_URL = "http://jvndb.jvn.jp/myjvn"; | |
var CW_AUTH_TOKEN = "xxxxxx"; | |
var CW_ROOM_ID = "123456789"; | |
var CW_API_URL = "https://api.chatwork.com/v2/rooms/" + CW_ROOM_ID + "/messages"; | |
var SPREADSHEET_ID = 'xxxxxxxxxxxxxxxxxxx'; | |
function checkLatestVulnerabilityInformation() { | |
var products = getSheetData(SPREADSHEET_ID); | |
var res = fetchJVN(products); | |
var new_info = parseXML(res.getContentText()); |
This file contains hidden or 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
TABLE_NAME = 'devices'.freeze | |
SCAN_WORKERS = 1 # 1 ~ 32 | |
Aws.config.update({ | |
region: 'region', | |
credentials: Aws::Credentials.new('...', '...') | |
}) | |
client = Aws::DynamoDB::Client.new |