Skip to content

Instantly share code, notes, and snippets.

View DanMarqz's full-sized avatar
:atom:
Learning

Daniel DanMarqz

:atom:
Learning
View GitHub Profile
@DanMarqz
DanMarqz / alternateSwitch.js
Last active June 17, 2022 15:25
Alternative to Switch
function alternateSwitch(theCase = 'fourthCase'){
const defaultCase = 'Default'
const varByCases = {
firstCase : 'Do first action',
secondCase : 'Do second action',
thirdCase : 'Do third action',
fourthCase : 'Do fourth action',
fifthCase : 'Do fifth action',
}
@DanMarqz
DanMarqz / ranger-cheatsheet.md
Last active June 8, 2022 23:56 — forked from heroheman/ranger-cheatsheet.md
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@DanMarqz
DanMarqz / project-ideas01.md
Created June 2, 2022 13:00 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

@DanMarqz
DanMarqz / .tmux.conf
Last active January 9, 2023 13:58
.tmux.conf
# remap prefix from 'C-b' to 'C-a'
# unbind C-b
# set-option -g prefix C-a
# bind-key C-a send-prefix
# let tmux use mouse mode
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
### Docker-compose
| Alias | Command | Description |
|-----------|----------------------------------|----------------------------------------------------------------------------------|
| dco | `docker-compose` | Docker-compose main command |
| dcb | `docker-compose build` | Build containers |
| dce | `docker-compose exec` | Execute command inside a container |
| dcps | `docker-compose ps` | List containers |
| dcrestart | `docker-compose restart` | Restart container |
| dcrm | `docker-compose rm` | Remove container