Skip to content

Instantly share code, notes, and snippets.

View machine.js
const fetchMachine = Machine({
id: 'fetch',
// Initial state
initial: 'idle',
// States
states: {
idle: {
on: {
View Cypress Debug Logs - Security Issue
DEBUG=cypress:* npm run cypress:open
> discovery-tooling@1.0.0 cypress:open /Users/nickmele/Development/discovery-tooling
> cypress open
cypress:cli cli starts with arguments ["/Users/nickmele/.nvm/versions/node/v10.16.3/bin/node","/Users/nickmele/Development/discovery-tooling/node_modules/.bin/cypress","open"] +0ms
cypress:cli NODE_OPTIONS=--max_old_space_size=4096 +0ms
cypress:cli program parsing arguments +4ms
cypress:cli opening Cypress +2ms
cypress:cli parsed cli options {} +141ms
View transparent-gif.js
// Two ways to serve transparent GIF
var buf = new Buffer([
0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00,
0x80, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x2c,
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x02,
0x02, 0x44, 0x01, 0x00, 0x3b]);
res.send(buf, { 'Content-Type': 'image/gif' }, 200);
View gist:00003d768bd964d31f30
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !git lg1
You can’t perform that action at this time.