Skip to content

Instantly share code, notes, and snippets.

Michael Koziarski NZKoz

Block or report user

Report or block NZKoz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NZKoz
NZKoz / apt.log
Last active Aug 29, 2015
Year of linux desktop
View apt.log
$ 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
View application.rb
config.middleware.use "OldAcceptBehaviour", ["text/html", "application/xml", "text/javascript", "application/atom+xml"]
View keybase.md

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 Feb 17, 2014
Github Scares Koz
View holyshit.log
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
View companies.rb
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)
View gary.log
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 Oct 24, 2013
Tweetbot goes crazy
View sample
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]
View uitextviewbug.m
-(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];
}
View suffering.txt
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.
You can’t perform that action at this time.