> For the complete documentation index, see [llms.txt](https://kashz.gitbook.io/kashz-jewels/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kashz.gitbook.io/kashz-jewels/cheatsheet/gitlab-rails.md).

# gitlab rails

## Recon Gitlab CE using rails

```bash
# find the user:
user = User.find(1)
user = User.find_by(email: "admin@example.com")
user = User.find_by(username: "root")
user = User.find_by(name: "Administrator")
user = User.find_by(admin: true)

# pretty_print parameters
pp u.attributes

# change the password
user.password = 'kashz'
user.password_confirmation = 'kashz'

# and save
user.save
```

## Reference

* <https://gist.github.com/dnozay/188f256839d4739ca3e4>
