The following operators are available.
| Operator | Description |
|---|---|
| + | Adds two operands |
| #!/bin/bash | |
| # I made this script to convert SVG icons for an iOS app into PNG. | |
| # The script will create icons in 3 sizes for different screen DPIs. | |
| find . -type f -name "*.svg" | while read f | |
| do | |
| echo '---' | |
| FILENAME="${f%.*}" | |
| echo $FILENAME |
| DUMP | |
| // pod-name name of the postgres pod | |
| // postgres-user database user that is able to access the database | |
| // database-name name of the database | |
| kubectl exec [pod-name] -- bash -c "pg_dump -U [postgres-user] [database-name]" > database.sql | |
| RESTORE | |
| // pod-name name of the postgres pod | |
| // postgres-user database user that is able to access the database | |
| // database-name name of the database |
| # using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty | |
| # more info @ http://wiki.nginx.org/HttpLuaModule#access_by_lua | |
| http { | |
| lua_package_path "/etc/nginx/include.d/?.lua;;"; | |
| lua_socket_pool_size 100; | |
| lua_socket_connect_timeout 10ms; | |
| lua_socket_read_timeout 10ms; | |
| server { |
| #!/bin/sh | |
| # Copyright 2011 Dvir Volk <dvirsk at gmail dot com>. All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # 1. Redistributions of source code must retain the above copyright notice, | |
| # this list of conditions and the following disclaimer. | |
| # |