I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
# User specific aliases and functions | |
alias start="bundle exec foreman s" | |
alias railsc="bundle exec rails c" | |
alias migrate="bundle exec rake db:migrate" | |
alias seed="bundle exec rake db:seed" | |
alias rubocop="bundle exec rake foreman_rh_cloud:rubocop" | |
alias 3808="fuser -k 3808/tcp" | |
alias 3000="fuser -k 3000/tcp" | |
alias restart="sudo foreman-maintain service restart" | |
alias rhpr='function _rhpr(){ cd foreman_rh_cloud; hub pr checkout "$@"; };_rhpr' |
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
#!/usr/bin/env sh | |
i3lock -i ~/.config/i3/lock_screen.png |
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
rm -rfv /etc/foreman-proxy/*ssl* | |
rm -rfv /etc/foreman/old-certs | |
rm -rfv /etc/foreman/*.pem | |
rm -rfv /var/lib/puppet/ssl | |
rm -rfv /root/ssl-build | |
foreman-installer -v --certs-regenerate-ca=true --certs-regenerate=true \ | |
--foreman-foreman-url "https://bread.usersys.redhat.com" \ | |
--foreman-servername sat6.example.com \ | |
--certs-ca-common-name sat6.example.com \ |