Skip to content

Instantly share code, notes, and snippets.

View maximveksler's full-sized avatar
Wow

Maxim Veksler maximveksler

Wow
  • Tel Aviv, Israel
  • 20:48 (UTC +03:00)
  • X @mvxlr
View GitHub Profile
@property (nonatomic) NSInteger *playPosition;
- (NSInteger *)playPosition
{
if (!_playPosition) {
_playPosition = [NSNumber numberWithInt:0]; // Error
} else {
_playPosition += 1;
}
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
#!/usr/bin/python
import csv
import re
from collections import Counter, OrderedDict
count_total = Counter()
count_by_date = {}
def get_count_today(by_date):
http://blogs.technet.com/b/nettracer/archive/2013/10/12/decrypting-ssl-tls-sessions-with-wireshark-reloaded.aspx
@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
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 / 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
Maxims-MacBook-Pro:WWDC-2015 maximveksler$ du -sh ../WWDC-2015/*
128G ../WWDC-2015/HD-VIDEOs
302M ../WWDC-2015/PDFs
458M ../WWDC-2015/SAMPLE-CODE
33G ../WWDC-2015/SD-VIDEOs
Maxims-MacBook-Pro:WWDC-2015 maximveksler$ find .
.
./.DS_Store
./HD-VIDEOs
@maximveksler
maximveksler / AppDelegate.swift
Last active September 3, 2015 09:46 — forked from sawapi/AppDelegate.swift
[Swift] Push Notification
//
// AppDelegate.swift
// pushtest
//
// Created by sawapi on 2014/06/08.
// Copyright (c) 2014年 sawapi. All rights reserved.
//
// iOS8用
import UIKit
protocol ContextError : ErrorType {
mutating func addContext<T>(type: T.Type)
}
protocol Contextualizable {}
extension Contextualizable {
func addContext(var error: ContextError) -> ContextError {
error.addContext(self.dynamicType)
return error
}