Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yurii Kolesnykov yurikoles

🏠
Working from home
View GitHub Profile
@yurikoles
yurikoles / NSObject+YKSafeSelector.h
Last active Aug 29, 2015
Useful category for delegates. WARNING: it's not finished yet.
View NSObject+YKSafeSelector.h
#import <Foundation/Foundation.h>
@interface NSObject (YKSafeSelector)
- (void)safeSelector:(SEL)selector, ... NS_REQUIRES_NIL_TERMINATION;
@end
@yurikoles
yurikoles / amd-urls.txt
Last active Jul 16, 2020
AMD GPU Open Source development docs
View amd-urls.txt
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/AMD_HDA_verbs_v2.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/CIK_3D_registers_v2.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/si_programming_guide_v2.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/SI_3D_registers.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/evergreen_cayman_programming_guide.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/evergreen_3D_registers_v2.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/cayman_3D_registers_v2.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/R6xx_R7xx_3D.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2013/10/R6xx_3D_Registers.pdf
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/r600isa.pdf
View exfat-nofuse build against linux-4.1.0
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)
View gist:bbce281789e182af873d
# 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
View gist:8f68ce5cc3a1d25ba7e3
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)
View gist:786c0004d7b4821b648a
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 Jun 22, 2015
brew install coreutils on 10.11
View gist:82a20783e016c2aa0432
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
View 01.configure
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
View webmconverter-output.log
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 Mar 11, 2016
wine on OS X 10.11.4 - Homebrew build logs
View # wine - 2016-03-11_17-27-09.txt
Homebrew build logs for wine on OS X 10.11.4
Build date: 2016-03-11 17:27:09