- add to
/etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/edge/testing - apk add --update perf
- add to task def
privileged:true
- add to task def
command:[node, --perf-basic-prof, server.js]
- do these steps to record kernel level profile - https://developers.redhat.com/blog/2017/09/11/profiling-nodejs-applications-with-linux-performance-tools/
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
find /home/ -type f -size +64M -exec ls -lh {} \; |
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
class ManualSignaling { | |
send(msg) { | |
console.log(serializeMsg(msg)); | |
} | |
receive(msgString) { | |
const msg = deserializeMsg(msgString); | |
if (msg.type === 'offer') this.onReceiveOffer(msg); | |
if (msg.type === 'answer') this.onReceiveAnswer(msg); |
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
ulimit -n 40000 | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script src="index.js"></script> | |
</head> |
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
import React, { Component } from 'react'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
counter: { num: 1 } | |
}; | |
} |
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
# remove exited containers | |
adocker rm -f $(adocker ps -f status=exited -q | tr '\r\n' ' ') | |
# remove dangling images | |
adocker rmi $(adocker images -q -f dangling=true | tr '\r\n' ' ') | |
# remove dangling volumes | |
adocker volume ls -qf dangling=true | xargs adocker volume rm |
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
azk status --text | tr -s ' ' | cut -d ' ' -f 2 | sed -n '1!p' | while read -r line ; do | |
azk start $line | |
done |
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
/* | |
* CocoonJSAudioPlugin | |
* Visit http://createjs.com/ for documentation, updates and examples. | |
* | |
* | |
* Copyright (c) 2012 gskinner.com, inc. | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without |