Skip to content

Instantly share code, notes, and snippets.

View ms77grz's full-sized avatar
🏠
Working from home

Magomed Shamaev ms77grz

🏠
Working from home
View GitHub Profile
@ms77grz
ms77grz / journalctl-cheatsheet.md
Created March 21, 2025 12:35 — forked from sergeyklay/journalctl-cheatsheet.md
Journalctl Cheat Sheet

Journalctl Cheat Sheet

Configuration

Permissions

To see messages from other users and the system as well as performing various log operations from a regular user add it to the group:

sudo usermod -aG systemd-journal $USER
@ms77grz
ms77grz / gist:6de90214d6d3a5e5f59e5efa0bc5cc9a
Created April 25, 2022 15:46
reactLeafletMapContainerUpdateOnStateChange
// MapComponent.js
import { useEffect, useRef } from 'react';
import L from 'leaflet';
import { MapContainer, TileLayer, Popup, Marker } from 'react-leaflet';
import { atom, useRecoilValue } from 'recoil';
import './MapComponent.css';
import TileSelector from './TileSelector';
L.Icon.Default.imagePath = 'https://unpkg.com/leaflet@1.5.0/dist/images/';
@ms77grz
ms77grz / pacman_cache.md
Created August 6, 2021 09:48 — forked from joseluisq/pacman_cache.md
How to save space on disk removing ArchLinux Pacman packages cache

How to save space on disk removing ArchLinux Pacman packages cache

1. Check out how many space is taken by Pacman packages cache

ls /var/cache/pacman/pkg/ | wc -l
# 13886
du -sh /var/cache/pacman/pkg/
# 61G	/var/cache/pacman/pkg/
@ms77grz
ms77grz / terminal-git-branch-name.md
Created August 6, 2021 09:47 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@ms77grz
ms77grz / README.md
Created July 30, 2021 13:57 — forked from curran/README.md
United Nations World Population Prospects 2019
@ms77grz
ms77grz / lock.sh
Created January 20, 2020 17:11 — forked from rawsh/lock.sh
Simple lock script preserving background with xwobf and i3lock.
#!/bin/bash
scrot /tmp/screen.png
xwobf -s 11 /tmp/screen.png
i3lock --textcolor=ffffff00 --insidecolor=ffffff1c --ringcolor=ffffff3e --linecolor=ffffff00 --keyhlcolor=00000080 --ringvercolor=00000000 --separatorcolor=22222260 --insidevercolor=0000001c --ringwrongcolor=00000055 --insidewrongcolor=0000001c -i /tmp/screen.png
rm /tmp/screen.png
@ms77grz
ms77grz / dtc.openbox.conf
Created January 3, 2020 21:28 — forked from downthecrop/dtc.openbox.conf
Useful links for openbox/tint2/urxvt
Openbox
Tint2
Urxvt
lxappearance
breeze dark
for system-wide mouse configuration, one can edit /usr/share/icons/default/index.theme
tint2conf is the customizer
sudo xbps-query -Rs rxvt
Installing Arch:
sudo vim /etc/pacman.conf
Update packages list: sudo pacman -Syy
run sudo pacman -Syu before installing any software (to update the repositories first)
* Timing issue:
- Change hardware clock to use UTC time:
sudo timedatectl set-local-rtc 0
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@ms77grz
ms77grz / arch_installation.md
Created December 8, 2019 08:42 — forked from eltonvs/arch_installation.md
Arch Linux step to step installation guide

Arch Linux Installation Guide

This guide will show step-by-step how to Install Arch Linux on UEFI mode.

Table of Contents

  • Bootable Flash Drive
  • BIOS
  • Pre installation
    • Set Keyboard Layout
    • Check boot mode
  • Update System Clock