Set up project:
mkdir project
cd project
npm init -yA curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| #list all ports for tcp | |
| sudo lsof -itcp | |
| #find all things listening on ports | |
| lsof -Pnl +M -i4 | grep LISTEN | |
| #all ports for tcp, dont resolve port name from numbers | |
| sudo lsof -itcp -P | |
| #open files and ports of process #$PID |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| const heapdump = require('heapdump') | |
| const app = require('koa')() | |
| const router = require('koa-router')() | |
| const log = []; | |
| router.get('/', function *(next) { | |
| log.push(this.headers) | |
| this.body = { | |
| status: 'finding a leak' |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| var fs = require('fs'), | |
| omggif = require('omggif'), | |
| THREE = require('three'), | |
| SoftwareRenderer = require('three-software-renderer'); | |
| // How many frames and how large shall the GIF be? | |
| var NUM_FRAMES = 200, WIDTH = 500, HEIGHT = 500; | |
| // Our scene, camera and renderer and a box to render | |
| var scene = new THREE.Scene(), |
| #!/bin/bash | |
| usage() { | |
| echo "git-merge-point <commitid>" | |
| exit 1 | |
| } | |
| [ -n "$1" ] || usage | |
| # Make sure we are in a git directory | |
| git rev-parse --is-inside-work-tree >&- || exit $? |