The following commands show how to create a user named jijo in different distros
useradd -ms /bin/bash jijo
#or
useradd --create-home --shell /bin/bash jijo
# Remove all images | |
docker rmi -f $(docker images -aq) |
git fetch -p | |
git for-each-ref --format '%(if:equals=[gone])%(upstream:track)%(then)%(refname:short)%(end)' 'refs/heads/**' | xargs -r git branch -D |
# Generates a html report with the battery status | |
powercfg /batteryreport |
#!/usr/bin/env python3 | |
import concurrent.futures as futures | |
import random | |
import threading | |
from concurrent.futures.thread import ThreadPoolExecutor | |
l = [[1, 2, 3], [2, 3, 4], [3, 5, 7], [3, 5, 8], [3, 5, 9]] | |
def foo(bar): |
# See https://pre-commit.com for more information | |
# See https://pre-commit.com/hooks.html for more hooks | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v2.2.1 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-yaml | |
- id: check-added-large-files |
git config --global alias.logline "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
git logline |
#set timezone in linux / wsl | |
sudo dpkg-reconfigure tzdata | |