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
hasLicense: YouTrack and not lastAccess(after: 2020-02-20) |
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
gitlab-rails console | |
..... | |
user = user.find_by_email("[email protected]") | |
user.email = "[email protected]" | |
user.save |
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
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); | |
String name = reader.readLine(); | |
String sAge = reader.readLine(); | |
int nAge = Integer.parseInt(sAge); |
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
[root@sentry-apatsev2 ~]# yum install -y epel-release git | |
Loaded plugins: fastestmirror | |
Determining fastest mirrors | |
* base: mirrors.nxthost.com | |
* extras: mirrors.nxthost.com | |
* updates: mirrors.nxthost.com | |
base | 3.6 kB 00:00:00 | |
extras | 2.9 kB 00:00:00 | |
updates | 2.9 kB 00:00:00 |
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
[root@minio-apatsev bin]# mc config host add minio http://localhost minio minio123 --api S3v4 | |
mc: Configuration written to `/root/.mc/config.json`. Please update your access credentials. | |
mc: Successfully created `/root/.mc/share`. | |
mc: Initialized share uploads `/root/.mc/share/uploads.json` file. | |
mc: Initialized share downloads `/root/.mc/share/downloads.json` file. | |
Added `minio` successfully. | |
[root@minio-apatsev bin]# mc config host add minio http://localhost:9000 minio minio123 --api S3v4 | |
Added `minio` successfully. | |
[root@minio-apatsev bin]# mc --debug ls minio | |
mc: <DEBUG> GET / HTTP/1.1 |
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
su - postgres | |
-bash-4.2$ wal-g backup-list | |
name last_modified wal_segment_backup_start | |
base_000000010000000000000006 2020-03-31T12:25:45Z 000000010000000000000006 | |
systemd: Started Runners to orchestrate a high-availability PostgreSQL - patroni. | |
patroni: 2020-04-01 06:56:57,052 INFO: Selected new etcd server http://172.26.9.198:2379 | |
patroni: 2020-04-01 06:56:57,060 INFO: No PostgreSQL configuration items changed, nothing to reload. | |
patroni: 2020-04-01 06:56:57,081 INFO: Lock owner: None; I am pgnode01 | |
patroni: 2020-04-01 06:56:57,114 INFO: trying to bootstrap a new cluster |
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
systemd: [/etc/systemd/system/patroni.service:14] Not an absolute path, ignoring: ~ | |
systemd: [/etc/systemd/system/patroni.service:14] Not an absolute path, ignoring: ~ | |
systemd: [/etc/systemd/system/patroni.service:14] Not an absolute path, ignoring: ~ | |
systemd: Started Runners to orchestrate a high-availability PostgreSQL - patroni. | |
patroni: 2020-04-01 03:30:01,661 INFO: Selected new etcd server http://172.26.9.198:2379 | |
patroni: 2020-04-01 03:30:01,669 INFO: No PostgreSQL configuration items changed, nothing to reload. | |
patroni: 2020-04-01 03:30:01,685 INFO: Lock owner: None; I am pgnode01 | |
patroni: 2020-04-01 03:30:01,715 INFO: trying to bootstrap a new cluster | |
patroni: 2020-04-01 03:30:01,716 INFO: Running custom bootstrap script: wal-g backup-fetch /var/lib/pgsql/11/data LATEST | |
patroni: Error: unknown flag: --scope |
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
./main.py build -f config.yaml -r 1 | |
builder - INFO - Parse yaml file: config.yaml | |
builder - INFO - Download scripts for build rpm package | |
builder - INFO - Running command: rpmdev-setuptree | |
builder - INFO - | |
builder - INFO - Downloading nginx src... | |
builder - INFO - Running command: rpm --upgrade --verbose --hash http://nginx.org/packages/centos/7/SRPMS/nginx-1.14.0-1.el7_4.ngx.src.rpm | |
warning: /var/tmp/rpm-tmp.xnOpeB: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY | |
warning: user builder does not exist - using root | |
warning: group builder does not exist - using root |
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
# Created by pyp2rpm-3.3.3 | |
%global pypi_name six | |
Name: python-%{pypi_name} | |
Version: 1.10.0 | |
Release: 1%{?dist} | |
Summary: Python 2 and 3 compatibility utilities | |
License: MIT | |
URL: http://pypi.python.org/pypi/six/ |
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
sudo setenforce 0 | |
sudo yum install -y epel-release rpmdevtools mc | |
sudo yum install -y python-devel gcc gcc-c++ zlib-devel libjpeg-devel | |
sudo yum install -y python34 python3-pip | |
pip3 install --user pyp2rpm | |
####### Package without dependecy. Block 1 ####### | |
pyp2rpm petname -t epel7 -b2 -p2 -v 2.0 > petname-2.0.spec | |
sudo yum-builddep -y petname-2.0.spec |