Skip to content

Instantly share code, notes, and snippets.

View gangsta's full-sized avatar
😎

Karen Harutyunyan gangsta

😎
View GitHub Profile
@gangsta
gangsta / docker.md
Last active March 20, 2018 22:26
How to Install Docker CE 17 + version Centos 7

Docker CE for Centos 7

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce -y
systemctl start docker

Adding Docker compose

@gangsta
gangsta / Install Vagrant Libvirt Fedora 27.md
Last active January 27, 2019 09:11
How to install Libvirt Vagrant on Fedora 27

How to Install Vagrant and Livbirt Fedora 27

Check for cpu Virtualization

lsmod | grep kvm
kvm_intel             167936  3
kvm                   499712  1 kvm_intel

Install

@gangsta
gangsta / Prometheus node_exporter Metrics Data Size and Time Count
Last active April 10, 2019 15:21
Bash Script to Fetching Node_Exporter Data Size and Time for Consuming Metrics
#!/usr/bin/env bash
set -e
bytesToHuman() {
b=${1:-0}; d=''; s=0; S=(Bytes {K,M,G,T,E,P,Y,Z}iB)
while ((b > 1024)); do
d="$(printf ".%02d" $((b % 1024 * 100 / 1024)))"
b=$((b / 1024))
let s++
done
@gangsta
gangsta / Install Vagrant Virtualbox Fedora 27.md
Last active April 10, 2019 15:23
Install Vagrant and Virtualbox on Fedora 27

How to Install Vagrant and Virtualbox Fedora 27

Check for cpu Virtualization

lsmod | grep kvm
kvm_intel             167936  3
kvm                   499712  1 kvm_intel

Install

@gangsta
gangsta / remove-vagrant.md
Last active January 16, 2020 10:13
How to Remove Vagrant domain from Fedora 30,31

If you removed Vagrantfile but not Vagrant host. you'll get following error:

Name 'vagrantbox_default' of domain about to create is already taken. Please try to run 'vagrant up' command again.

For Fedora users, or force undefine you need following.

To install virsh.

@gangsta
gangsta / fedora31.md
Created February 6, 2020 08:55
How to disable fedora 31 problem reporter

How to Disable Fedora 31 problem reporter

/sbin/service abrtd stop
chkconfig abrtd off
@gangsta
gangsta / argo-helm.md
Created January 11, 2021 10:52
Kubernetes argo tunnel setup via helm charts

Error

Error: validation failed: unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"

Temporary Solution

Kubernetes 1.16+

git clone https://github.com/cloudflare/helm-charts.git
cd helm-charts/charts/
@gangsta
gangsta / fedora_35_mic_no_sound.md
Last active December 13, 2021 12:48
Fedora 35 Mic issue, No sound , Missing audio on Lenovo ThinkPad t14s | 490s

Common error.

fedora pulseaudio[2352]: Failed to create sink input: sink is suspended.

Solution

systemctl --user enable --now wireplumber
@gangsta
gangsta / openvpn_fedora30.md
Last active April 26, 2022 07:54
Fedora 30 Connect to OpenVPN

Install Openvpn

sudo dnf install openvpn

Configure Path

mv myopenvpconfig /etc/openvpn/client/
@gangsta
gangsta / fedora_black_sreenshare.md
Created November 11, 2022 11:47
Fedora Screen Share - black screen when sharing Wayland / Gnome

Google Chrome

Wayland’s way of screenshare is improving, you can

  • Navigate to page chrome://flags
  • Search for WebRTC
  • flip that switch to Enabled
  • Restart the browser (Chrome will auto ask, if not manually restart the browser)