Skip to content

Instantly share code, notes, and snippets.

View gak4u's full-sized avatar

Anil Kumar Gurram gak4u

View GitHub Profile
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;(t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Hls=e()}}(function(){return(function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(a)return a(s,!0);var u=Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=r[s]={exports:{}};t[s][0].call(d.exports,function(e){var r;return n(t[s][1][e]||e)},d,d.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n})({1:[function(e,t,r){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._
@gak4u
gak4u / iommu.sh
Created July 9, 2022 19:53
iommu.sh
#!/bin/bash
# change the 999 if needed
shopt -s nullglob
for d in /sys/kernel/iommu_groups/{0..999}/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;
#/bin/sh
curl -o /opt/patch.sh https://raw.githubusercontent.com/keylase/nvidia-patch/master/patch.sh
chmod 744 /opt/patch.sh
/opt/patch.sh
cat > /etc/systemd/system/driver-patch.service <<EOF
[Unit]
After=network.service
@gak4u
gak4u / RPi-install-wifi.sh
Last active July 5, 2021 06:00 — forked from kmonsoor/RPi-install-wifi.sh
install wifi adapter drivers on Raspberry Pi; origin: http://www.fars-robotics.net/install-wifi
#!/bin/bash
#set -e
# origin-source: http://www.fars-robotics.net/install-wifi
# install-wifi - v9.4 - by MrEngman.
# After downloading this script:
# $ sudo mv ./install-wifi /usr/bin/install-wifi
# $ sudo chmod +x /usr/bin/install-wifi
# $ sudo install-wifi -h
#
{
"streams": [
{
"direction": "IN",
"input": {
"type": "SDI",
"port": 0
},
"output": {
"type": "UDP",
{
"video": "http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_10mb.mp4",
"play_till_end": true,
"text": "Line 1 text\n Line 2 text"
}