I hereby claim:
- I am luveti on github.
- I am luveti (https://keybase.io/luveti) on keybase.
- I have a public key ASCtbuo8FQmua9-EpsNf8gFCs-o__8WEeMRejJjwWlEbpAo
To claim this, I am signing this object:
#!/usr/bin/env node | |
const fs = require('fs') | |
const path = require('path') | |
async function walkSync(rootDir) { | |
function readdir(path) { | |
return new Promise((resolve, reject) => { | |
fs.readdir(path, (err, files) => err ? reject(err) : resolve(files)) | |
}) |
async function walkSync(rootDir) { | |
const fs = require('fs') | |
const path = require('path') | |
function readdir(path) { | |
return new Promise((resolve, reject) => { | |
fs.readdir(path, (err, files) => err ? reject(err) : resolve(files)) | |
}) | |
} |
I hereby claim:
To claim this, I am signing this object:
function promisifyAll(module, callbackParameterName) { | |
const util = require('util') | |
function isFunction(f) { | |
return f && Object.prototype.toString.call(f) === '[object Function]' | |
} | |
if (!callbackParameterName) callbackParameterName = 'callback' | |
Object.keys(module) |
function installDeps(deps, quiet, cb) { | |
const hash = require('crypto').createHash('md5').update(__filename).digest('hex') | |
const dir = require('os').tmpdir() + require('path').sep + hash | |
try { | |
require('fs').mkdirSync(dir) | |
if (!quiet) console.log(`Created temp folder at "${dir}"`) | |
} catch (e) {} | |
try { | |
require('fs').writeFileSync(dir + require('path').sep + 'package.json', JSON.stringify({ | |
name: hash, description: hash, author: hash, repository: hash, license: "ISC", |
#!/usr/bin/env node | |
const path = require("path") | |
const fs = require("fs") | |
// https://gist.github.com/luveti/67a1c93be3d58b085f6c76ae876c556c | |
function installDeps(deps, quiet, cb) { | |
const hash = require('crypto').createHash('md5').update(__filename).digest('hex') | |
const dir = require('os').tmpdir() + require('path').sep + hash | |
try { |
function require (urls, cb) { | |
if (!Array.isArray(urls) && typeof urls === 'string') urls = [urls]; | |
var modules = []; | |
var i = 0, next = function () { | |
fetch(urls[i]) | |
.then(function (response) { | |
return response.text(); | |
}) | |
.then(function (code) { | |
try { |
" luveti - vimrc - 9/8/16 | |
" these 4 lines are required by Vundle | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" list our plugins, Vundle needs to be the first one | |
Plugin 'VundleVim/Vundle.vim' |
# list all packages | |
adb -dshell pm list packages | |
# get full apk path | |
adb -d shell pm path <package name> | |
# pull it | |
adb pull <path to apk> <local path> |
#! /bin/bash | |
find "$1" -type f -name "*.$2" -printf "%s\t%p\n" | sort -n -r | tail -1; | |
find "$1" -type f -name "*.$2" -printf "%s\t%p\n" | sort -n | tail -1; |