Skip to content

Instantly share code, notes, and snippets.

View rabajaj0509's full-sized avatar
✌️
livin' the dream...

Rahul Bajaj rabajaj0509

✌️
livin' the dream...
  • Queen's University
  • kingston, Ontario
View GitHub Profile
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 16, 2024 23:05
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

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!






\

@johnpmitsch
johnpmitsch / gist:8dad04c22fd93eacbf44baea950996ad
Last active October 24, 2022 06:47
regenerate certs in foreman
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 \
# 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'
#!/usr/bin/env sh
i3lock -i ~/.config/i3/lock_screen.png