http://stackoverflow.com/questions/13716658/how-to-delete-all-commit-history-in-github
Git remove commit history
Invoice Ninja
I just found http://www.invoiceninja.com which is an awesome open source, free invoice platform which integrates with a huge array of payment gateways, including Stripe.
Find out more about Invoice Ninja and its beautiful invoicing system below!
Invoice Ninja
Free Open-Source Online Invoicing
Documentation
Keepalived – Spamming /var/log/syslog ->
If you’re just using keepalived to manage IP addresses (i.e. you’re not using the virtual_server or lvs_sync_daemon features), it’s possible to run it under a Linode kernel by disabling LVS/IPVS features. Simply pass in the –vrrp (or -P) option on the command-line (add it to DAEMON_ARGS in /etc/default/keepalived in Debian/Ubuntu) and you’ll be good to go!
root@ubuntu:/var/log# vi /etc/default/keepalived # Options to pass to keepalived # DAEMON_ARGS are appended to the keepalived command-line DAEMON_ARGS="--vrrp"
Push Multiple Views onto Nav Stack
NSMutableArray *controllers = [self.navigationController.viewControllers mutableCopy]; [controllers addObject:secondVc]; [controllers addObject:thirdVC]; [self.navigationController setViewControllers:controllers animated:YES];
Courtesy of Stack Overflow:
http://stackoverflow.com/questions/21857222/how-to-push-two-view-controllers-but-animate-transition-only-for-the-second-one
INavigationController *a = (UINavigationController *)self.tabBarController.selectedViewController; Second11ViewController *view11 = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"second1"]; Second22ViewController *view22 = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"second2"]; view11.hidesBottomBarWhenPushed = YES; view22.hidesBottomBarWhenPushed = YES;
Set a background colour of a uitableview
self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"tablebackground.png"]];
self.tableView.backgroundColor = [UIColor clearColor];
Back Button Text
self.navigationItem.backBarButtonItem =
[[UIBarButtonItem alloc] initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:nil
action:nil];
Background image in UITableViewCell
UIImage *background = [UIImage imageNamed:tableViewCellBackgroundImage];
UIImageView *cellBackgroundView = [[UIImageView alloc] initWithImage:background];
cellBackgroundView.image = background;
tableCell.backgroundView = cellBackgroundView;
Remove Cell Separator Style from UITableView
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
php compile from source configure
./configure \
–prefix=/usr/local \
–with-ldap=/usr \
–with-libdir=lib64 \
–with-kerberos=/usr \
–enable-cli \
–with-zlib-dir=/usr \
–enable-exif \
–enable-ftp \
–enable-mbstring \
–enable-mbregex \
–enable-sockets \
–enable-maintainer-zts \
–with-curl=/usr \
–with-config-file-path=/etc \
–sysconfdir=/private/etc \
–with-mysql-sock=/var/mysql/mysql.sock \
–with-mysql=mysqlnd \
–with-mysqli=mysqlnd \
–with-pdo-mysql=mysqlnd \
–with-xmlrpc \
–with-xsl=/usr \
–without-pear \
–with-libxml-dir=/usr \
–with-iconv-dir=/usr/local \
–with-gd \
–with-jpeg-dir=/opt/local \
–with-png-dir=/opt/local \
–with-freetype-dir=/opt/local \
–with-mcrypt=/opt/local \
–with-openssl \
–enable-debug –enable-maintainer-zts \
–enable-pthreads –enable-mbstring \
–enable-fpm
JS includes with AngularJS
http://blog.carbonfive.com/2014/05/05/roll-your-own-asset-pipeline-with-gulp/
Recent Comments