| Instance | Branch |
|---|
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
| reload() { | |
| source ${BASH_SOURCE[0]} | |
| } | |
| alias r=reload | |
| get-image-field() { | |
| local imageId=$1 | |
| local field=$2 | |
| : ${imageId:? reuired} |
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 api_example_net { | |
| server api.example.net:4000; | |
| keepalive 600; | |
| } | |
| proxy_cache_path /var/cache/nginx/tag levels=1:2 keys_zone=tag:10m inactive=1d max_size=10g; | |
| server { | |
| listen 80; | |
| server_name api.example.net; |
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
| // Maximum depth is 3, after that we get a "" error from Parse | |
| function getUserRoles(user) { | |
| var queries = [ | |
| new Parse.Query('_Role').equalTo('users', user) | |
| ]; | |
| for (var i = 0; i < 2; i++) { | |
| queries.push(new Parse.Query('_Role').matchesQuery('roles', queries[i])); | |
| } | |
| return user.rolesPromise = Parse.Query.or.apply(Parse.Query, queries).find().then( |
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
| # changes from http://www.cyberciti.biz/faq/linux-kernel-etcsysctl-conf-security-hardening/ | |
| # Protect ICMP attacks | |
| net.ipv4.icmp_echo_ignore_broadcasts = 1 | |
| # Turn on protection for bad icmp error messages | |
| net.ipv4.icmp_ignore_bogus_error_responses = 1 | |
| # Turn on syncookies for SYN flood attack protection | |
| net.ipv4.tcp_syncookies = 1 |
NewerOlder