Skip to content

Instantly share code, notes, and snippets.

TUNER88

Block or report user

Report or block TUNER88

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TUNER88
TUNER88 / cron.sh
Created Dec 14, 2016
Workaround to bypass limitations of cron command frequency (some hosters allow to trigger cron jobs only each 15 or 30 minutes)
View cron.sh
#!/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
View ContactsTabNavigationController.h
#import <UIKit/UIKit.h>
@interface ContactsTabNavigationController : UINavigationController {
UIProgressView *progress;
}
@property (nonatomic, retain) UIProgressView *progress;
@end
You can’t perform that action at this time.