Skip to content

Instantly share code, notes, and snippets.

Avatar
😎

Karen Har-yan gangsta

😎
View GitHub Profile
@gangsta
gangsta / fedora_35_mic_no_sound.md
Last active Dec 13, 2021
Fedora 35 Mic issue, No sound , Missing audio on Lenovo ThinkPad t14s | 490s
View fedora_35_mic_no_sound.md

Common error.

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

Solution

systemctl --user enable --now wireplumber
@gangsta
gangsta / linux_commands.md
Last active Aug 24, 2021
Daily Linux Commands Cheat Sheet
View linux_commands.md

Useful Commands list

CPU

ps aux | sort -nrk 3,3 | head -n 5

watch "ps aux | sort -nrk 3,3 | head -n 5"

Allow kubectl Command to access all ports without sudo, Helpful for port-forward

@gangsta
gangsta / argo-helm.md
Created Jan 11, 2021
Kubernetes argo tunnel setup via helm charts
View argo-helm.md

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 / fedora31.md
Created Feb 6, 2020
How to disable fedora 31 problem reporter
View fedora31.md

How to Disable Fedora 31 problem reporter

/sbin/service abrtd stop
chkconfig abrtd off
@gangsta
gangsta / remove-vagrant.md
Last active Jan 16, 2020
How to Remove Vagrant domain from Fedora 30,31
View remove-vagrant.md

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 / openvpn_fedora30.md
Last active Jan 12, 2021
Fedora 30 Connect to OpenVPN
View openvpn_fedora30.md

Install Openvpn

sudo dnf install openvpn

Configure Path

mv myopenvpconfig /etc/openvpn/client/
@gangsta
gangsta / Prometheus node_exporter Metrics Data Size and Time Count
Last active Apr 10, 2019
Bash Script to Fetching Node_Exporter Data Size and Time for Consuming Metrics
View Prometheus node_exporter Metrics Data Size and Time Count
#!/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 / Puppetagent.md
Last active Dec 20, 2017
Puppet agent centos 7
View Puppetagent.md

Install Puppet agent 4 Centos 7

yum install -y https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
yum -y install puppet-agent
/opt/puppetlabs/bin/puppet config set server foreman.domain.com --section agent
/opt/puppetlabs/bin/puppet agent -t
/opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
@gangsta
gangsta / Install Vagrant Virtualbox Fedora 27.md
Last active Apr 10, 2019
Install Vagrant and Virtualbox on Fedora 27
View Install Vagrant Virtualbox Fedora 27.md

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 / Install Vagrant Libvirt Fedora 27.md
Last active Jan 27, 2019
How to install Libvirt Vagrant on Fedora 27
View Install Vagrant Libvirt Fedora 27.md

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