Skip to content

Instantly share code, notes, and snippets.

@mbodo
mbodo / Git - Cheatsheet & Tips.md
Last active June 3, 2020 08:16 — forked from loonies/git-cheat-sheet.md
Git Cheat Sheet

Git - Cheatsheet & Tips

Although there are enough resources on the web about Git, I will keep this one for my own reference. Minimal Git version required 1.7.2.

TOC

@mbodo
mbodo / Git - Cheatsheet.md
Last active October 15, 2018 21:27 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@mbodo
mbodo / Tmux - Shortcuts & Cheatsheet.md
Last active April 1, 2022 17:11 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

Tmux -Shortcuts & Cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@mbodo
mbodo / Linux - RHEL Conf Tips.md
Last active October 1, 2016 11:28
Linux - RHEL Conf Tips

Linux - RHEL Conf Tips

Disable firewalld with systemctl

  • Check if service is running:

    systemctl status firewalld 
    
@mbodo
mbodo / Linux - Commands cheatsheet.md
Last active July 13, 2020 19:27
Linux - Commands cheatsheet

Linux - Commands cheatsheet.md

usermod

Remove all secondary groups for user

  • RHEL 7
usermod -G "" user
@mbodo
mbodo / Linux - Static ip network configuration with default gateway.md
Last active May 15, 2017 08:30
Configuration of static ip with default gateway

Linux - Static ip network configuration with default gateway

RHEL 7 (windows/vmware player/systemd):

1. Log as root, or user which can work with systemctl and edit /etc configuration.

2. Check if NetworkManager.service is running

systemctl status NetworkManager.service
@mbodo
mbodo / Linux - Systemd cheatsheet.md
Last active March 15, 2024 18:25
Systemd cheatsheet

Linux - Systemd cheatsheet

systemctl

Activates a service immediately:

systemctl start foo.service

Deactivates a service immediately:

@mbodo
mbodo / CURL - cheatsheet.md
Last active March 16, 2021 21:14 — forked from Kartones/CURL-cheatsheet.md
CURL Cheatsheet

CURL - cheatsheet

  • XML GET
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "http://hostname/resource"
  • JSON GET
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://hostname/resource"
//Copy runtime libraries to lib source folder
task copyRuntimeLibs(type: Copy) {
into "lib"
from configurations.testRuntime, configurations.runtime
}
@mbodo
mbodo / Git - git.migrate
Last active September 17, 2016 15:22 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.