Skip to content

Instantly share code, notes, and snippets.

View boobo94's full-sized avatar

Bogdan Alexandru Militaru boobo94

View GitHub Profile
@boobo94
boobo94 / gist:8616e84eed97a20c7ed38715fc7f8dcd
Last active August 1, 2018 15:12
Backend exercise for interview

Hi,

We have a simple exercise for you. You have to create few endpoints for a project manager tool. Firstly we have two types of users: regular users and admins.

What a regular user can do:

  • register (username, email, password, first name, last name)
  • login (username, password)
  • see details about his profile (username, email, first name, last name), just if he it's logged in, and he must only be able to view HIS profile
@boobo94
boobo94 / tasks.json
Created September 14, 2018 10:01
VSCode Task to remove dead branches from localhost or remote
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Git Prune",
"type": "shell",
"command": "git fetch --prune && git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d",
"problemMatcher": []
@boobo94
boobo94 / extensions
Last active April 26, 2021 08:46
vscode settings
## Display all extensions used
```bash
$ code --list-extensions | xargs -L 1 echo code --install-extension
```
## List
```
code --install-extension aeschli.vscode-css-formatter
@boobo94
boobo94 / .pgpass
Created April 16, 2020 16:43
Back-up postgres on linux
localhost:5432:DATABASE:USER:PASSWORD