Skip to content

Instantly share code, notes, and snippets.

@onli
onli / enblocal.ini
Created March 19, 2023 10:45
ENB-Configuration for a stable Skyrim (with SMAA)
[PROXY]
EnableProxyLibrary=true
InitProxyFunctions=true
ProxyLibrary=d3d9_smaa.dll
[GLOBAL]
UsePatchSpeedhackWithoutGraphics=false
UseDefferedRendering=false
IgnoreCreationKit=true
IsEnderal=false
[PERFORMANCE]
@onli
onli / s9y_catcount.sql
Last active December 20, 2022 14:31
Count how many articles were published in a Serendipity blog in a specific category after a timstamp (here: 1.1.2022)
SELECT category_name, COUNT(*) as amount FROM serendipity_entries INNER JOIN serendipity_entrycat ON serend
ipity_entries.id = serendipity_entrycat.entryid INNER JOIN serendipity_category ON serendipity_entrycat.categoryid
= serendipity_category.categoryid WHERE timestamp > 1640995201 GROUP BY category_name ORDER BY amount;
@onli
onli / vkBasalt.conf
Last active September 15, 2022 20:38
vkBasalt for FSR improvement
#effects is a colon seperated list of effect to use
#e.g.: effects = fxaa:cas
#effects will be run in order from left to right
#one effect can be run multiple times e.g. smaa:smaa:cas
#cas - Contrast Adaptive Sharpening
#dls - Denoised Luma Sharpening
#fxaa - Fast Approximate Anti-Aliasing
#smaa - Enhanced Subpixel Morphological Antialiasing
#lut - Color LookUp Table
effects = smaa:dls
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@onli
onli / functions_images.inc.php
Created July 31, 2020 13:28
with caching for traversePath
<?php
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
if (IN_serendipity !== true) {
die ("Don't hack!");
}
/**
* Check if an uploaded file is "evil"
#! /bin/bash
# abort on all errors
set -e
if [ "$DEBUG" != "" ]; then
set -x
fi
script=$(readlink -f "$0")
@onli
onli / mysqli.inc.php
Created March 23, 2020 14:59
After my changes, with charset debug
<?php
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
/**
* Tells the DB Layer to start a DB transaction.
*
* @access public
*/
function serendipity_db_begin_transaction(){
@onli
onli / mysqli.inc.php
Created March 23, 2020 14:58
Before my changes, with charset debug output
<?php
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
/**
* Tells the DB Layer to start a DB transaction.
*
* @access public
*/
function serendipity_db_begin_transaction(){
@onli
onli / izulu-1.1
Created April 23, 2017 14:22
izulu with KDE plasma detection
#!/bin/bash
# izulu - Change the wallpaper according to the weather
#
# Copyright (C) 2009 Malte Paskuda
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.