Skip to content

Instantly share code, notes, and snippets.

View Ron-Lavi's full-sized avatar

Ron Lavi Ron-Lavi

  • Red Hat Israel
  • Israel
View GitHub Profile
@Ron-Lavi
Ron-Lavi / localGPT-ingest.md
Last active March 6, 2024 08:58
Using localGPT with Mistral to ingest Foreman Docs
[rlavi@toolbox localGPT]$ python3 ingest.py --device_type cpu
2024-03-06 06:36:46,062 - INFO - ingest.py:147 - Loading documents from /home/rlavi/src/localGPT/SOURCE_DOCUMENTS
Importing: Administering Foreman.pdf
Importing: Planning for Foreman.pdf
Importing: Provisioning Hosts.pdf
Importing: Managing Hosts.pdf
@Ron-Lavi
Ron-Lavi / rails http status codes
Created March 2, 2021 07:58 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
ssh-enUS ()
{
LANG="en_US.UTF-8" LC_ADDRESS="$LANG" LC_IDENTIFICATION="$LANG" LC_MEASUREMENT="$LANG" LC_MONETARY="$LANG" LC_NAME="$LANG" LC_NUMERIC="$LANG" LC_PAPER="$LANG" LC_TELEPHONE="$LANG" LC_TIME="$LANG" LC_ALL="$LANG" /usr/bin/ssh $@
}
curl https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
channel 1: open failed: administratively prohibited: open failed
The above message refers to your SSH server rejecting your SSH client's request to open a side channel. This typically comes from -D, -L or -w, as separate channels in the SSH stream are required to ferry the forwarded data across.
Since you are using -L (also applicable to -D), there are two options in question that are causing your SSH server to reject this request:
AllowTcpForwarding (as Steve Buzonas mentioned)
PermitOpen
These options can be found in /etc/ssh/sshd_config. You should ensure that:
https://qpid.apache.org/packages.html
sudo yum install qpid-cpp-client-devel python-qpid -y
@Ron-Lavi
Ron-Lavi / package-lock.json
Created June 30, 2020 12:11
foreman lock with vendor 4.8.0
This file has been truncated, but you can view the full file.
{
"name": "TheForemanDevDeps",
"version": "2.2.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@babel/code-frame": {
"version": "7.10.3",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.3.tgz",
"integrity": "sha512-fDx9eNW0qz0WkUeqL6tXEXzVlPh6Y5aCDEZesl0xBGA8ndRukX91Uk44ZqnkECp01NAZUdCAl+aiQNGi0k88Eg==",
Check if you've gnome packages installed:
#rpm -qa|grep gnome-desktop
If the system installed in text mode then you would not get to see any gnome or X related packages installed, if that is the case then you could run the command
#yum groupinstall "Server with GUI"
to get all X window and related packages installed. After this you could change the default target by running the command:
#systemctl set-default graphical.target
PATH
remote: ../foreman-plugin/redhat-access
specs:
redhat_access (2.2.9)
angular-rails-templates (>= 0.0.4)
redhat_access_lib (>= 1.1.5)
PATH
remote: ../foreman-tasks
specs:
PATH
remote: ../foreman-plugin/redhat-access
specs:
redhat_access (2.2.11)
angular-rails-templates (>= 0.0.4)
foreman-tasks
katello
redhat_access_lib (>= 1.1.5)
PATH