Skip to content

Instantly share code, notes, and snippets.

@vhbit
vhbit / keybase.md
Created March 4, 2016 09:05
keybase.md

Keybase proof

I hereby claim:

  • I am vhbit on github.
  • I am vhbit (https://keybase.io/vhbit) on keybase.
  • I have a public key ASBCUJTmPCSHYxdsnUehqMnaR3k0Jy5L_sgERTWx_qYOlQo

To claim this, I am signing this object:

@vhbit
vhbit / cmd.sh
Last active December 17, 2015 18:59
Pallet plugin debug
lein pallet lift differ.pallet/fullstack
# -or-
lein pallet up
@vhbit
vhbit / gist:5167804
Created March 15, 2013 06:07
libxml & pkg-config on OS X under brew
from: https://github.com/moovweb/gokogiri/issues/14#issuecomment-12736547
Homebrew's libxml-2.0 2.8.0 has pkgconfig support. For anyone coming here for answers, you only need to do the final steps:
Create symbolic link.
sudo ln -s BREW_PATH/Cellar/libxml2/2.8.0/lib/pkgconfig/libxml-2.0.pc \
BREW_PATH/lib/pkgconfig/libxml-2.0.pc
Check with pkg-config:

Mutt/Gmail/OS X Keychain

Create a new keychain item, enter the Keychain Item Name as mutt, the Account Name as your gmail email address and then enter your password, then add the keychain item.

2-step auth

If you're using Google 2-step auth, you'll need to generate an Application-specific password from your Google Account settings and enter that as the password.

@vhbit
vhbit / twitter.m
Created May 6, 2011 10:34
Follow us on Twitter button for iOS
- (BOOL)openTwitterClientForUserName:(NSString*)userName {
NSArray *urls = [NSArray arrayWithObjects:
@"twitter:@{username}", // Twitter
@"tweetbot:///user_profile/{username}", // TweetBot
@"echofon:///user_timeline?{username}", // Echofon
@"twit:///user?screen_name={username}", // Twittelator Pro
@"x-seesmic://twitter_profile?twitter_screen_name={username}", // Seesmic
@"x-birdfeed://user?screen_name={username}", // Birdfeed
@"tweetings:///user?screen_name={username}", // Tweetings
@"simplytweet:?link=http://twitter.com/{username}", // SimplyTweet
@vhbit
vhbit / git-versioning.sh
Created May 6, 2011 07:50
Git versioning for iOS project sample
version=`git describe --long`
commit=`echo $version | sed 's#.*g\([a-z0-9]\{7\}\)#\1#'`
version=`echo $version | sed 's#[a-zA-Z]*##'`
versionNum=`echo $version | sed 's#\-[0-9]*\-[a-zA-Z0-9]*##'`
echo "#define BUILD_VERSION $version" > InfoPlist.h
echo "#define PRODUCT_VERSION $versionNum" >> InfoPlist.h
echo "#define GIT_COMMIT $commit" >> InfoPlist.h
@vhbit
vhbit / gist:874549
Created March 17, 2011 15:44 — forked from anonymous/gist:867690
OpenCV iPhone
################################################################################
# This script will create universal binaries for OpenCV library for
# iOS-based devices (iPhone, iPad, iPod, etc).
# As output you obtain debug/release static libraries and include headers.
#
# This script was written by Eugene Khvedchenya
# And distributed under GPL license
# My site, where you can get support: http://computer-vision-talks.com
################################################################################
@vhbit
vhbit / KUtils.h
Last active August 29, 2015 14:11 — forked from ishaq/KUtils.h
iOS versioning from DVCS
#import <Foundation/Foundation.h>
@interface KUtils : NSObject
+ (NSString *)getVersionInfo;
@end
[28.10.2009, 21:13:44] Yurii Zotiev: хотел тебя попросить научить меня жить:)
[28.10.2009, 21:13:52] Yurii Zotiev: но не знаю с чего начать:)
[28.10.2009, 21:14:53] Valerii Hiora: ну ты начни с чего-нибудь :)
disclaimer: если вдруг перестану отвечать - это значит заказчик позвонил, у нас в 9-ть должен был быть звонок, но он чего-то опаздывает :)
[28.10.2009, 21:15:09] Yurii Zotiev: ща:)
[28.10.2009, 21:15:14] Yurii Zotiev: как начну:)
[28.10.2009, 21:18:46] Valerii Hiora: давай-давай :)
[28.10.2009, 21:26:58] Yurii Zotiev: Короче даже не знаю с чего начать
[28.10.2009, 21:27:07] Yurii Zotiev: Есть одна девушка
[28.10.2009, 21:27:09] Yurii Zotiev: Оля
@vhbit
vhbit / gist:7de43ef054966792ff7e
Created October 8, 2014 16:03
OpenSsl for iPhone best build
https://github.com/x2on/OpenSSL-for-iPhone/pull/37