This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.'), | |
), |