Изменение локальной ветки в git и пуш этой ветки в удаленный git-репозиторий
git branch -m new-branch
git push origin :old-branch new-branchhttps://blog.github.com/2019-01-07-new-year-new-github/
Самая главная полезность для простых разработчиков:
Самая главная полезность для простых разработчиков:
For the first time, developers can use GitHub for their private projects with up to three collaborators per repository for free
The GitHub Blog
New year, new GitHub: Announcing unlimited free private repos and unified Enterprise offering
Today we’re announcing two major updates to make GitHub more accessible to developers.
Вывод содержимого файла без комментариев и пустых строк
grep -v '^#\|^$' some_file
labbuildr allows on demand creation of lab environments on Vmware Workstation / Fusion
labbuildr deploys the folowing scenarios:
Exchange / Exchange DAG 2010,2013,2016
SQL / SQL Always on 2012,2014,2016
Hyper-V
Sharepoint
Standalone VM´s
Mastering ESXi Installs
Automating EMC ScaleIO Installs and any more.
labbuildr can be updated automatically.
labbuildr allows for fully customization of network environment vi a central configuration (labtools)
https://github.com/bottkars/labbuildr
labbuildr deploys the folowing scenarios:
Exchange / Exchange DAG 2010,2013,2016
SQL / SQL Always on 2012,2014,2016
Hyper-V
Sharepoint
Standalone VM´s
Mastering ESXi Installs
Automating EMC ScaleIO Installs and any more.
labbuildr can be updated automatically.
labbuildr allows for fully customization of network environment vi a central configuration (labtools)
https://github.com/bottkars/labbuildr
GitHub
GitHub - bottkars/labbuildr: labbuildr is an fully automated tool to deploy windows vm´s and emc va´s and solutions using powershell…
labbuildr is an fully automated tool to deploy windows vm´s and emc va´s and solutions using powershell on vmware workstation - GitHub - bottkars/labbuildr: labbuildr is an fully automated tool to ...
Docker-compose для балансировщика ggr с WebUI от selenoid:
version: '3'
services:
ggr:
image: "aerokube/ggr:1.6.3"
restart: always
network_mode: bridge
ports:
- "4444:4444"
volumes:
- "/etc/grid-router/:/etc/grid-router:ro"
command: ["-quotaDir", "/etc/grid-router/quota", "listen", ":4444"]
ggr-ui:
depends_on:
- ggr
image: "aerokube/ggr-ui:1.1.1"
restart: always
network_mode: bridge
links:
- ggr
ports:
- "8888:8888"
volumes:
- "/etc/grid-router/:/etc/grid-router:ro"
selenoid-ui:
restart: always
image: "aerokube/selenoid-ui:1.6.3"
network_mode: bridge
links:
- ggr-ui
ports:
- "8080:8080"
command: ["--selenoid-uri", "http://ggr-ui:8888"]
Unit file for ggr
[Unit]
Denoscription=Go Grid Router
Requires=docker.service
After=docker.service
[Service]
Restart=always
WorkingDirectory=/etc/aerokube/ggr
ExecStart=/usr/bin/docker-compose -f docker-compose.yml up
ExecStop=/usr/bin/docker-compose -f docker-compose.yml down
[Install]
WantedBy=multi-user.target
Огромное количество материалов по Linux, с разделением по уровню.
https://cloud.mail.ru/public/2Rh3/QRr9Hpt57/
До пенсии хватит (с) один DevOps-инженер
https://cloud.mail.ru/public/2Rh3/QRr9Hpt57/
До пенсии хватит (с) один DevOps-инженер
С пылу с жару вышла новая версия гитлаба
https://about.gitlab.com/2019/01/22/gitlab-11-7-released/
https://about.gitlab.com/2019/01/22/gitlab-11-7-released/
Есть некий процесс, работает от имени пользователя. Ему нужно читать лог. Например, такой:
Можно спокойно добавлять в группу adm, которая как раз для этого и предназначена:
https://wiki.archlinux.org/index.php/Users_and_groups_(Русский)
-rw-r----- 1 syslog adm 20635966 2019-01-22 16:37 mail.logВопрос - если этому процессу нужно предоставить возможность читать файл, то как это можно грамотно сделать?
Можно спокойно добавлять в группу adm, которая как раз для этого и предназначена:
adm: Group adm is used for system monitoring tasks. Members of this group can read many log files in /var/log, and can use xconsole. Historically, /var/log was /usr/adm (and later /var/adm), thus the name of the group.https://ubuntuforums.org/showthread.php?t=1318346
https://wiki.archlinux.org/index.php/Users_and_groups_(Русский)
ubuntuforums.org
[SOLVED] What is the "adm" group?
What is the "adm" group?
I see an "admin" group to which my admin user (1st created user) belongs, but I also see an "adm" group.
My non-admin users have only "adm". They do not have "admin."
What is the difference between "adm" and "admin"? …
I see an "admin" group to which my admin user (1st created user) belongs, but I also see an "adm" group.
My non-admin users have only "adm". They do not have "admin."
What is the difference between "adm" and "admin"? …
Forwarded from Sys-Admin InfoSec (sys_admin_poster_bot)
Кто пишет bash скрипты, многие, если не каждый использует или использовал date в своем скрипте, небольшой челледж на тему акутальности используемых дат в bash скриптах:
https://sys-adm.in/programming/814-aktualnye-daty-v-bash-skripte.html
https://sys-adm.in/programming/814-aktualnye-daty-v-bash-skripte.html
lab.sys-adm.in
Sys-Admin Laboratory
Open Sys-Admin BLD DNS - Focus on information for free with adblocking and implicit cybersecurity threat prevention.
Настройка прокси в Sublime Text 3
1) Вручную установить пакет "Package Contol"
по официальной документации.
2) Открыть настройки пользователя через Preferences-Setting и добавить туда следующие строчки:
1) Вручную установить пакет "Package Contol"
по официальной документации.
2) Открыть настройки пользователя через Preferences-Setting и добавить туда следующие строчки:
"http_proxy": "proxy.contoso.com:8080",3) Перезапустить Sublime Text 3
"https_proxy": "proxy.contoso.com:8080",
"proxy_password": "Pa$$w0rd",
"proxy_username": "contoso\\username",
Знак
Если в вашем crontab-файле есть команда, которая использует знак процента, то её необходимо экранировать, так как знак % заменяется утилитой cron на символы начала строки и вся функциональность ломается. Примеры экранирования:
Man-страничка:
p
% в crontabЕсли в вашем crontab-файле есть команда, которая использует знак процента, то её необходимо экранировать, так как знак % заменяется утилитой cron на символы начала строки и вся функциональность ломается. Примеры экранирования:
export TIMESTAMP=`date +\%H\%M\%S_\%d\%m\%y`/data/noscript_`date +\%y\%m\%d`.log 2>&1Man-страничка:
p
ercent-signs (%) in the command, unless escaped with backslash (\),
will be changed into newline characters, and all data after the
first % will be sent to the command as standard input.Pull git repo every ten minutes
Check timer
Check unit
systemd-run --on-calendar '*:0/10' /bin/sh -c "cd /app && git pull"
Running timer as unit run-8824.timer
Will run service as unit run-8824.serviceCheck timer
systemctl list-timers run-8824.timerCheck unit
systemctl list-units run-8824.timerTimestamp to history
If you define an environment variable for all users, it belongs in /etc/profile or /etc/environment. If you define an environment variable for your account, it belongs in ~/.environment or ~/.profile.
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
source ~/.bash_profileIf you define an environment variable for all users, it belongs in /etc/profile or /etc/environment. If you define an environment variable for your account, it belongs in ~/.environment or ~/.profile.