Skip to content

Instantly share code, notes, and snippets.

View NZKoz's full-sized avatar

Michael Koziarski NZKoz

View GitHub Profile
@NZKoz
NZKoz / apt.log
Last active August 29, 2015 14:04
Year of linux desktop
$ sudo aptitude install nginx
The following NEW packages will be installed:
nginx{b}
0 packages upgraded, 1 newly installed, 0 to remove and 81 not upgraded.
Need to get 5586 B of archives. After unpacking 95.2 kB will be used.
The following packages have unmet dependencies:
nginx : Depends: nginx-core (>= 1.4.6-1ubuntu3) but it is not installable. or
nginx-full (>= 1.4.6-1ubuntu3) but it is not installable. or
nginx-light (>= 1.4.6-1ubuntu3) but it is not installable. or
nginx-extras (>= 1.4.6-1ubuntu3) but it is not installable. or
config.middleware.use "OldAcceptBehaviour", ["text/html", "application/xml", "text/javascript", "application/atom+xml"]

Keybase proof

I hereby claim:

  • I am NZKoz on github.
  • I am nzkoz (https://keybase.io/nzkoz) on keybase.
  • I have a public key whose fingerprint is 11A9 96B0 3D93 AC76 9E56 91BA C438 3E42 16E0 0312

To claim this, I am signing this object:

@NZKoz
NZKoz / holyshit.log
Created February 17, 2014 20:34
Github Scares Koz
Koz-Prostyle-2:CLIENT-iPhone michaelkoziarski$ git st
## ios7...origin/ios7 [ahead 1]
Koz-Prostyle-2:CLIENT-iPhone michaelkoziarski$ git pull
From github.com:SouthgateLabs/CLIENT-iPhone
* [new branch] iOS7 -> origin/iOS7
Already up-to-date.
Koz-Prostyle-2:CLIENT-iPhone michaelkoziarski$ git branch -r
origin/HEAD -> origin/master
...
origin/iOS7
def gimme_yo_stuff
time = Time.now.httpdate
YOUR HTTP LIBRARY.GET(path, :headers=> {
"Accept" => ACCEPT,
"Date"=>time,
"Authorization"=>"#{@key_id}:#{signature_for_path(path, 'GET', time)}"
})
end
def signature_for_path(path, method, time)
Koz-Prostyle-2:store michaelkoziarski$ time /usr/bin/ruby -e ''
real 0m0.117s
user 0m0.031s
sys 0m0.056s
Koz-Prostyle-2:store michaelkoziarski$ time ~/.rbenv/shims/ruby -e ''
real 0m0.096s
user 0m0.057s
sys 0m0.038s
@NZKoz
NZKoz / sample
Created October 24, 2013 19:43
Tweetbot goes crazy
Sampling process 576 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Tweetbot (pid 576) every 1 millisecond
Process: Tweetbot [576]
Path: /Applications/Tweetbot.app/Contents/MacOS/Tweetbot
Load Address: 0x1041b1000
Identifier: com.tapbots.TweetbotMac
Version: 1.3.3 (13300)
Code Type: X86-64
Parent Process: launchd [250]
-(void) textViewDidChange:(UITextView *)textView {
[self updateBarButtonItemState];
[self _showTextViewCaretPosition:textView];
}
- (void)_showTextViewCaretPosition:(UITextView *)textView {
CGRect caretRect = [textView caretRectForPosition:self.textView.selectedTextRange.end];
[self.textView scrollRectToVisible:caretRect animated:NO];
}
Koz-Prostyle-2:local michaelkoziarski$ brew upgrade git
==> Upgrading 1 outdated package, with result:
git 1.8.3.4
==> Upgrading git
git: No `python` found in your PATH! Consider to `brew install python`.
Error: An unsatisfied requirement failed this build.
Koz-Prostyle-2:local michaelkoziarski$ python
Python 2.7 (r27:82500, Jul 30 2010, 09:55:50)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
@NZKoz
NZKoz / piss
Created August 12, 2013 01:31
fuck
piss