This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let log = ColorLogger.defaultInstance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/fail2ban/fail2ban.log { | |
missingok | |
notifempty | |
weekly | |
rotate 5 | |
compress | |
dateext | |
create 0644 root root | |
postrotate | |
/usr/bin/fail2ban-client set logtarget /var/log/fail2ban/fail2ban.log 2> /dev/null || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_nocache_on_404(){ | |
if(is_404()){ | |
header_remove("Pragma"); | |
header_remove("Cache-Control"); | |
header_remove("Expires"); | |
} | |
} | |
add_action('wp','remove_nocache_on_404'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController, UIScrollViewDelegate { | |
var scrollView: UIScrollView! | |
var pageControll: UIPageControl! | |
let pageNum = 4 | |
let pageColors:[Int:UIColor] = [1:UIColor.redColor(),2:UIColor.yellowColor(),3:UIColor.blueColor(),4:UIColor.greenColor()] | |
override func viewDidLoad() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum UIUserInterfaceIdiom : Int { | |
case Unspecified | |
case Phone // iPhone and iPod | |
case Pad // iPad | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failed to mount folders in Linux guest. This is usually beacuse | |
the "vboxsf" file system is not available. Please verify that | |
the guest additions are properly installed in the guest and | |
can work properly. The command attempted was: | |
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group apache | cut -d: -f3`,dmode=777,fmode=777 /vagrant /vagrant | |
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=777,fmode=777 /vagrant /vagrant |