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 / 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"
@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 / permissions.txt
Created October 9, 2016 19:05 — forked from Arinerron/permissions.txt
A list of all Android permissions...
android.permission.ACCESS_ALL_DOWNLOADS
android.permission.ACCESS_BLUETOOTH_SHARE
android.permission.ACCESS_CACHE_FILESYSTEM
android.permission.ACCESS_CHECKIN_PROPERTIES
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY
android.permission.ACCESS_DOWNLOAD_MANAGER
android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED
android.permission.ACCESS_DRM_CERTIFICATES
android.permission.ACCESS_EPHEMERAL_APPS
android.permission.ACCESS_FM_RADIO
@alvarlaigna
alvarlaigna / keybase.md
Created June 20, 2016 11:35
keybase.md

Keybase proof

I hereby claim:

  • I am alvarlaigna on github.
  • I am alvar (https://keybase.io/alvar) on keybase.
  • I have a public key whose fingerprint is A04F 0154 51A7 AC12 ED96 9031 C448 347B 4008 34F9

To claim this, I am signing this object:

// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
echo "Don't naively execute this file as a shell script. I didn't add error-handling"
echo "or anything like that. Execute all the commands by hand at the command line."
echo
echo "FIXME: this process is currently broken, see note in source code below."
exit 1
# In testing, we don't need to mess with unstable kernels any longer; 3.10 is in testing.
# That 3.10 kernel from testing has also been backported to wheezy; in wheezy-backports.
#
# This should mean debian stable (+backports) has everything you need to run docker,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {