package com.netcracker.dstud.servicepackage.service.specification;
import java.util.concurrent.*;
import java.util.function.*;
public class M
{
public static void main(String[] args)
{
This file contains hidden or 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
| function downloadFile(url) { | |
| var loaded = $.Deferred(); | |
| var request = new XMLHttpRequest(); | |
| request.open('GET', url); | |
| // ! setting the responseType has to be after the `request.open` | |
| // `arraybuffer` is necessary for Internet Explorer and Edge becuase | |
| // they do not support `blob` as response type | |
| request.responseType = "arraybuffer"; | |
| request.onload = function() { |
This file contains hidden or 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
| git config --global pull.rebase preserve |
This file contains hidden or 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
| for num in {1..3}; do | |
| mkdir "$num" | |
| cd "$num" | |
| git clone "https://aaa.git" . | |
| cd ".." | |
| done |
This file contains hidden or 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
| https://www.rust-lang.org/tools/install | |
| https://stackoverflow.com/questions/47379214/step-by-step-instruction-to-install-rust-and-cargo-for-mingw-with-msys2 | |
| 1) rustup-init.exe | |
| 2) customize installation -> Default host triple? x86_64-pc-windows-gnu | |
| or | |
| 2) default installation and then `rustup toolchain install stable-x86_64-pc-windows-gnu && rustup default stable-x86_64-pc-windows-gnu` | |
| https://github.com/rust-lang/rls (rust language server) | |
| 3) `rustup update && rustup component add rls rust-analysis rust-src` |
This file contains hidden or 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
| #add separate repo list and update | |
| RUN sudo touch /etc/apt/sources.list.d/myrepo.list | |
| RUN sudo /bin/bash -c 'echo "deb http://myrepo.corp/deb/ubuntu $(lsb_release -cs) main" >> /etc/apt/sources.list.d/myrepo.list' | |
| RUN sudo /bin/bash -c 'echo "# deb-src myrepo.corp/deb/ubuntu $(lsb_release -cs) main" >> /etc/apt/sources.list.d/myrepo.list' | |
| RUN sudo apt-get update -y -o Dir::Etc::sourcelist="sources.list.d/myrepo.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" || true | |
| #add to global repos list | |
| deb http://myrepo.corp/deb/ubuntu $(lsb_release -cs) main |
This file contains hidden or 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
| ps -auxww | grep -i 6800 поиск pid | |
| jcmd <pid> GC.run вызов GC | |
| jmap -dump:live,format=b,file=filename <pid> Сохранение дампа |
This file contains hidden or 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
| #remove all containers | |
| docker rm -f $(docker ps -a -q) | |
| #al images | |
| docker rmi -f $(docker images -q) | |
| #remove all containers / images / volumes - dangling (not associated with a container) | |
| docker system prune | |
| #remove all |
This file contains hidden or 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
| import resolve from 'rollup-plugin-node-resolve'; | |
| import commonjs from 'rollup-plugin-commonjs'; | |
| export default { | |
| input: 'index.js', | |
| output: { | |
| file: 'dist/pretty-ms-5.0.0.js', | |
| format: 'umd', | |
| name: 'prettyMilliseconds', | |
| }, |