Skip to content

Instantly share code, notes, and snippets.

View jstarcher's full-sized avatar

Jordan Starcher jstarcher

  • The Starcher Organization
  • Ohio
View GitHub Profile
@jstarcher
jstarcher / EndeavourOS-Nvidia-fixes.md
Created July 9, 2024 02:44
Stable Nvidia + Wayland on EndeavourOS (Arch) with working Suspend

This guide was created for EndeavourOs Endeavour Release which if using the Online installer, as of July 2024, will provide Plasma 6.1 and Nvidia 555 drivers. This guide shows using Grub but will work with systemd-boot as well if you follow steps for kernel params.

  1. Create file /etc/modprobe.d/nvidia.conf with the following contents
options nvidia_drm modeset=1
options nvidia_drm fbdev=1
options nvidia NVreg_EnableGpuFirmware=0
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
@jstarcher
jstarcher / gist:ff24ee351a97fbd145a225bfe4b0e158
Created February 26, 2018 18:49
Crimpshrine kill ryzen
cd /tmp
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.13.tar.xz
tar -xf linux-4.13.tar.xz
cd linux-4.13
make defconfig
while true; do make clean; make -j17 || break; done; echo "Found a segfault"; date
import base64
import os
import mimetypes
from django.core.files.uploadedfile import SimpleUploadedFile
from tastypie import fields
class Base64FileField(fields.FileField):
"""
A django-tastypie field for handling file-uploads through raw post data.
function ers_permission() {
$items = array(
'administer ers' => array(
'title' => t('Administer entity revision scheduler'),
'description' => t('Allows a user to administer settings for the entity revision scheduler.'),
),
'ers preview schedule' => array(
'title' => t('Preview entity schedule'),
'description' => t('Allows a user to preview the future schedule of entities using the Preview schedule block.'),
),