Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zldrobit
zldrobit / README.md
Last active October 3, 2023 17:29 — forked from zoilomora/README.md
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable --now systemd-resolved.service		
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

install nvidia driver

sudo apt-get update
sudo apt-get install nvidia-384
sudo reboot

set gpu cards to persistent mode

sudo nvidia-persistenced --persistence-mode

On Ubuntu Server

  • Install urxvt sudo apt install rxvt-unicode
  • Install ranger pip install ranger-fm (ranger is installed at ~/.local/bin/ranger)
  • Edit ranger config file (~/.config/ranger/rc.conf)
set preview_images true
set preview_images_method urxvt

On Client

Prerequisite

apt install git build-essential cmake python3-numpy [python-numpy]

Install FFmpeg (for OpenCV compilation)

apt-get install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libavresample-dev

in Dream Studio (Stability AI)

teenage boys and girls playing on grass, with warm sun and breeze. by Vincent van Gogh HQ

2744923211_teenage_boys_and_girls_playing_on_grass__with_warm_sun_and_breeze__by_Vincent_van_Gogh_HQ

Vim

Description Command
Delete a word in terminal mode C-W .
Paste in terminal mode C-W ""
Terminal normal mode C-W N
Last inserted register .
Go to the last edited location `.
Go to the previous edited location g;
Go to the next edited location g,
@zldrobit
zldrobit / 256color.pl
Created September 11, 2022 07:51 — forked from hSATAC/256color.pl
256color.pl
#!/usr/bin/perl
# Author: Todd Larason <jtl@molehill.org>
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $
# use the resources for colors 0-15 - usually more-or-less a
# reproduction of the standard ANSI colors, but possibly more
# pleasing shades
# colors 16-231 are a 6x6x6 color cube
for ($red = 0; $red < 6; $red++) {
@zldrobit
zldrobit / http-benchmark.md
Created September 5, 2022 03:01 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)