How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)
Virtual hosts
Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
kubectl get services # List all services | |
kubectl get pods # List all pods | |
kubectl get nodes -w # Watch nodes continuously | |
kubectl version # Get version information | |
kubectl cluster-info # Get cluster information | |
kubectl config view # Get the configuration | |
kubectl describe node <node> # Output information about a node | |
kubectl get pods # List the current pods | |
kubectl describe pod <name> # Describe pod <name> | |
kubectl get rc # List the replication controllers |
Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
$ aws configure --profile account1 | |
// To use the profile | |
$ aws s3 ls --profile account2 | |
// To set the default profile | |
$ export AWS_DEFAULT_PROFILE=account1 |
if ([self.shareFooterToolBar respondsToSelector:@selector(setBackgroundImage:forToolbarPosition:barMetrics:)]) { | |
[self.shareFooterToolBar setBackgroundImage:[UIImage new] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault]; | |
} | |
if ([self.shareFooterToolBar respondsToSelector:@selector(setShadowImage:forToolbarPosition:)]) { | |
[self.shareFooterToolBar setShadowImage:[UIImage new] forToolbarPosition:UIToolbarPositionAny]; | |
} |
// Source http://mikethinkingoutloud.com/color-a-uiimage/ | |
// init the image using imageWithRenderingMode set to AlwaysTemplate | |
UIImage *image = [[UIImage imageNamed:@"checkmark"] | |
imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; | |
// put UIImage in a UIImageView and adjust color with tintColor | |
UIImageView *imageView = [[UIImageView alloc]initWithImage:image]; | |
imageView.tintColor = [UIColor redColor]; |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep -H UI_APPEARANCE_SELECTOR ./* | sed 's/ __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0) UI_APPEARANCE_SELECTOR;//'
expr (void)NSLog(@"indexPath row: %ld", (long int)[indexPath row]) |
- (UIImage*)image:(UIImage*)image withText:(NSString*)text | |
{ | |
CGRect rect = CGRectMake(0, 0, image.size.width, image.size.height); | |
UIGraphicsBeginImageContextWithOptions(rect.size, NO, 0); | |
[image drawInRect:rect]; | |
/// Make a copy of the default paragraph style | |
NSMutableParagraphStyle *paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; | |
/// Set line break mode | |
paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail; |