This file contains hidden or 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 | |
| extension UIView { | |
| func debugLayout(_ color: UIColor = .red) { | |
| layer.borderColor = color.cgColor | |
| layer.borderWidth = 1 | |
| } | |
| } | |
| final class CollectionViewCell: UICollectionViewCell { |
This file contains hidden or 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
| // | |
| // ViewController.swift | |
| // TestCollecton | |
| // | |
| // Created by roman on 04.05.2020. | |
| // Copyright © 2020 ROMAN DOBYNDA. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| // | |
| https://<domain>/bot<token>/sendMessage?chat_id=<chat_or_channel>&parse_mode=html&disable_notification=true&text=Test | |
| server { | |
| ... | |
| server_name <domain>; | |
| ... |
This file contains hidden or 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
| # nginx.conf | |
| load_module /etc/nginx/modules/ngx_http_image_filter_module.so; | |
| # host.conf | |
| proxy_cache_path /tmp levels=1:2 keys_zone=thumbs:10m inactive=24h max_size=100M; | |
| server { | |
| listen 80; | |
| root /usr/share/nginx/html; |
This file contains hidden or 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
| plugins=(git rvm) | |
| alias rvm-prompt=$HOME/.rvm/bin/rvm-prompt | |
| RPROMPT="%{$fg[blue]%}\$(~/.rvm/bin/rvm-prompt s i v g)" |
This file contains hidden or 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 CollectionCell: UICollectionViewCell { | |
| static let reuseIdentifier = "CollectionCell" | |
| var card: UIView! | |
| var label: UILabel! | |
| var isInstalled = false | |
This file contains hidden or 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 CollectionCell: UICollectionViewCell { | |
| static let reuseIdentifier = "CollectionCell" | |
| static let inset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) | |
| var label: UILabel! | |
This file contains hidden or 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
| upstream puma_app_production { | |
| server unix:/home/user/app/shared/tmp/sockets/puma.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| listen 443 ssl spdy; | |
| server_name app.com www.app.com; | |
| ssl_stapling on; |
This file contains hidden or 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
| /home/user/app/shared/log/*.log { | |
| su root root | |
| rotate 10 | |
| size=10M | |
| compress | |
| copytruncate | |
| missingok | |
| daily | |
| notifempty | |
| } |
NewerOlder