Skip to content

Instantly share code, notes, and snippets.

@tilllt
tilllt / getmail dump1
Created June 22, 2015 10:47
getmail dump
---
#!/bin/sh
set -e
cd /a/b/.getmail
rcfiles=""
for file in rc-* ; do
rcfiles="$rcfiles --rcfile $file"
done
exec /usr/bin/getmail $rcfiles $@
---
@tilllt
tilllt / getmail trace
Created June 22, 2015 11:00
getmail trace
_getmsgbyid() [_retrieverbases.py:1593] trace
_getmsgpartbyid() [_retrieverbases.py:1494] trace
_getmboxuidbymsgid() [_retrieverbases.py:1261] trace
retrieving body for message "37213"
_parse_imapuidcmdresponse() [_retrieverbases.py:1293] trace
command uid FETCH ('37213', '(BODY.PEEK[])') response [('6 (UID 37213 BODY[] {6593}', 'Return-Path: <\x82\x8363xaan7@yahoo.co.jp>\r\nX-O$
command uid FETCH ('37213', '(BODY.PEEK[])') response [('6 (UID 37213 BODY[] {6593}', 'Return-Path: <\x82\x8363xaan7@yahoo.co.jp>\r\nX-O$
__str__() [filters.py:209] trace
_confstring() [baseclasses.py:320] trace
passing to filter Filter_external spamc (allow_root_commands="False", arguments="('-s', '250000', '-u', 'a', '-p', '783')", comma$
Name Speed Q.Score Author
xxHash 5.4 GB/s 10
MumurHash 3a 2.7 GB/s 10 Austin Appleby
SpookyHash 2.0 GB/s 10 Bob Jenkins
SBox 1.4 GB/s 9 Bret Mulvey
Lookup3 1.2 GB/s 9 Bob Jenkins
CityHash64 1.05 GB/s 10 Pike & Alakuijala
FNV 0.55 GB/s 5 Fowler, Noll, Vo
CRC32 0.43 GB/s 9
MD5-32 0.33 GB/s 10 Ronald L. Rivest
gem https://github.com/beanieboi/ffprober
ffprobe = Ffprober::Parser.from_file(dir_entry)
pp ffprobe.json
private method `json' called for #<Ffprober::Wrapper:0x007fb57412d7d0> (NoMethodError)
pp ffprobe.inspect
#<Ffprober::Wrapper:0x007fb6640dd848 @json={:streams=>[{:index=>0, :codec_name=>\"mpeg4\", :codec_long_name=>\"MPEG-4 part 2\", :profile=>\"Advanced Simple Profile\", :codec_type=>\"video\", :codec_time_base=>\"911/21845\", :codec_tag_string=>\"XVID\", :codec_tag=>\"0x44495658\", :width=>672, :height=>368, :coded_width=>672, :coded_height=>368, :has_b_frames=>1, :sample_aspect_ratio=>\"1:1\", :display_aspect_ratio=>\"42:23\", :pix_fmt=>\"yuv420p\", :level=>5, :chroma_location=>\"left\", :refs=>1, :quarter_sample=>\"0\", :divx_packed=>\"0\", :r_frame_rate=>\"24000/1001\", :avg_frame_rate=>\"24000/1001\", :time_base=>\"1001/24000\", :start_pts=>0, :start_time=>\"0.000000\", :duration_ts=>138516, :duration=>\"5777.271500\", :bit_rate=>\"892934\", :nb_frames=>\"138516\", :disposition=>{:default=>0, :du
class Scrape
def initialize (pathname, options)
# pathname is required. when only called with pathname, recurses pathname and returns JSON with basic data (filename, size, creationdate) without writing JSON to cache
# options: if called with an optional cache_directory, scans cache if this scan has been done before and only scans if not in cache, if not in cache, writes JSON to cache directory
# options: if called with an optional dir_ignore array, ignores passed patterns, if not, uses default: dir_ignore=[".AppleDouble",".AppleDB",".AppleDesktop",".DS_Store", ".localized"]
end
def mediaspecs (pathname, options)
# pathname is required. when only called with pathname, looks for JSON from initialize method in cache and adds ffprober mediaspecs to JSON hash (Codec, Framsize, fps, etc.pp.), if no JSON from initializer in cache, runs initializer scan to cache directory and then mediaspecs scan
@tilllt
tilllt / gulp error
Last active November 24, 2016 11:37
[12:34:29] Using gulpfile /usr/share/nginx/www/cupola/public/theme/theme-2016-cupola/source/gulpfile.js
[12:34:29] Starting 'javascript'...
[12:34:30] Starting 'foundation-sass'...
[12:34:30] Starting 'theme-sass'...
[12:34:30] Finished 'javascript' after 1.07 s
Error in plugin 'sass'
Message:
scss/_settings.scss
Error: File to import not found or unreadable: util/util
Parent style sheet: /usr/share/nginx/www/cupola/public/theme/theme-2016-cupola/source/scss/_settings.scss
screenings:
name: Screenings
singular_name: Screening
fields:
veranstaltung:
type: text
veranstaltunglink:
type: text
label: Link zur Veranstaltung
postfix: "z.B. Seite des Films im Festivalprogramm"
**Passing Variables to a {{Menu()}}**
{{menu('main', 'mytemplate.twig', {myvariablename: myvariablevalue})}}
**Setting and Getting Session Variables**
set it:
`{% set foo = app.session.set('variablename', theImage) %}`
to get it:
`{% set bgimage = app.session.get('variablename') %}`
**Checking if current Page is Homepage**
Scanning dependencies of target keepassx-autotype-cocoa
[ 92%] Building CXX object src/autotype/mac/CMakeFiles/keepassx-autotype-cocoa.dir/AutoTypeMac.cpp.o
/Users/till_old/build/keepassxc/src/autotype/mac/AutoTypeMac.cpp:406:18: error:
cannot initialize a variable of type 'CGEventFlags' with an rvalue of type
'int'
CGEventFlags nativeModifiers = 0;
^ ~
/Users/till_old/build/keepassxc/src/autotype/mac/AutoTypeMac.cpp:408:18: error:
cannot initialize a variable of type 'CGEventFlags' with an rvalue of type
'(anonymous enum at
macdeployqt /Applications/KeePassXC.app
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/platforms/libqcocoa.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/bearer/libqgenericbearer.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/imageformats/libqgif.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/imageformats/libqicns.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/imageformats/libqico.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/imageformats/libqjpeg.dylib"
File exists, skip copy: "/Applications/KeePassXC.app/Contents/PlugIns/imageformats/libqmacjp2.dylib"