How to export a GPG public key to a file
gpg --output public.pgp --armor --export username@email
Here is what the above code is Doing:
1. Create a new GPG key pair.
2. Export the public key to a file.
3. Export the private key to a file.
gpg --output public.pgp --armor --export username@email
Here is what the above code is Doing:
1. Create a new GPG key pair.
2. Export the public key to a file.
3. Export the private key to a file.
sudo snap install polybar-git –edge Here is what the above code is Doing: 1. Install the snapd package. 2. Install the snapcraft package. 3. Install the polybar package from the edge channel.
#run on the terminal this command: getconf LONG_BIT # response will be either 32 or 64 Here is what the above code is Doing: 1. We are importing the sys module. 2. We are using the sys.maxsize function to get the maximum size of an integer. 3. We are using the getconf LONG_BIT function to…
ssh-agent bash -c ‘ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git’ Here is what the above code is Doing: 1. Create a new container with the image ubuntu:latest 2. Run the command bash 3. Mount the current directory to /somewhere in the container 4. Run the command ssh-agent bash -c ‘ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git’
python3 -m django –version // mac py -m django –version // windows Here is what the above code is Doing: 1. We’re using the py command to run the Python interpreter. 2. We’re using the -m switch to tell Python to run a module as a script. 3. We’re using the django module, which is…
setxkbmap -option grp:alt_shift_toggle hr, ru -variant ,phonetic # or simply add bellow line into any startup script like .xinitrc # (Don’t forget to edit and change the layouts you want to be toggled) setxkbmap us,lk grp:alt_shift_toggle Here is what the above code is Doing: 1. It’s setting the default layout to US and LK 2….
#!/bin/bash input=”/path/to/txt/file” while IFS= read -r line do echo “$line” done < "$input" Here is what the above code is Doing: 1. The while loop will read each line in the file line by line. 2. The IFS variable will set the field separator to a new line. 3. The -r flag will prevent backslash...