Skip to content

Instantly share code, notes, and snippets.

View maximveksler's full-sized avatar
Wow

Maxim Veksler maximveksler

Wow
  • Tel Aviv, Israel
  • 05:30 (UTC +03:00)
  • X @mvxlr
View GitHub Profile
@maximveksler
maximveksler / I'm on 10.10.4 (14E17e). MacBook Air (13-inch, Mid 2012).
Last active August 29, 2015 14:21
A rouge CloudDocsDaemon.framework bird is eating all my CPU
I'm on 10.10.4 (14E17e). MacBook Air (13-inch, Mid 2012).
For some reason I have /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/Versions/A/Support/bird running at almost 100% cpu on my machine.
Here is a sample of the process obtained with Activity Monitor
@maximveksler
maximveksler / 0_nonsterile_sampler_macbookair
Last active April 21, 2020 11:20
julienschmidt/go-http-routing-benchmark (updated 02.2015)
Maxims-MacBook-Air:go-http-routing-benchmark maximveksler$ go get github.com/julienschmidt/go-http-routing-benchmark
Maxims-MacBook-Air:go-http-routing-benchmark maximveksler$ go test -bench=. -timeout=20m
2015/02/04 23:24:05 [config.go:284] [W] open /Users/maximveksler/go/src/github.com/julienschmidt/go-http-routing-benchmark/conf/app.conf: no such file or directory
#GithubAPI Routes: 203
Ace: 60520 Bytes
Beego: 165192 Bytes
Bone: 92960 Bytes
Denco: 36440 Bytes
Gin: 66896 Bytes
GocraftWeb: 88840 Bytes
Maxims-MacBook-Air:go-http-routing-benchmark maximveksler$ go run routers.go
../../revel/revel/http.go:5:2: cannot find package "code.google.com/p/go.net/websocket" in any of:
/usr/local/Cellar/go/1.4/libexec/src/code.google.com/p/go.net/websocket (from $GOROOT)
/Users/maximveksler/go/src/code.google.com/p/go.net/websocket (from $GOPATH)
@maximveksler
maximveksler / gist:b9c1c234b8943c587cb9
Last active August 29, 2015 14:09
רשימת הסרטים שניצלו אתמול של משתמשים אמיתיים שהם בתקווה לא אנחנו
Examining: D5AeMBoTj1vvksKOKrd2yeWYm, createdAt: 2014-09-01T17:49:36.293Z [http://jovie.co/v/x6L4oFGLDU](http://jovie.co/v/x6L4oFGLDU)
Examining: Fc8PN6g0jhFo7Vns3mmR8jsv6, createdAt: 2014-08-30T16:16:02.566Z [http://jovie.co/v/XUrZdtijKv](http://jovie.co/v/XUrZdtijKv)
Examining: NnmhlMxMcpYVYwOGrkKe84bYk, createdAt: 2014-09-05T18:58:36.166Z [http://jovie.co/v/OHSolvEKEr](http://jovie.co/v/OHSolvEKEr)
Examining: RACyZfVnS4vdHwFsCZ9ZoZcjk, createdAt: 2014-09-05T17:22:02.962Z [http://jovie.co/v/fcP5aD74HM](http://jovie.co/v/fcP5aD74HM)
Examining: adididi, createdAt: 2014-09-20T07:30:46.913Z [http://jovie.co/v/FA9ALK54Jm](http://jovie.co/v/FA9ALK54Jm)
Examining: agamhecht, createdAt: 2014-10-02T19:46:59.855Z [http://jovie.co/v/xes3LMhvXX](http://jovie.co/v/xes3LMhvXX)
Examining: agamsahar, createdAt: 2014-09-13T13:49:59.628Z [http://jovie.co/v/8q0Kjr2DCZ](http://jovie.co/v/8q0Kjr2DCZ)
Examining: alejandraacosta, createdAt: 2014-10-16T21:57:03.326Z [http://jovie.co/v/EjnmqhwXNO](http://jovie.co/v/EjnmqhwXNO)
Exam
http://blogs.technet.com/b/nettracer/archive/2013/10/12/decrypting-ssl-tls-sessions-with-wireshark-reloaded.aspx
#!/usr/bin/python
import csv
import re
from collections import Counter, OrderedDict
count_total = Counter()
count_by_date = {}
def get_count_today(by_date):
Mind Mapping tools for Mac
-- Yes --
iMindQ (DropMind) 100$
MindNode 20$
Curio $100
-- Filtered out --
XMind # Needs java. That sucks.
D, [2014-07-22T02:35:05.508567 #2405] DEBUG -- : Scraping for library/prerelease of iOS.
D, [2014-07-22T02:35:05.508735 #2405] DEBUG -- : Reading source https://developer.apple.com/library/prerelease/ios/navigation/library.json
I, [2014-07-22T02:35:17.867594 #2405] INFO -- : Good news everyone! Project Update: AdaptivePhotos: An Adaptive Application/2014-07-16/AdaptivePhotosAnAdaptiveApplication.zip
W, [2014-07-22T02:35:17.914741 #2405] WARN -- : Fuckers! Zip name: [AdaptivePhotosAnAdaptiveApplication.zip] Project name: [AdaptivePhotos: An Adaptive Application]
I, [2014-07-22T02:35:56.996631 #2405] INFO -- : Good news everyone! Project Update: Adventure: Building a SpriteKit Game Using Swift/2014-07-16/AdventureBuildingaSpriteKitGameUsingSwift.zip
W, [2014-07-22T02:35:57.034085 #2405] WARN -- : Fuckers! Zip name: [AdventureBuildingaSpriteKitGameUsingSwift.zip] Project name: [Adventure: Building a SpriteKit Game Using Swift]
I, [2014-07-22T02:39:08.238609 #2405] INFO -- : Good news everyone! Project Updat
@property (nonatomic) NSInteger *playPosition;
- (NSInteger *)playPosition
{
if (!_playPosition) {
_playPosition = [NSNumber numberWithInt:0]; // Error
} else {
_playPosition += 1;
}
@maximveksler
maximveksler / FuckingAVFoundation.m
Created February 25, 2014 23:36
Fucking AV Foundation code with audio and video mixing
- (void)buildTransitionCompositionAUDIO:(AVMutableComposition *)composition andVideoComposition:(AVMutableVideoComposition *)videoComposition andAudioMix:(AVMutableAudioMix *)audioMix
{
CMTime nextClipStartTime = kCMTimeZero;
// Add two video tracks and two audio tracks.
AVMutableCompositionTrack *compositionVideoTracks[2];
AVMutableCompositionTrack *compositionAudioTracks[2];
compositionVideoTracks[0] = [composition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid];
compositionVideoTracks[1] = [composition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid];