Skip to content

Instantly share code, notes, and snippets.


Marek Bartosiewicz mbartosi

View GitHub Profile
mailhost / dsdt.patch
Created Jun 10, 2019
Dell Precision 5510 1.10.0 DSDT fixes
View dsdt.patch
--- dsdt.orig 2019-06-10 16:09:40.945676250 +0200
+++ dsdt.dsl 2019-06-10 16:28:15.274723137 +0200
@@ -3905,11 +3905,13 @@
If (LEqual (PM6H, One))
CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW) // _RW_: Read-Write Status
- Store (Zero, ECRW (If (PM0H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN) // _LEN: Length
- Store (Zero, F0LN) /* \_SB_.PCI0._CRS.F0LN */
rjdp /
Last active Jun 24, 2020
Script for downloading course Lectures from coursera specialization or individual course
import os
import requests
import time
import sys
video_quality = "540p" # available qualities 360p, 540p, 720p
In order to get courseId go to a course page open network tab in browser dev tools and search for "onDemandSpecializations"
in search input of network tab and then go to videos section of say week 1 , check the query param "courseId" its value is what we use can use as value for "one_of_specialization_course_id"
maty974 /
Last active Dec 7, 2018
Centos 7 on ASUS GL703VM - Tips & Workaround

ASUS GL703VM tips & Workaround


Not working:

  • Fn+F12 : airplane mode
  • Fn+F11 : sleep mode
  • Fn + F7-8 : lcd backlight brightness
  • Fn+F5 : fan turbo mode?
bvis / Jenkinsfile
Last active Aug 4, 2020
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
View Jenkinsfile
pipeline {
agent { node { label 'swarm-ci' } }
environment {
SLACK_CHANNEL = "#deployment-notifications"
mogenson /
Last active Apr 5, 2020
Installing Debian Stretch + Mate + i3-gaps on a Dell XPS 9360

Installation and setup notes for Debian 9 on Dell XPS 9360

Using Mate DE and i3-gaps WM

May 4th 2017


Use Debian Stretch RC3 Installer:

  • Non-graphical install
  • Ignore warning about firmware not found for wireless card
Brainiarc7 /
Last active Jul 2, 2020
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:

tpruzina / gist:c4d9c0ca6bdbb6e78ab2126a7cdf8f1c
Last active May 10, 2017
View gist:c4d9c0ca6bdbb6e78ab2126a7cdf8f1c
diff -ur NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h
--- NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h 2017-02-08 04:58:34.000000000 +0100
+++ NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h 2017-02-23 18:57:34.655592444 +0100
@@ -46,6 +46,8 @@
* 2016 Dec 14:5b56d49fc31dbb0487e14ead790fc81ca9fb2c99
+#include <linux/version.h>
GMMan /
Last active Jul 22, 2020
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering

binaerbaum / arch-linux-install
Last active Jun 16, 2020 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
View arch-linux-install
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide ( contains a more verbose description.
# Download the archiso image from
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swiss-french keymap
You can’t perform that action at this time.