Skip to content

Instantly share code, notes, and snippets.

@ashed
ashed / skylake-tuning-linux.md
Created November 1, 2021 14:44 — forked from Brainiarc7/skylake-tuning-linux.md
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:

@ashed
ashed / feeds.yml
Created July 3, 2020 09:55 — forked from shpaker/habr-radiot-bot.yml
configuration for feedforbot
# ================ RADIO-T https://telegram.me/radiotnews
# Umputun
- url : 'http://feeds.rucast.net/Umputun'
id : '@radiotnews'
format : '&#x1f60e; <a href="$url">$title</a>\nЕженедельный подкаст от #Umputun'
preview: true
# Radio-t
- url : 'http://feeds.rucast.net/radio-t'
id : '@radiotnews'
format : '&#x1f47e; <a href="$url">$title</a>\nЕженедельные разговоры на темы хайтек, высоких компьютерных технологий, гаджетов, облаков, программирования и прочего интересного из мира ИТ. #radiot'
@ashed
ashed / Habr.Features
Created May 14, 2020 15:14
Add some useful features (comment sorting, dark-mode, viewing of deleted topics) to habr.com
// ==UserScript==
// @name Habr.Features
// @namespace https://tampermonkey.net/
// @version 3.7.72
// @description Всякое-разное для Habr aka habr.com
// @author AngReload & ashed
// @match https://habr.com/
// @include https://habr.com/*
// @namespace habr_comments
// @run-at document-start
@ashed
ashed / all.txt
Created April 10, 2020 21:31 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@ashed
ashed / logstash --modules netflow --setup errors
Created January 23, 2019 13:24
logstash --modules netflow --setup errors
[root@localhost bin]# /usr/share/logstash/bin/logstash --modules netflow --setup
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[WARN ] 2019-01-23 13:10:10.857 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
[INFO ] 2019-01-23 13:10:10.923 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=>"6.5.3"}
[INFO ] 2019-01-23 13:10:12.676 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] modulescommon - Setting up the netflow module
[ERROR] 2019-01-23 13:10:13.922 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] kibanaclient - Error when executing Kibana client request {:error=>#<Manticore::SocketException: Connection r
@ashed
ashed / krona.ini
Created January 16, 2019 06:44
uwsgi krona.ini
/etc/uwsgi/apps-enabled/krona.ini
[uwsgi]
# the base directory (full path)
chdir = /var/www/krona
wsgi-file = /var/www/krona/krona/wsgi.py
# callable - name-of-application
callable = krona
@ashed
ashed / uwsgi_params
Created January 15, 2019 11:22
uwsgi_params (default site local)
uwsgi_param QUERY_STRING $query_string;
uwsgi_param REQUEST_METHOD $request_method;
uwsgi_param CONTENT_TYPE $content_type;
uwsgi_param CONTENT_LENGTH $content_length;
uwsgi_param REQUEST_URI $request_uri;
uwsgi_param PATH_INFO $document_uri;
uwsgi_param DOCUMENT_ROOT $document_root;
uwsgi_param SERVER_PROTOCOL $server_protocol;
uwsgi_param REQUEST_SCHEME $scheme;
@ashed
ashed / nginx (default site local).conf
Created January 15, 2019 11:20
nginx (default site local).conf
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@ashed
ashed / strings.xml
Created March 27, 2017 06:06
A2dpvolume
https://gist.github.com/4e526babe47744ad96ca364de56b20e6
@ashed
ashed / strings.xml
Created March 27, 2017 06:04
a2dpvolume Russian strings.xml translation shared with Stringlate
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">A2DP Volume</string>
<string-array name="gpsDistance">
<item>2м (6фут)</item>
<item>5м (15фут)</item>
<item>10с (30фут)</item>
<item>15м (45фут)</item>
<item>20м (60фут)</item>
<item>30м (90фут)</item>