Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
sudo systemctl restart postgresql rh-mongodb34-mongod qdrouterd qpidd squid pulp_resource_manager pulp_streamer foreman-proxy pulp_celerybeat pulp_workers tomcat httpd puppetserver
| # EG : ALTER USER Postgres WITH PASSWORD '<newpassword>'; | |
| CP_PASS=`grep jpa.config.hibernate.connection.password /etc/candlepin/candlepin.conf | awk -F= '{print $2}'` | |
| F_PASS=`grep password /etc/foreman/database.yml | awk -F: '{print $2}' | sed 's/"//g'` | |
| echo "ALTER USER candlepin WITH PASSWORD '$CP_PASS';" | sudo -u postgres psql | |
| echo "ALTER USER foreman WITH PASSWORD '$F_PASS';" | sudo -u postgres psql |
| - yum install docker | |
| - in /etc/sysconfig/docker | |
| OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --debug=true -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock' | |
| - service docker restart | |
| - In satellite/katello create a new compute resource with the followiung settings | |
| Provider Docker | |
| URL http://0.0.0.0:2375 |
node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory
yum remove -y nodejs* npm
yum clean all
rpm -qa 'node|npm' | grep -v nodesource #should return no packages
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
| in foreman dir update: | |
| webpack/assets/javascripts/react_app/redux/actions/notifications/index.js:const getNotificationsInterval | |
| or | |
| export NOTIFICATIONS_POLLING=99999999 | |
| export NOTIFICATIONS_POLLING=99999999; export TASKS_BULK_SEARCH_INTERVAL=99999999 | |
| foreman start |
| #lowercase letters/numbers only | |
| -join ((48..57) + (97..122) | Get-Random -Count 32 | % {[char]$_}) | |
| # all characters | |
| -join ((33..126) | Get-Random -Count 32 | % {[char]$_}) |
| #!/usr/bin/env ruby | |
| base=50000 #port | |
| range="192.168.121." | |
| contents = <<-EOS | |
| Listen %{port} https | |
| <VirtualHost *:%{port}> | |
| ProxyPass / https://%{ip_address}/ | |
| <Location /> |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: