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
@fffonion
fffonion / result.md
Created September 23, 2015 22:57
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
@phiresky
phiresky / motioninterpolation.vpy
Last active January 12, 2025 07:39
Realtime motion interpolating 60fps playback in mpv
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()
@BeauBouchard
BeauBouchard / Grandtheftauto5-linux.md
Last active August 20, 2024 13:33
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
@ghedo
ghedo / 60fps.py
Last active November 15, 2021 19:31
VapourSynth script to convert videos to 60fps (with mpv)
# Usage: mpv --vf=vapoursynth=60fps.py --hwdec=no <file>
import vapoursynth as vs
core = vs.get_core()
src_fps = 24
dst_fps = 60
clip = core.std.AssumeFPS(video_in, fpsnum=src_fps)
super = core.mv.Super(clip, pel=2)
@Oberon00
Oberon00 / 0001-ARM-vfp-fix-a-hole-in-VFP-thread-migration.patch
Last active August 29, 2015 14:11
Full patchset for Exynos 4210 FPU corruption fix. (Revert Lanchon's changes that are not included here (that's just his last one) first!)
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
@Oberon00
Oberon00 / 0001-cpu_pm-call-notifiers-during-suspend.patch
Last active August 29, 2015 14:11
Exynos 4210 FPU register corruption/music bug fix. (If you applied Lanchon's last change to vfphw.S, you should revert it before merging this).
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.
@dasjoe
dasjoe / memtest.sh
Created October 31, 2014 15:13
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
@patrickmslatteryvt
patrickmslatteryvt / ZFS on Linux (CentOS v6.5)
Last active August 29, 2015 14:00
ZFS on Linux (CentOS v6.5)
ZFS on Linux
FAQ
http://zfsonlinux.org/faq.html
A not so short guide to ZFS on Linux
http://unicolet.blogspot.com/2013/03/a-not-so-short-guide-to-zfs-on-linux.html
ZFS Cheatsheet
http://www.datadisk.co.uk/html_docs/sun/sun_zfs_cs.htm
@labeneator
labeneator / buddyinfo.py
Created March 15, 2014 21:38
Pretty prints /proc/buddyinfo
#!/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
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 20, 2025 21:04
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname