Skip to content

Instantly share code, notes, and snippets.

View kernelOfTruth's full-sized avatar

kernelOfTruth aka. kOT, Gentoo user kernelOfTruth

  • private
  • Vienna, Austria
View GitHub Profile
@kernelOfTruth
kernelOfTruth / result.md
Created July 4, 2018 23:36 — forked from fffonion/result.md
testing gcc optimization options
args run_time
-Dfoo 1.942
-ftree-sink SAME
-fauto-inc-dec SAME
-fcrossjumping 1.925
-fif-conversion SAME
-faggressive-loop-optimizations SAME
-fconserve-stack SAME
-ftree-vrp SAME
@kernelOfTruth
kernelOfTruth / firefox.md
Created June 29, 2018 00:55
Configuring Firefox for security and privacy (as of Oct. 2017)

Configuring/Hardening Firefox for Security and Privacy

Source for some of these

  1. about:config
  • dom.event.clipboardevents.enabled => false
  • clipboard.plainTextOnly => true
  • referer spoofSource => true
  • media.peerconnection
@kernelOfTruth
kernelOfTruth / zfs_revert-0.1.py
Created August 9, 2017 19:20
Revert ZFS changes by destroying uberblocks
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Script for reverting ZFS changes by destroying uberblocks
#Author: Martin Vool
#E-mail: [email protected]
#Version: 0.1
#Date: 16 November 2009
@kernelOfTruth
kernelOfTruth / Grandtheftauto5-linux.md
Created September 15, 2016 20:50 — forked from BeauBouchard/Grandtheftauto5-linux.md
How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

Date Completed: Not done yet ~~ April 23rd 2015

My Test System

  • Video Card: Nvidia GTX 465 (lol right? Game runs shitty)
  • Driver: tested on 331.38, works on 331.38+
  • OS: Ubuntu x64 14.04
  • POL: I used Play on linux 4, I assume most of the capabilities are in winetricks
  • Wine: wine-staging Sun, 19 Apr 2015 version 1.7.41 x64 bit
@kernelOfTruth
kernelOfTruth / memtest.sh
Created December 2, 2015 00:46 — forked from dasjoe/memtest.sh
Efficient, multithreaded RAM stress tester, using md5sum
#!/bin/bash
# source: https://groups.google.com/a/zfsonlinux.org/d/msg/zfs-discuss/i09_VBXAyig/UWjPa23cQ0YJ
pids=""
tdir=/tmp/memtest.$$
function cleanup()
{
[[ -n "${pids}" ]] && kill -9 ${pids} &> /dev/null || true
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>American Medical Association (Alphabetical Bibliography</title>
<id>http://www.zotero.org/styles/ama-alphabetical</id>
<link href="http://www.zotero.org/styles/ama-alphabetical"/>
<author>
<name>Julian Onions</name>
<email>[email protected]</email>
</author>
From fb62238974be027f3619881fc336ae41c01cfe76 Mon Sep 17 00:00:00 2001
From: Russell King <[email protected]>
Date: Sat, 9 Jul 2011 16:09:43 +0100
Subject: [PATCH 01/13] ARM: vfp: fix a hole in VFP thread migration
Fix a hole in the VFP thread migration. Lets define two threads.
Thread 1, we'll call 'interesting_thread' which is a thread which is
running on CPU0, using VFP (so vfp_current_hw_state[0] =
&interesting_thread->vfpstate) and gets migrated off to CPU1, where
From 56919e922baa154ac6e498bcc1520dc965065265 Mon Sep 17 00:00:00 2001
From: Colin Cross <[email protected]>
Date: Fri, 22 Jul 2011 14:57:09 -0700
Subject: [PATCH 1/5] cpu_pm: call notifiers during suspend
Implements syscore_ops in cpu_pm to call the cpu and
cpu cluster notifiers during suspend and resume,
allowing drivers receiving the notifications to
avoid implementing syscore_ops.
#!/usr/bin/env python
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 textwidth=79 autoindent
"""
Python source code
Last modified: 15 Feb 2014 - 13:38
Last author: lmwangi at gmail com
Displays the available memory fragments
by querying /proc/buddyinfo