Skip to content

Instantly share code, notes, and snippets.

View yurikoles's full-sized avatar
🏠
Working from home

Yurii Kolesnykov yurikoles

🏠
Working from home
View GitHub Profile
@yurikoles
yurikoles / NSObject+YKSafeSelector.h
Last active August 29, 2015 14:07
Useful category for delegates. WARNING: it's not finished yet.
#import <Foundation/Foundation.h>
@interface NSObject (YKSafeSelector)
- (void)safeSelector:(SEL)selector, ... NS_REQUIRES_NIL_TERMINATION;
@end
DKMS make.log for exfat-145.a858df5 for kernel 4.1.0-rc8-g0f57d86 (x86_64)
Wed Jun 17 22:06:39 EEST 2015
make -C /usr/lib/modules/4.1.0-rc8-g0f57d86/build M=/var/lib/dkms/exfat/145.a858df5/build modules
make[1]: Entering directory '/usr/lib/modules/4.1.0-rc8-g0f57d86/build'
CC [M] /var/lib/dkms/exfat/145.a858df5/build/exfat_core.o
CC [M] /var/lib/dkms/exfat/145.a858df5/build/exfat_super.o
/var/lib/dkms/exfat/145.a858df5/build/exfat_super.c:1340:17: error: ‘new_sync_read’ undeclared here (not in a function)
.read = new_sync_read,
^
/var/lib/dkms/exfat/145.a858df5/build/exfat_super.c:1341:17: error: ‘new_sync_write’ undeclared here (not in a function)
# fvdemount /dev/sda4 /mnt/fvde
fvdemount 20150222
# LC_ALL=C sudo mount -o loop,ro /mnt/fvde/fvde1 /mnt/osx/
mount: /dev/loop0: can't read superblock
# kpartx -l /mnt/fvde/fvde1
read error, sector 0
llseek error
llseek error
llseek error
Hack-yurikoles:Library yurikoles$ echo $HOMEBREW_CASK_OPTS
--appdir=/Applications
Hack-yurikoles:Library yurikoles$ sudo brew cask install qbittorrent --force
==> Downloading http://downloads.sourceforge.net/sourceforge/qbittorrent/qbittorrent-3.2.0.dmg
Already downloaded: /Library/Caches/Homebrew/qbittorrent-3.2.0.dmg
==> Symlinking App 'qBittorrent.app' to '/Users/yurikoles/Applications/qBittorrent.app'
🍺 qbittorrent staged at '/opt/homebrew-cask/Caskroom/qbittorrent/3.2.0' (51 files, 42M)
Hack-yurikoles:homebrew-versions yurikoles$ ls -lh /usr/local
total 40K
-rw-r--r-- 1 yurikoles staff 3.1K May 10 07:12 CODEOFCONDUCT.md
-rw-r--r-- 1 yurikoles staff 1.1K Apr 15 19:22 CONTRIBUTING.md
drwxr-xr-x 142 yurikoles staff 4.8K Jun 22 03:45 Cellar
drwxr-xr-x 23 yurikoles staff 782 Jun 10 18:40 Frameworks
-rw-r--r-- 1 yurikoles staff 1.3K Apr 15 19:22 LICENSE.txt
drwxr-xr-x 11 yurikoles staff 374 Jun 22 02:36 Library
-rw-r--r-- 1 yurikoles staff 2.3K Jun 22 02:36 README.md
-rw-r--r-- 1 yurikoles staff 24K May 14 14:11 SUPPORTERS.md
@yurikoles
yurikoles / gist:82a20783e016c2aa0432
Created June 22, 2015 09:58
brew install coreutils on 10.11
Hack-yurikoles:work yurikoles$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir /usr/local
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local
2015-06-22 12:54:54 +0300
./configure
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
--prefix=/usr/local/Cellar/xz/5.2.1
XZ Utils 5.2.1
XBuild Engine Version 12.0
Mono, Version 4.0.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 26.06.2015 11:07:06.
__________________________________________________
Project "/home/yurikoles/work/webmconverter/WebMConverter.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Build:
@yurikoles
yurikoles / # wine - 2016-03-11_17-27-09.txt
Created March 11, 2016 15:30
wine on OS X 10.11.4 - Homebrew build logs
Homebrew build logs for wine on OS X 10.11.4
Build date: 2016-03-11 17:27:09
@yurikoles
yurikoles / # llvm - 2016-03-11_20-11-35.txt
Created March 11, 2016 18:17
llvm on OS X 10.11.4 - Homebrew build logs
Homebrew build logs for llvm on OS X 10.11.4
Build date: 2016-03-11 20:11:35