To change last commit date
GIT_COMMITTER_DATE="`date -R -v-3d`" git commit --amend --no-edit --date "`date -R -v-3d`" && git push
To change last commit date
GIT_COMMITTER_DATE="`date -R -v-3d`" git commit --amend --no-edit --date "`date -R -v-3d`" && git push
-- 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
const Test = (ms) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if(ms === 20) reject(new Error('Bad value')); | |
resolve('ok'); | |
}, ms); | |
}); | |
} | |
async function testUnhandled() { |
# Add PGP key to install mysql 5.7 from mysql repository | |
- name: Add PGP key | |
apt_key: | |
keyserver: hkp://pgp.mit.edu:80 | |
id: 5072E1F5 | |
- name: Add official APT repository | |
apt_repository: | |
repo: "deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7" |
/** | |
* @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 |