
A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.
| #!/bin/bash | |
| ############################################################################################## | |
| # Wait for URLs until return HTTP 200 | |
| # | |
| # - Just pass as many urls as required to the script - the script will wait for each, one by one | |
| # | |
| # Example: ./wait_for_urls.sh "${MY_VARIABLE}" "http://192.168.56.101:8080" | |
| ############################################################################################## |

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.
| <?php | |
| namespace AppBundle\Form; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\Extension\Core\Type\PasswordType; | |
| use Symfony\Component\Form\Extension\Core\Type\RepeatedType; | |
| use Symfony\Component\Form\Extension\Core\Type\SubmitType; | |
| use Symfony\Component\Form\FormBuilderInterface; |
| #!/bin/bash | |
| # | |
| # You can set up sSMTP by setting the following ENV variables: | |
| # | |
| # SSMTP_TO - This is the address alarms will be delivered to. | |
| # SSMTP_SERVER - This is your SMTP server. Defaults to smtp.gmail.com. | |
| # SSMTP_PORT - This is the SMTP server port. Defaults to 587. | |
| # SSMTP_USER - This is your username for the SMTP server. | |
| # SSMTP_PASS - This is your password for the SMTP server. Use an app password if using Gmail. | |
| # SSMTP_TLS - Use TLS for the connection. Defaults to YES. |
| $ ansible-galaxy info YourUser.RoleName | grep -E 'id: [0-9]' | awk {'print $2'} |
| # This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
| # See https://www.byte.nl/blog/magento-cacheleak-issue | |
| # !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
| user app; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { |
| #!/bin/sh -e | |
| # | |
| # NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the | |
| # Docker daemon using a JSON config file. On Linux, this file is normally located at | |
| # /etc/docker/daemon.json. You should use this JSON config method if you are running | |
| # a version of Docker that is at least 1.10! | |
| # Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24: | |
| # { | |
| # "bip": "192.168.254.1/24" | |
| # } |
| #!/bin/sh | |
| # | |
| # Prevents debug traces and sensitive data to be commited. | |
| # | |
| # What to search for | |
| FUNCTIONS='var_dump\(|phpinfo\(|print_r\(' | |
| # Prevent the commit if something is found. | |
| # default: true |
Combines python-inquirer and git-amend-old to make git fix.
This gives you the possibility to amend a specific commit very easily.
Thanks to @magmax and @colinodell
| $ telnet jmikola.net 8888 | |
| Trying 97.107.131.54... | |
| Connected to jmikola.net. | |
| Escape character is '^]'. | |
| hello | |
| 131.107.200.34: hi | |
| 131.107.200.34: hello | |
| 69.164.215.64: YOLO | |
| 131.107.200.34: hello | |
| 131.107.200.34: Hello Jeremy |