Skip to content

Instantly share code, notes, and snippets.

View olealgoritme's full-sized avatar
🐧
vim >

Ole Algoritme olealgoritme

🐧
vim >
View GitHub Profile
@olealgoritme
olealgoritme / compile_newest_stable_kernel_with_acso_patch.sh
Created January 26, 2019 15:08 — forked from mdPlusPlus/compile_newest_stable_kernel_with_acso_patch.sh
Download, patch, compile and install the newest stable Linux kernel with the ACS override patch (Ubuntu / Debian)
#!/bin/bash
function install_dependencies() {
echo "Installing dependencies..."
sudo apt -qq update
sudo apt -qq install -y curl git wget
sudo apt -qq install -y bison flex kernel-package libssl-dev
}
function init() {
@olealgoritme
olealgoritme / buffer_overflow_stack_smashing.c
Created February 27, 2019 13:14
buffer overflow (stack smashing)
#include <stdio.h>
#include <string.h>
char password[] = "password";
int get_password() {
int auth_ok = 0;
char buff[16];
printf("Enter password: ");
// from nvidia-patch hack
#include "pch.h"
#include "nvfbcdefs.h"
#ifdef _WIN64
#define LIBNAME TEXT(".\\NvFBC64_.dll")
#else
#define LIBNAME TEXT(".\\NvFBC_.dll")
#endif
@olealgoritme
olealgoritme / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
Created April 26, 2020 20:35 — forked from Brainiarc7/ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware

Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:

Considerations to take when live streaming:

The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:

  1. Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.

  2. Set up the encoders as shown:

@olealgoritme
olealgoritme / The Technical Interview Cheat Sheet.md
Created September 7, 2020 17:52 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\