Skip to content

Instantly share code, notes, and snippets.

View alvarlaigna's full-sized avatar
👋
Take Control. Dream & Make It Happen.

Alvar Laigna alvarlaigna

👋
Take Control. Dream & Make It Happen.
View GitHub Profile
@alvarlaigna
alvarlaigna / function_invocation.js
Created April 7, 2017 15:57 — forked from myshov/function_invocation.js
11 Ways to Invoke a Function
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);
@alvarlaigna
alvarlaigna / s3fs.sh
Created March 28, 2019 07:27 — forked from joohee/s3fs.sh
s3fs mount/umount
#!/bin/sh
echo "mount"
echo "s3fs [bucketname] [directory] -ouse_cache=/tmp -o allow_other"
echo "unmount"
echo "fusermount -u [directory]"
#echo "pkill -9 -f s3fs"