IT Area
четверг, 25 марта 2021 г.
понедельник, 22 марта 2021 г.
понедельник, 1 февраля 2021 г.
суббота, 28 ноября 2020 г.
BluePrism AutmateC.exe PowerShell Automation
Load the Queues
$automatec = "C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe"
& $automatec /sso /startschedule /schedule "03.01 - Load AUH SCAL Queue" #577
& $automatec /sso /startschedule /schedule "03.03 - Load PDR SCAL Queue" #575
& $automatec /sso /startschedule /schedule "03.04 - Load PDR NCAL Queue" #574
& $automatec /sso /startschedule /schedule "03.05 - Load AUH NW Queue" #563
& $automatec /sso /startschedule /schedule "03.06 - Load PDR GA Queue" #570
Gitlab ECR Credentials Helper - Settings on Runner
vi /etc/gitlab-runner/config.toml
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "EC2_i-034aeb1a7a49cda81"
url = "https://gitlab-sfo.dolby.net/"
token = "4EnhzuihzRrszK_y"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
Type = "s3"
Shared = true
[runners.cache.s3]
BucketName = "domain.build-agent.cache"
BucketLocation = "us-west-2"
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "alpine"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/root/.docker/config.json:/root/.docker/config.json", "/usr/bin/docker-credential-ecr-login:/usr/bin/docker-credential-ecr-login", "/cache"]
shm_size = 0
vi /root/.docker/config.json
"credHelpers":{"83678232.dkr.ecr.us-east-1.amazonaws.com":"ecr-login","8713175.dkr.ecr.us-west-2.amazonaws.com":"ecr-login", "8124058.dkr.ecr.us-west-1.amazonaws.com":"ecr-login"}}
воскресенье, 15 ноября 2020 г.
DevOps MacOS Setup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
Setup SSH Key on RepoHub
ssh-keygen -t rsa -b 4096
pbcopy < ~/.ssh/id_rsa.pub
- go to RepoHub settings > ssh keys and add paste the public part of the key
Docker
with homebrew
https://medium.com/crowdbotics/a-complete-one-by-one-guide-to-install-docker-on-your-mac-os-using-homebrew-e818eb4cfc3
brew tap weaveworks/tap
brew install weaveworks/tap/eksctl
kubectl
brew install kubectlhttps://coreos.com/blog/kubectl-tips-and-tricks
суббота, 4 января 2020 г.
Recover Credentials from Jenkins
- Find the name of the Credential:
- Jenkins > Credentials
- Find the hash of the Credential:
- cat /etc/jenkins/home/credentials.xml
- Decrypt the hash in Jenkins:
- Go to Jenkins > Manage Jenkins > Script Console
- Execute println(hudson.util.Secret.decrypt("{YOUR_HASH}"))
воскресенье, 15 декабря 2019 г.
Multiple GitHub repositories with different ssh keys
To setup multiple directories with different ssh keys you'll need:
1. Create your keys (2 different):
ssh-keygen -t rsa -b 4096 -C "my_work_email@my_company.com"2. Add your public keys in github repositories respectively - GitHubHelpSSHkeys
3. Make your ~/.ssh/config file look similar:
# Personal GitHub account
Host github.com-personal
HostName github.com
User git
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/personal_rsa
воскресенье, 20 октября 2019 г.
Enable ssh (passwordless authentication) Linux
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh root@10.60.40.112 \
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh root@10.60.40.113 \
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh root@10.60.40.114 \
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh root@10.60.40.115 \
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh root@10.60.40.116 \
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh root@10.60.40.117
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
среда, 11 сентября 2019 г.
Git Cheat Sheet
SETUP
Configuring user information used across all local repositories
git config --global user.name “[firstname lastname]”
set a name that is identifiable for credit when review version history
git config --global user.email “[valid-email]”
set an email address that will be associated with each history marker
git config --global color.ui auto
set automatic command line coloring for Git for easy reviewing
SETUP & INIT
Configuring user information, initializing and cloning repositories
понедельник, 22 июля 2019 г.
Kubernetes - Delete CNI plugin
Weave
kubectl delete -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
rm /opt/cni/bin/weave-*
kubectl delete -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
среда, 19 июня 2019 г.
Kurbernetes - Get the Join Command
sudo kubeadm token generate
sudo kubeadm token list
sudo kubeadm token create [token_name] --ttl 2h --print-join-command
Or...понедельник, 10 июня 2019 г.
VMware VCSA Troubleshooting
Check if the service responds on port
telnet vcenter_fqdn 9443
Set new password for vcsa
/usr/lib/vmware-vmdir/bin/vdcadmintool
Set the new password to inventory service
/opt/likewise/bin/lwregshell
cd HKEY_THIS_MACHINE\services\vmdir\
set_value dcAccountPassword "new password"
quit
Restart all services
service-control --start --all
воскресенье, 2 июня 2019 г.
Как подготовиться к экзамену AWS Certified Solution Architect - Associate ?
1. Пройти курс на Linux Academy или aCloud.ru
- люди говорят, что cloudguru лучше под сдачу экзамена заточен...
2. Пройти не только теорию, но и практические лабораторные в пункте 1
3. Выучить лимиты и "полезные табилцы"
-
- Cram карточки https://www.cram.com/flashcards/aws-10741536
очень удобно на телефоне их решать.
4. Найти хорошие тесты, для практики.
Мне посоветовали этие. И я очень доволен.
https://www.udemy.com/DOJO
https://www.udemy.com/SkillCertPro
пятница, 26 апреля 2019 г.
Install Jenkins CentOS 7.6
Install Jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum -y install jenkins
yum -y install java-1.8.0-openjdk
systemctl enable jenkins
systemctl start jenkins
yum -y install setroubleshoot-server selinux-policy-devel
sepolicy network -t http_port_t
semanage port -m -t http_port_t -p tcp 8080
Nginx Reverse Proxy config
Configure Jenkins
Jenkins User
cat /etc/passwd |grep jenkins
jenkins:x:998:996:Jenkins Automation Server:/var/lib/jenkins:/bin/false
change false to bash
vi /etc/passwd
jenkins:x:998:996:Jenkins Automation Server:/var/lib/jenkins:/bin/bash
set a password for jenkins
passwd jenkins
<enter your password>
su - jenkins
ssh-keygen
ssh-copy-id jenkins@localhost
visudo
after
root ALL=(ALL) ALL
add
jenkins ALL=(ALL) NOPASSWD: ALL
среда, 24 апреля 2019 г.
Docker LA
воскресенье, 14 апреля 2019 г.
понедельник, 18 марта 2019 г.
UniFi Controller Setup for Ubiquiti Access Points
Install UniFi controller
Setup you Access Point

Reset to Factory Defaults
воскресенье, 10 марта 2019 г.
Install Docker on Ubuntu/Debian
#apt-get install apt-transport-https ca=certificates curl software-properties-common
Configure repository
#curl -fsSL https://download.docker./com/linux/ubuntu/gpg | sudo apt-key add -
#sudo add-apt-repository "deb {arch+amd64} https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
#apt-get update
Install Docker
#apt-get install docker-ce
пятница, 8 марта 2019 г.
Get a Dockerfile from an Image
воскресенье, 3 марта 2019 г.
Install Docker Compose
yum -y install python-pip
pip install --upgrade-pip
pip install --upgrade pip
pip install docker-compose
воскресенье, 24 февраля 2019 г.
Docker installation CentOS 7
yum -y install yum-utils lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y update
yum -y install docker-ce
Error on Registry Deployment (IPtables):
docker run -d -p 5000:5000 -v /root/certs:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/dockerrepo.crt -e REGISTRY_HTTP_TLS_KEY=/cert/dockerrepo.key -v /root/auth:/auth -e REGISTRY_AUTH=htpasswd -e REGISTRY_AUTH_HTPASSWD_REALM="Registry Realm" -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd registry:2
0e38a074708e3113cd207fa83d72d90e41374b7643e73e21dbb3cf6d88abd3fa
docker: Error response from daemon: driver failed programming external connectivity on endpoint elegant_hugle (6f83023f4c9f4cf2910b77ddd1c3227e29988e3dfb16f850d4dc7e74c8304638): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 -j DNAT --to-destination 172.17.0.2:5000 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).
воскресенье, 13 января 2019 г.
воскресенье, 6 января 2019 г.
Virtual Host for OwnCloud SSL LetsEncrypt (Dehydrated, Apache)
/etc/httpd/conf.d/owncloud.conf
<VirtualHost *:80>
ServerName DOMAIN.COM
DocumentRoot /var/www/html/owncloud
<Directory /var/www/html/owncloud>
AddDefaultCharset UTF8
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/disk-error.log
CustomLog /var/log/disk-requests.log combined
Alias /.well-known/acme-challenge/ /var/www/html/le/.well-known/acme-challenge/
воскресенье, 9 декабря 2018 г.
Install GLPi on CentOS7 (php7.1)
Install MariaDB:
yum -y install mariadb-server mariadb-devel
systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation
# mysql -u root -p
> create database glpidb;
> create user 'glpiuser'@'localhost' identified by 'P@ssword01';
> grant all privileges on glpidb.* to glpiuser@localhost;
> flush privileges;
суббота, 8 декабря 2018 г.
Configure Cisco loggin to SPLUNK
logging source-interface vlan 1 (that interface's ip will be identified in SPLUNK)
logging host 192.168.3.92 (SPLUNK's ip)
archive
log config
logging enable
logging size 200
notify syslog contenttype plaintext
hidekeys
login on-failure log
login on-success log
logging userinfo
process cpu threshold type total rising 80 interval 5
memory free low-watermark processor 20000
memory free low-watermark io 20000
Install SPLUNK on CentOS7
Install (get the link on Splunk website):
wget -O splunk-7.2.1-be11b2c46e23-linux-2.6-x86_64.rpm 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=7.2.1&product=splunk&filename=splunk-7.2.1-be11b2c46e23-linux-2.6-x86_64.rpm&wget=true'
rpm -i splunk-7.2.1-be11b2c46e23-linux-2.6-x86_64.rpm
воскресенье, 1 апреля 2018 г.
H2O MMS Settings Android
Name: H20 APN
APN: att.mvno
Proxy:
Port:
Username:
Password:
Server:
MMSC: http://mmsc.cingular.com
MMS proxy: 66.209.11.33
MMS port: 80
MCC: 310
MNC: 410
Authentication type:
APN type: default,mms,supl
APN Protocol: IPv4
APN roaming protocol: IPv4
Bearer:
Based on https://apn.gishan.net/settings/1360_32_h2o_wireless_apn_settings_for_samsung_galaxy_s7.php
воскресенье, 25 марта 2018 г.
E-mail settings for MFD - Cannon MF249dw
