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
# How to sign your custom RPM package with GPG key | |
# Step: 1 | |
# Generate gpg key pair (public key and private key) | |
# | |
# You will be prompted with a series of questions about encryption. | |
# Simply select the default values presented. You will also be asked | |
# to create a Real Name, Email Address and Comment (comment optional). | |
# | |
# If you get the following response: |
This is a basic example of using SOCKS. | |
From the computer you want to browse on you'll make an ssh connection to the computer you want to browse from. | |
In this example it'll be my laptop connecting to my desktop. | |
Run: ssh -D <port, I use 10000> <user>@<hostname of desktop> | |
Now, in a browser you don't normally use (I'm using firefox), go to network proxy. | |
Set Manual porxy configuration |
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
Setting[:applicability_batch_size] = 50 | |
number_of_calculations = 1000 | |
total_host_count = Katello::Host::ContentFacet.count | |
RUNNING_TASK_LABEL = "Actions::Katello::Host::GenerateApplicability" |
Install dynaconf 3 and update /etc/pulp/settings.py | |
sudo systemctl stop pulpcore* | |
sudo su - postgres | |
dropdb pulp -p 7878 | |
createdb pulp -p 7878 | |
exit | |
cd /usr/local/lib/pulp/src/pulpcore/ | |
sudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' DJANGO_SETTINGS_MODULE='pulpcore.app.settings' /usr/local/lib/pulp/bin/django-admin migrate --no-input | |
sudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' DJANGO_SETTINGS_MODULE='pulpcore.app.settings' /usr/local/lib/pulp/bin/django-admin reset-admin-password --password password |
#mount large filesystem (200GB) onto /mnt/ | |
setenforce 0 | |
cd /mnt/ | |
tar -xzf pgsql_data.tar.gz | |
#link /var/lib/pgsql from /mnt |
cd ~/hammer-cli-katello | |
bundle install | |
bundle exec bash | |
cd ~ | |
wget https://partha.fedorapeople.org/devel/hammer.tgz | |
tar zxf hammer.tgz | |
ll .hammer # verify there's stuff in that dir | |
cd hammer-cli-katello | |
hammer ping |
go to node_modules/webpack-dev-server/lib/Server.js
in ~/foreman
around line 496 change protocols: ['h2', 'http/1.1']
to protocols: ['http/1.1']
(remove h2
from the array)
start dev server
NOTE: this will be overwritten when you npm install again
On the proxy:
yum group install "Development Tools"
yum install rh-ruby27-ruby-devel
scl enable tfm bash
yum install sqlite-dev
gem install sqlite
gem build smart_proxy_container_gateway.gemspec
gem install smart_proxy_container_gateway-x.x.x.gem
edit /etc/foreman-proxy/settings.d/container_gateway.yml: