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 / 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
# tcpdump -n -e -ttt -i pflog0 icmp
tcpdump: WARNING: pflog0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 65535 bytes
00:00:00.000000 rule 21..16777216/0(match): pass out on bridge3: 66.61.84.33 > 172.16.3.143: ICMP echo request, id 61377, seq 0, length 64
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.'),
),