This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let getReleaseTag = () => { | |
let url = document.URL; | |
const delim = '/releases/tag/'; | |
if (url.includes(delim)) { | |
return url.split(delim)[1]; | |
} | |
}; | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.onreadystatechange = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gist: c5f0a118fa07d7be2af85f1b266bff7f | |
# Url: https://git.io/fhjE8 | |
# | |
# phpStorm – Improved Cache (ICache) | |
# | |
# Move the phpStorm cache to RAM while it is in running. All the cache will be synchronized when phpStorm will be closed. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof_rsync() { | |
export source_path=$1 | |
local dest_path=$2 | |
find $source_path -type f -exec bash -c \ | |
'full_path=$(sed "s,\\\,,g" <<< $(readlink -f "{}")); if ! lsof "$full_path" > /dev/null; then tmp="{}"; echo ${tmp#$source_path}; fi' \; | \ | |
tr '\n' '\0' | \ | |
rsync -avuq --delete --from0 --files-from=- $source_path $dest_path | |
} |