Skip to content

Instantly share code, notes, and snippets.

See what's the block device

[yabbes@x220 ~]$ lsblk
NAME           MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda              8:0    0 298,1G  0 disk
├─sda1           8:1    0   500M  0 part  /boot
└─sda2           8:2    0 297,6G  0 part
  └─lvm        254:0    0 297,6G  0 crypt
    ├─vg0-swap 254:1    0     4G  0 lvm   [SWAP]
    ├─vg0-root 254:2    0    46G  0 lvm   /
@valyakuttan
valyakuttan / silverblue-vivobook.md
Last active February 11, 2024 18:41
How to Customize Fedora Silverblue on ASUS VivoBook

How to Customize Fedora Silverblue on ASUS VivoBook

  1. Enable Fractional scaling on wayland

          $ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
  2. Add Flatpak remotes and other third-party repositories

conda cheatsheet

conda Installation

  • verify conda install and check version

    
    $ conda info
    
    

OpenKeychain

Backup and import gpg key from OpenKeychain

  • Make a bakup from OpenKeychain and transfer it to workstation

  • On the workstation import the key by

@valyakuttan
valyakuttan / flatpak-cheatsheet.md
Last active August 18, 2023 17:15
flatpak Command Reference

Frequently used flatpak commands

  • Location of flatpak configuration files and apps data

    • Applications store user data in $HOME/.var/app

    • User level configuration is storred in $HOME/.local/share/flatpak

    • System wide configuration is storred in /var/lib/flatpak

@valyakuttan
valyakuttan / vscode-flatpak.md
Last active September 6, 2023 04:12
Fedora Silverblue vscode flatpak configuration

How to configure flatpak version of Visual Studio Code on Fedora Silverblue

1 podman Configuration

  • Create a a file ${HOME}/.config/containers/containers.conf with the following contents:

    
    [containers]
    env = [
    
@valyakuttan
valyakuttan / podman-cheatsheet.md
Last active August 12, 2023 09:02
Podman Command Reference

Frequently used podman commands

  1. Add an additional name to a local image

         $ podman tag 0e3bbc2 fedora:latest
  2. Display the running processes of a container

         $ podman top f5a62a71b07
@valyakuttan
valyakuttan / markdown_cheatsheet.md
Created July 26, 2023 17:24
Markdown Cheatsheet

1. Code and Preformatted Text

  • 1.1 Indent four spaces to create an escaped <pre> <code> block:

    printf("%d\n", 42);  /* what was the
     question again? */
    
  • 1.2 Markdown and HTML are ignored within a code block
    You would hate this if it weren't

@valyakuttan
valyakuttan / goldbach47.c
Created July 25, 2023 12:15 — forked from jms137/goldbach47.c
Goldbach Turing machine with 47 states
/*
Goldbach's conjecture tested by a 47-state Turing machine
Author: Jared Showalter
If "a" and "i" were unbounded, this program would halt iff Goldbach's
conjecture is false. Furthermore, the program structurally
corresponds to a Turing machine with two symbols, one tape, and a
small number of states. The array "a" corresponds to the tape (each

Useful pdf tricks on linux systems

  1. How to Merge multiple PDF files into one PDF

         $ pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf
  2. How to reduce the file size of a scanned PDF file

$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \