Skip to content

Instantly share code, notes, and snippets.

#import <UIKit/UIKit.h>
@interface ContactsTabNavigationController : UINavigationController {
UIProgressView *progress;
}
@property (nonatomic, retain) UIProgressView *progress;
@end
@TUNER88
TUNER88 / cron.sh
Created December 14, 2016 15:40
Workaround to bypass limitations of cron command frequency (some hosters allow to trigger cron jobs only each 15 or 30 minutes)
#!/bin/bash
COMMANDS[0]="php current/artisan schedule:run"
COMMANDS[1]="php current/artisan queue:work --tries=3"
ITERATIONS=30 # how often should be the commands repeated
INTERVAL=60 # how should the pause between iterations (in seconds)
for ((i=1; i<=$ITERATIONS; i++)); do