Skip to content

Instantly share code, notes, and snippets.

@versine
versine / README.md
Created March 28, 2019 19:42 — forked from ruario/README.md
Alternative (fake) makepkg to create Slackware packages

These scripts are for people who want an alternative to the official Slackware provided makepkg.

Why would you want that?

  • To be able to create Slackware packages with root-owned files, even when run as a regular user.
  • To be able create Slackware packages on non-Slackware based systems without the need to port Pkgtools and its dependencies (e.g. tar-1.13). Some examples being:
    • Projects (or proprietary software vendors) that want to be able to provide binary Slackware packages, where their build/packaging system is on another distro.
    • People who want to pair a package creation script with spkg to use as a secondary package manger on a non-Slackware based distro. This gives the advantage of simple packaging scripts (.SlackBuilds) for additional, self-compiled software.

Two versions are provided:

@versine
versine / disable-pie.patch
Created May 10, 2018 21:54
patch to disable PIE when compiling linux kernel
--- a/Makefile 2018-05-10 17:52:01.443057527 -0400
+++ b/Makefile 2018-05-10 17:51:53.631197061 -0400
@@ -611,6 +611,12 @@
# Defaults to vmlinux, but the arch makefile usually adds further targets
all: vmlinux
+# force no-pie for distro compiler that enable pie by default
+KBUILD_CFLAGS += $(call cc-option, -fno-pie)
+KBUILD_CFLAGS += $(call cc-option, -no-pie)
+KBUILD_AFLAGS += $(call cc-option, -fno-pie)
@versine
versine / LogContext.h
Created March 28, 2017 03:36 — forked from jupp0r/LogContext.h
Structured logging adapter for C++
#pragma once
#include <vector>
#include <string>
#include <iostream>
class LogContext
{
public:
template <typename T>
@versine
versine / main.js
Created January 14, 2017 19:42 — forked from cem2ran/main.js
React Getting Started - How it should be!
import React from 'react'
import ReactDOM from 'react-dom'
const Hello = ({name}) => <h1>Hello {name}!</h1>
ReactDOM.render(
<Hello name={"vjeux"}/>,
document.body.appendChild(document.createElement("div"))
)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.thirty {
width: 30%;
min-width: 150px;
min-height: 150px;
#define GLEW_STATIC
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <iostream>
#include <cmath>
#include <stdio.h>
#include <windows.h>
#pragma comment(lib, "opengl32.lib")
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <windows.h>
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "SDL2.lib")
#include <iostream>
#include <cmath>
bool running = true;