Skip to content

Instantly share code, notes, and snippets.

View rogerzanoni's full-sized avatar

Roger Zanoni rogerzanoni

View GitHub Profile
@rogerzanoni
rogerzanoni / .config chromium-flags.conf
Created November 15, 2023 20:25 — forked from Longhanks/.config chromium-flags.conf
chromium --enable-gpu-rasterization --enable-zero-copy --enable-accelerated-video-decode
--enable-accelerated-video-decode
--enable-accelerated-mjpeg-decode
--enable-features=VaapiVideoDecoder,CanvasOopRasterization
--enable-gpu-compositing
--enable-gpu-rasterization
--enable-native-gpu-memory-buffers
--enable-oop-rasterization
--canvas-oop-rasterization
--enable-raw-draw
--use-vulkan
@rogerzanoni
rogerzanoni / gist:f41efc5e083f1b72eacc54792bb97074
Created September 16, 2021 13:54 — forked from pellegrino/gist:4066065
Médicos e dentistas brasileiros em berlin
Clínica geral:
Marcus Thuma. Kant Praxis
Centro para medicina interna
Cardiologia, Gastroenterologia, Clínica Geral
Kurfürstendamm 42
10719 Berlim
Tel: (030) 88 71 44 60
Fax: (030) 88 71 44 619
E-mail: info@kantpraxis.de
@rogerzanoni
rogerzanoni / kernel-dev.md
Created August 13, 2021 06:43 — forked from vegard/kernel-dev.md
Getting started with Linux kernel development

Getting started with Linux kernel development

Prerequisites

The Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.

It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.

Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.

Keybase proof

I hereby claim:

  • I am rogerzanoni on github.
  • I am rogerzanoni (https://keybase.io/rogerzanoni) on keybase.
  • I have a public key ASB9j_jbMgeOZqVo3J-yaf8mjEQ-NGUZRCxlC0hKLwnL1wo

To claim this, I am signing this object:

#!/bin/sh
acpi_listen | while IFS= read line
do
if [ "$line" == "jack/headphone HEADPHONE plug" ]; then
echo "Headphone plugged, muting HDMI output..."
amixer -c 0 -d 3 set Master mute
elif [ "$line" == "jack/headphone HEADPHONE unplug" ]; then
echo "Headphone unplugged, turning HDMI output on..."
amixer -c 0 -d 3 set Master unmute
@rogerzanoni
rogerzanoni / .xinitrc
Created August 28, 2017 20:07
dedicated-nvidia-config
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
// BluetoothLowEnergy.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#pragma warning (disable: 4068)
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
@rogerzanoni
rogerzanoni / springer-free-maths-books.md
Created December 29, 2015 14:32 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
@rogerzanoni
rogerzanoni / emacs-email-setup.md
Created April 8, 2014 13:30 — forked from areina/emacs-email-setup.md
Emacs mu4e config tips

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
@rogerzanoni
rogerzanoni / GameOfLife.qml
Created August 29, 2013 17:33
File for syntax highlight test
import QtQuick 1.1
Rectangle {
id: root
width: world.cellsWidth + world.horizontalSpacing
height: world.cellsHeight + world.verticalCells
ListModel {
id: worldModel