This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family = "RecMonoCasual Nerd Font" | |
font-size = 10 | |
theme = catppuccin-mocha | |
gtk-titlebar = true | |
window-decoration = true | |
gtk-adwaita = false | |
cursor-style = block | |
cursor-style-blink = false | |
shell-integration-features = no-cursor | |
gtk-tabs-location = bottom |
docker build -t ubuntu_rolling_image .
docker run -d -it --name ubuntu-rolling -v /home/sonul:/home/ubuntu --user ubuntu ubuntu_rolling_image zsh
docker exec -it <container_id> zsh
docker ps -a
docker stop $(docker ps -q)
docker rm -f <container_id>
docker start my_container
docker run -it --rm --privileged --net=host -e DISPLAY=$DISPLAY -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR --name ubuntu-rolling --user=$(id -u):$(id -g) -v /home/sonul/Documents/docker/InsideDocker/home/ubuntu:/home/ubuntu -v /run/user/$(id -u):/run/user/1000 -v /tmp:/tmp ubuntu_rolling_image zsh
- for running gui apps and audio do this in docker container:
sudo chown -R 1000:1000 /run/user/1000/*
- For running nvidia in docker, follow this (link][https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html] and after setup use
--gpus=all
indocker run
fonttools varLib.mutator ./font.ttf wght=400 wdth=85
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Temp throttle | |
[Service] | |
Type=oneshot | |
ExecStart="/usr/local/bin/temp_throttle" 90 | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = true | |
# Replace the "❯" symbol in the prompt with "➜" | |
[character] # The name of the module we are configuring is "character" | |
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green" | |
error_symbol = "[✖](bold red) " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.tecmint.com/35-practical-examples-of-linux-find-command/ | |
https://geekflare.com/linux-find-commands/ |
- Find files containing "foo", and print the line matches in context:
ag foo
- Find files containing "foo" in a specific directory:
ag foo path/to/directory
- Find files containing "foo", but only list the filenames:
ag -l foo
- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:
ag -i -o FOO
- Find "foo" in files with a name matching "bar":
ag foo -G bar