Skip to content

Instantly share code, notes, and snippets.

🚩
Just start, you'll figure it out.

Nitish Jadia jadia

🚩
Just start, you'll figure it out.
Block or report user

Report or block jadia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jadia
jadia / video_fix_opera.md
Created Mar 31, 2020
Facebook cannot run videos in Opera and firefox
View video_fix_opera.md

Facebook videos do not run in Opera and Firefox

Solution for Opera:

The devs are very lazy to update the libffmpeg.so file. Hence use the below method to get it work.

Just find / -type f -name libffmpeg.so in your system, and replace it the one that you've found with the one that is located on /usr/lib/x86_64-linux-gnu/opera in my case, I took it from the slack installation and the size is 2.9mb vs the "original" that it size is 1.7mb.

Source

@jadia
jadia / grep_through_files.md
Created Mar 13, 2020
Grep through all the files in the folder
View grep_through_files.md

Grep through all the files in the folder

Search through directory and sub-directories

grep -r stuffToSearch ./*

Search only specific files

@jadia
jadia / qemu_image_convert.md
Created Oct 16, 2019
Convert VDI images to IMG or QCOW2 in QEMU
View qemu_image_convert.md

Convert VDI images to IMG or QCOW2 in QEMU

qemu-img convert -f vdi -O qcow2 vm.vdi vm.qcow2
@jadia
jadia / gpg_error.md
Last active Mar 28, 2020
Github, SSH - gpg failed to sign the data
View gpg_error.md

GPG sign issue when commiting the message

error: gpg failed to sign the data
fatal: failed to write commit object

sudo apt install -y pinentry-tty && \
sudo update-alternatives --config pinentry
@jadia
jadia / tmux_centos.md
Last active Sep 6, 2019
Install tmux latest version in CentOS 7
View tmux_centos.md

Install Tmux in CentOS 7

Remove tmux 1.8 and install

sudo yum remove tmux -y && \
git clone https://github.com/tmux/tmux.git && \
sudo yum install libevent-devel -y && \
sudo yum install ncurses-devel.x86_64 -y && \
cd tmux && \
@jadia
jadia / openvpn_on_openvz.md
Created Aug 9, 2019
Using OpenVPN on OpenVZ based machine
View openvpn_on_openvz.md

Using OpenVPN on OpenVZ based machine

Comment out the LimitNPROC line in /lib/systemd/system/openvpn@.service.

Then run systemctl daemon-reload

Restart the openvpn service

systemctl restart openvpn@server.service

@jadia
jadia / locale_issue_zsh.md
Created Aug 3, 2019
zsh (anon):12: character not in range error
View locale_issue_zsh.md

zsh | (anon):12: character not in range

Solution:

sudo apt-get install -y language-pack-en
sudo update-locale

Then zsh starts working!

@jadia
jadia / ubuntu16.04_kernel_upgrade.md
Created Jul 27, 2019
Update/Upgrade kernel on Ubuntu 16.04 server
View ubuntu16.04_kernel_upgrade.md

Update/Upgrade kernel on Ubuntu 16.04 server

This solves the issue where apt upgrade does not upgrade the kernel version.

Just doing apt upgrade won't work. We might need to give special attention to some packages.

sudo apt-get upgrade linux-generic linux-headers-generic linux-image-generic
@jadia
jadia / i3_kde_debian_screenshot.md
Created Jul 27, 2019
i3 KDE Debian screenshot utility
View i3_kde_debian_screenshot.md

Enable screenshot using in i3wm Debian KDE

mkdir -p ~/Pictures/Screenshots

Add the following lines in your i3 config:

# Printscreen controls (KDE)
@jadia
jadia / i3_dolphins.md
Created Jul 27, 2019
i3 Dolphin icons not showing
View i3_dolphins.md

i3 Dolphin icons not showing

Add the following line on your i3 config file

bindsym $mod+n exec bash -c "XDG_CURRENT_DESKTOP=KDE && dolphin"

Run using $mod+n

You can’t perform that action at this time.