Skip to content

Instantly share code, notes, and snippets.

View nask0's full-sized avatar
👾
nothing

nask0 nask0

👾
nothing
  • ...somewhere in time!
View GitHub Profile

GRUB INIT TUNE

A GRUB_INIT_TUNE uses the following format: tempo [freq duration] [freq duration]…

  • tempo: is the base for all note durations in beats per minute, 60 gives a second base (60s/60 = 1s), 120 gives a half-second base, etc.
  • freq: is the frequency (in hertz) of the sound (set 0 to produce a rest)
  • duration: is the duration of the sound in beats

You can preview the tunes below with the standalone index.html included in this gist.

@nask0
nask0 / skylake-tuning-linux.md
Created March 22, 2024 19:24 — forked from scalahub/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:

@nask0
nask0 / GRUB_INIT_TUNE.md
Created May 30, 2023 07:59 — forked from ArtBIT/GRUB_INIT_TUNE.md
A collection of GRUB init tunes
  1. Add the RPMFusion repositories (both free and non-free) to the YUM repository directory (/etc/yum.repos.d/):
sudo dnf localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  1. Install the patched version of FreeType with subpixel rendering enabled:
sudo dnf install -y freetype-freeworld
@nask0
nask0 / session-life-cycle.md
Created April 21, 2023 23:37 — forked from mindplay-dk/session-life-cycle.md
Complete overview of the PHP SessionHandler life-cycle

This page provides a full overview of PHP's SessionHandler life-cycle - this was generated by a set of test-scripts, in order to provide an exact overview of when and what you can expect will be called in your custom SessionHandler implementation.

Each example is a separate script being run by a client with cookies enabled.

To the left, you can see the function being called in your script, and to the right, you can see the resulting calls being made to a custom session-handler registed using session_set_save_handler().

@nask0
nask0 / mount-encrypted-partition-fedora-live-usb.sh
Created April 19, 2023 10:30 — forked from agilepoodle/mount-encrypted-partition-fedora-live-usb.sh
When you need to access LUKS encrypted partition with a Fedora Live CD or USB
# make sure crypt module in use
sudo modprobe dm-crypt
# Find out which drive it was with the following command:
sudo fdisk -l
# You must mount /dev/sda3 myvolume
# use cryptsetup, device is accessible under /dev/mapper/myvolume
sudo cryptsetup luksOpen /dev/sde3 myvolume
@nask0
nask0 / Phalcon-Zephir.md
Created February 24, 2023 03:02 — forked from denji/Phalcon-Zephir.md
Zephir write your PHP Extension

About this article will do the following things:

  • Install & Setup
  • Write a simple Router
  • Zephir rewritten version
  • Extension installation and testing

Installation

@nask0
nask0 / index.md
Created October 13, 2022 12:25 — forked from hrdtbs/index.md
Connect to Github with ED25519

Connect to github with ED25519

2017/08/09 MacOS

Check SSH key

$ ls -al ~/.ssh
@nask0
nask0 / laravellocal.md
Created July 11, 2022 07:31 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@nask0
nask0 / mr-robot-religion.txt
Created July 9, 2021 17:35 — forked from davidbgk/mr-robot-religion.txt
Transcript of Mr Robot S02E03 about religion
Is that what God does?
He helps?
Tell me,
why didn't God help
my innocent friend
who died for no reason
while the guilty roam free?
Okay, fine.
Forget the one-offs.
How about the countless wars