lsof -P -iTCP -sTCP:LISTEN
sudo arp-scan 192.168.0.0/24
Easily parse an url with JavaScript :
var url = document.createElement('a');
url.href = 'http://www.mydomain.com/path?param=value'
and then we can access every properties of this element : http://www.w3schools.com/jsref/dom_obj_anchor.asp such as :
url.pathname //=>/path
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" | |
#Acer 0502 | |
#ASUS 0b05 | |
#Dell 413c | |
#Foxconn 0489 | |
#Fujitsu 04c5 | |
#Fujitsu Toshiba 04c5 | |
#Garmin-Asus 091e | |
#Google 18d1 |
//To run this example : node memoization.js | |
'use strict' | |
var start, result, end; | |
var fibo = function fibonacci(n) { | |
if (n < 2) { | |
return n; | |
} else { |
Kill an application/process on a non-rooted device :
adb shell run-as <package-name> kill <pid>
Copy the text document :
copy(document.getElementById('content').innerText)
After exporting an ipa for Ad Hoc Deployment, it could be useful to check if all authorized devices are well configured in a provisioning profile. To read a provisioning profile you have to unarchive your ipa :
$ unzip your.ipa
find the embedded.mobileprovision file :
$ ls yourUnzippedIpa/Payload/appName.app/embedded.mobileprovision
#!/usr/bin/env node | |
/* | |
* Disable bitcode for ios9 projects. | |
* versions: | |
* xcode 0.8.2 | |
* cordova-lib 5.3.3 | |
*/ | |
var xcode = require('xcode'); |