If you wants to add a delay between two promise:
/**
* @description Add delay (ms) between promises
* @param delay
* @return {Promise}
*/
wait(delay) {
wait(delay) {
-- To dump your database with your positions | |
mysqldump --hex-blob --routines --triggers -uroot database -r dump-with-data.sql |
If you wants to add a delay between two promise:
/**
* @description Add delay (ms) between promises
* @param delay
* @return {Promise}
*/
wait(delay) {
wait(delay) {
[!] 34 vulnerabilities identified from the version number | |
[!] Title: WordPress 4.2-4.5.1 - MediaElement.js Reflected Cross-Site Scripting (XSS) | |
Reference: https://wpvulndb.com/vulnerabilities/8488 | |
Reference: https://wordpress.org/news/2016/05/wordpress-4-5-2/ | |
Reference: https://github.com/WordPress/WordPress/commit/a493dc0ab5819c8b831173185f1334b7c3e02e36 | |
Reference: https://gist.github.com/cure53/df34ea68c26441f3ae98f821ba1feb9c | |
Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4567 | |
[i] Fixed in: 4.5.2 |
git branch | grep -v "master" | xargs git branch -D
patch-package | |
--- a/node_modules/react-native-maps/index.js | |
+++ b/node_modules/react-native-maps/index.js | |
@@ -1,4 +1,4 @@ | |
-import MapView from './lib/components/MapView'; | |
+import MapView from './lib/components/MapView'; | |
export { default as Marker } from './lib/components/MapMarker.js'; | |
export { default as Polyline } from './lib/components/MapPolyline.js'; | |
@@ -9,7 +9,9 @@ export { default as LocalTile } from './lib/components/MapLocalTile.js'; |
/code Chrome 35.0.1916.153 on OS X 10.9.3 | |
`_(...)` with a number: | |
lodash.min x 39,094,087 ops/sec ±1.75% (67 runs sampled) | |
underscore-min x 16,916,505 ops/sec ±1.78% (83 runs sampled) | |
lodash.min is 131% faster. | |
`_(...)` with an array: | |
lodash.min x 51,700,639 ops/sec ±4.95% (82 runs sampled) | |
underscore-min x 13,862,501 ops/sec ±0.55% (83 runs sampled) |
const Test = (ms) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if(ms === 20) reject(new Error('Bad value')); | |
resolve('ok'); | |
}, ms); | |
}); | |
} | |
async function testUnhandled() { |
/** | |
* @description Returns current route name. | |
* @param routes | |
* @returns {string} | |
*/ | |
getRouteNameFromNavigatorState ({ routes }) { | |
let route = routes[routes.length - 1]; | |
while (route.index !== undefined) route = route.routes[route.index]; | |
return route.routeName; | |
} |
#!/bin/sh | |
# Install common and docker | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" | |
apt-get update && apt-get install -y docker-ce=$(apt-cache madison docker-ce | grep 17.03 | head -1 | awk '{print $3}') | |
# Install kubelet, kubeadm kubectl |