Skip to content

Instantly share code, notes, and snippets.

View alinefr's full-sized avatar

Aline Freitas alinefr

  • São Paulo/SP, Brazil
View GitHub Profile
@Brainiarc7
Brainiarc7 / skylake-tuning-linux.md
Last active October 21, 2024 21:31
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:

@anhldbk
anhldbk / blockchain.md
Created December 29, 2016 15:57
Blockchain applications

What are non-Bitcoin applications of blockchain technology?

"In 2015 Uber, the world's largest taxi company owns no vehicles, Facebook the world's most popular media owner creates no content, Alibaba the most valuable retailer has no inventory, and Airbnb the world's largest accommodation provider owns no real estate."*

Through collaboration and value distribution, decentralized autonomous organizations (DAOs) will be just as disruptive to the above centralized business models.

Currency

@devStepsize
devStepsize / botkit_slack_buttonbot.js
Created April 22, 2016 19:03
An example of Botkit using the Slack Button to offer a bot integration (from https://github.com/howdyai/botkit/blob/master/examples/slackbutton_bot.js)
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______ ______ ______ __ __ __ ______
/\ == \ /\ __ \ /\__ _\ /\ \/ / /\ \ /\__ _\
\ \ __< \ \ \/\ \ \/_/\ \/ \ \ _"-. \ \ \ \/_/\ \/
\ \_____\ \ \_____\ \ \_\ \ \_\ \_\ \ \_\ \ \_\
\/_____/ \/_____/ \/_/ \/_/\/_/ \/_/ \/_/
This is a sample Slack Button application that adds a bot to one or many slack teams.
# RUN THE APP:
Create a Slack app. Make sure to configure the bot user!
-> https://api.slack.com/applications/new
@arthurzenika
arthurzenika / poodlebleed.sls
Created October 15, 2014 09:22
poodlebleed.sls for saltstack deploymenet of poodel vulnerability in SSLv3
{% if salt['pkg.version']('apache2') %}
poodle apache server restart:
service.running:
- name: apache2
{% for foundfile in salt['cmd.run']('rgrep -m 1 SSLProtocol /etc/apache*').split('\n') %}
{% if 'No such file' not in foundfile and 'bak' not in foundfile and foundfile.strip() != ''%}
poodle {{ foundfile.split(':')[0] }}:
file.replace:
- name : {{ foundfile.split(':')[0] }}
- pattern: "SSLProtocol all -SSLv2[ ]*$"
@vicalejuri
vicalejuri / jinja2_simple_render
Created February 14, 2014 20:14
Jinja2 Simple Render Example
import os
from jinja2 import FileSystemLoader, Environment
template_path = os.getcwd()
# Load jinja
jinja_loader = FileSystemLoader( template_path )
jinja_env = Environment( loader=jinja_loader )
# Get the template and render it using `myvars`
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: