git clone clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
[color]
| #!/usr/bin/env bash | |
| # reflog: Pretty format `git reflog show` with optional flag options for refining reflog output | |
| reflog () { | |
| if [[ ! "$(git rev-parse --is-inside-work-tree)" ]] 2>/dev/null; then | |
| echo "fatal: Not a git repository (or any of the parent directories): .git" | |
| return 1 | |
| fi | |
| # decorated `git reflog show` graph format style |
| sudo su - | |
| cd / | |
| #tar -cpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/tmp --exclude=/mnt --exclude=/dev --exclude=/sys / | |
| #scp user@server-uri:path_to_file/backup.tar.gz . | |
| tar zcvf --exclude=/proc --exclude=/tmp --exclude=/mnt --exclude=/dev --exclude=/sys --exclude=/srv - / | ssh $1@$2 "cat > /home/$1/frontdev.tar.gz" | |
| echo 'cat /home/$1/frontdev.tar.gz | docker import - frontdev:v1.0' | |
| echo 'docker run -t -i frontdev:v1.0 /bin/bash' |
| <q-btn v-if="$q.platform.is.desktop" dense @click="fnMinimizeWindow" icon="expand_more" /> | |
| <q-btn v-if="$q.platform.is.desktop" dense @click="fnMaximizeWindow" :icon="m_bWindowIsMaximized ? 'unfold_more' : 'expand_less'" /> | |
| <q-btn v-if="$q.platform.is.desktop" dense @click="fnCloseWindow" icon="close" /> | |
| /* ... */ | |
| computed: { | |
| bWindowIsMaximized: { | |
| set(bValue) { | |
| if (process.env.MODE === 'electron') { |
| <?php | |
| if (defined('DA_FLAG')) { | |
| return 'defined DA_FLAG'; | |
| } | |
| // [!] Все пути должны быть без / на конце | |
| define('DA_ROOT_DIR', __DIR__); | |
| define('DA_LOGS_DIR', DA_ROOT_DIR."/logs"); | |
| define('DA_FLAG_FILE', DA_LOGS_DIR."/dws_debugger.flag"); |
| PORT=8000 | |
| PID_FILE=/etc/httpd/run/httpd1.pid |
| // const WebSocket = require('ws'); | |
| export class DockerWS | |
| { | |
| oWebSocket = null | |
| bConnected = false | |
| oResultsGroupedByMethods = {} | |
| oCallbacksGroupedByMethods = {} |
| function find_git_branch() | |
| { | |
| local branch | |
| if branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null); then | |
| if [[ "$branch" == "HEAD" ]]; then | |
| branch='detached*' | |
| fi | |
| git_branch="($branch)" | |
| else | |
| git_branch="" |
| apt update | |
| apt upgrade | |
| apt install build-essential | |
| apt install pkg-config | |
| apt install libnet-dev python-yaml libaio-dev | |
| apt install libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler protobuf-compiler python-protobuf libnl-3-dev libcap-dev python-future | |
| # criu install | |
| curl -O -sSL http://download.openvz.org/criu/criu-3.10.tar.bz2 | |
| tar xjf criu-3.10.tar.bz2 |