Skip to content

Instantly share code, notes, and snippets.

View sykezz's full-sized avatar
👀

Hussain 'Sykez' Faisal sykezz

👀
View GitHub Profile
@sykezz
sykezz / foo.rb
Created May 27, 2019 15:38 — forked from f3rdy/foo.rb
How to reset admin password in gitlab
# logon at your gitlab server
#
# $ sudo gitlab-rails console production
Loading production environment (Rails 4.2.7.1)
irb(main):001:0> user = User.where(id: 1).first
=> #< USER ADMIN >
irb(main):002:0> user.password = 'my_new_pass'
irb(main):003:0> user.password_confirmation = 'my_new_pass'