Skip to content

Instantly share code, notes, and snippets.

View loathingKernel's full-sized avatar

Stelios Tsampas loathingKernel

  • Greece
  • 10:33 (UTC +03:00)
View GitHub Profile
@loathingKernel
loathingKernel / build_boost.sh
Created October 31, 2017 21:38
Make The Dark Mod compile on x64 Arch
#!/usr/bin/sh
export CC="ccache gcc"
export CXX="ccache g++"
export CPPFLAGS="-D_FORTIFY_SOURCE=2"
export CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt -m32"
export CXXFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt -m32"
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -m32"
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
@loathingKernel
loathingKernel / PKGBUILD
Created January 17, 2018 17:11
PPSSPP PKGBUILD without pulling in ppsspp-ffmpeg repo
# $Id$
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Ben Reedy <thebenj88@gmail.com>
# Contributor: Clement Guerin <geecko.dev@free.fr>
# Contributor: Thiago Kenji Okada <thiago.mast3r@gmail.com>
pkgbase=ppsspp
pkgname=('ppsspp' 'ppsspp-headless' 'ppsspp-qt')
pkgver=1.5.4.r374.b6ce6e2e6
#!/bin/sh
#command="optirun -b none nvidia-settings -c :8"
command="nvidia-settings -c :0"
# fan speed offset from temperature value
offset=0
# sets the refresh interval in seconds
interval=10
# reset values upon termination
# Maintainer: William Turner <willtur.will@gmail.com>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=afdko
pkgver=3.0.2a5
pkgrel=1
pkgdesc='Adobe Font Development Kit for OpenType'
arch=('x86_64')
url="https://github.com/adobe-type-tools/$pkgname"
license=('custom')
start_string = "abcdefg"
replace_string = "abc"
endstring = start_string.replace(replace_string, "")
# Result endstring: "defg"
@loathingKernel
loathingKernel / 10-proton-protonify_staging.patch
Created March 22, 2021 21:27
proton-ge-custom `dlls/vulkan-1/vulkan.c` patch failure
From 7bd039f34f5fc1123524ddb22769f6e16e7d9c88 Mon Sep 17 00:00:00 2001
From: Andrew Eikum <aeikum@codeweavers.com>
Date: Thu, 11 May 2017 10:01:16 -0500
Subject: [PATCH] HACK: ws2_32: Fake success when trying to bind to an IPX
address
---
dlls/ws2_32/socket.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/default_pfx.py b/default_pfx.py
index 084ee79..7e9f87c 100755
--- a/default_pfx.py
+++ b/default_pfx.py
@@ -57,12 +57,14 @@ def setup_dll_symlinks(default_pfx_dir, dist_dir):
bitness = dll_bitness(filename)
if bitness == 32:
libdir = os.path.join(dist_dir, 'lib/wine')
+ dlldir = "i386-windows"
elif bitness == 64:
/*
$active_base = #202225;
$active_text = #eeeeee;
$widget_base = #333344;
$primary_border = #42474E;
$secondary_border = darkslategrey;
*/
* { background-color: #202225; }
* { color: #eeeeee; }
builddate = 1626690883 | builddate = 1626704956
builddir = /build | builddir = /home/ptr1337/repos/proton-ge-custom
buildenv = !ccache buildenv = !ccache
buildenv = check buildenv = check
buildenv = color buildenv = color
buildenv = !distcc buildenv = !distcc
buildenv = !sign buildenv = !sign
buildtool = makepkg buildtool = makepkg
buildtoolver = 6.0.0 buildtoolver = 6.0.0
format = 2 format = 2
class IndicatorLineEdit(QWidget):
def __init__(self,
text: str = "",
edit_func: Callable[[str], bool] = None,
save_func: Callable[[str], None] = None,
horiz_policy: QSizePolicy = QSizePolicy.Expanding,
parent=None):
super(IndicatorLineEdit, self).__init__(parent=parent)
self.setObjectName("IndicatorTextEdit")
self.layout = QHBoxLayout(self)