Skip to content

Instantly share code, notes, and snippets.

View foo.go
package main
import (
"crypto/md5"
"fmt"
"os"
)
func check(e error) {
if e != nil {
View foo.go
package main
import (
"crypto/md5"
"fmt"
"os"
)
func check(e error) {
if e != nil {
View plexwatcher.py
#!/usr/bin/env python3
#
# plexwatcher.py - parse watcher events to partially scan plex libraries
# relevant paths and sections are discovered directly from the plex database
#
# Author: Felix Buenemann - https://github.com/felixbuenemann
import os, sys, re, sqlite3, subprocess
from os.path import dirname
# reload(sys)
View openseadragon-imgix-poc.html
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body, #openseadragon1 {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
View aus_driver_amazon_s3_exception_typo3_8.7.22.txt
#0 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Middleware.php(79): Aws\Api\Validator->validate('HeadObject', Object(Aws\Api\StructureShape), Array)
#1 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(354): Aws\Middleware::Aws\{closure}(Object(Aws\Command), NULL)
#2 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(377): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#3 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(311): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#4 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(330): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#5 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Middleware.php(55): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#6 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/SSECMiddleware.php(59): Aws\Middlew
View apache-solr-proxy-cors.conf
<VirtualHost *:443>
ServerName solr.example.org
DocumentRoot /var/www/html
<LocationMatch "^/(solr/core_[a-z]{2,4}/select)$">
Order allow,deny
Allow from 127.0.0.1
Satisfy any
AuthType Basic
AuthName Restricted
View Python_2018-06-14-181906_couchbook.crash
Process: Python [21106]
Path: /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.15 (2.7.15)
Code Type: X86-64 (Native)
Parent Process: zsh [95368]
Responsible: Python [21106]
User ID: 501
Date/Time: 2018-06-14 18:19:03.823 +0200
View pyvips-cache-crash-bt1.txt
(lldb) target create "/usr/local/bin/python2" --core "/cores/core.20206"
Core file '/cores/core.20206' (x86_64) was loaded.
(lldb) bt all
warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.
* thread #1, stop reason = signal SIGSTOP
* frame #0: 0x00007fff58ea5a36 libsystem_kernel.dylib`__psynch_mutexdrop + 10
frame #1: 0x00007fff5906dae4 libsystem_pthread.dylib`_pthread_mutex_unlock_drop + 36
frame #2: 0x00007fff5906b917 libsystem_pthread.dylib`_pthread_mutex_unlock_slow + 459
frame #3: 0x000000010cf57f7f libglib-2.0.0.dylib`g_mutex_unlock + 26
frame #4: 0x000000010cf3ea59 libglib-2.0.0.dylib`g_thread_new_internal + 122
View vips-gaussblur-bug-lldb-session.txt
PATH=/usr/bin lldb ./bug
(lldb) target create "./bug"
Current executable set to './bug' (x86_64).
(lldb) r
Process 69589 launched: './bug' (x86_64)
libvips.42.dylib was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 69589 stopped
* thread #2, name = 'worker', stop reason = EXC_BAD_ACCESS (code=2, address=0x700009e36128)
frame #0: 0x000000010022853d libvips.42.dylib`vips_executor_set_program(executor=0x0000700009e35e00, vector=0x0000000102043310, n=100) at vector.c:470 [opt]
467 vips_executor_set_program( VipsExecutor *executor, VipsVector *vector, int n )
View analyze_com.docker.supervisor_100pct_cpu.txt
Sampling process 39953 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling com.docker.supervisor (pid 39953) every 1 millisecond
Process: com.docker.supervisor [39953]
Path: /Applications/Docker.app/Contents/MacOS/com.docker.supervisor
Load Address: 0x4000000
Identifier: com.docker.supervisor
Version: 0
Code Type: X86-64
Parent Process: Docker [39921]
You can’t perform that action at this time.