Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| STATUS: 200 | |
| lambdaExecSecurityGroups: ["sg-xxxxxxx"] | |
| subnets: ["subnet-xxxxxxx"] |
| For troubleshooting, two things to first try: | |
| run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg | |
| run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working | |
| If that all looks all right, one next thing to try: | |
| run `brew install pinentry` to ensure you have a good tool installed for passphrase entry | |
| If after that install and you re-try git commit and still get the "failed to sign the data" error: | |
| run `gpgconf --kill gpg-agent` to kill any running agent that might be hung |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| type CreateParams struct { |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| #!/usr/bin/env python | |
| import argparse | |
| import redis | |
| def connect_redis(conn_dict): | |
| conn = redis.StrictRedis(host=conn_dict['host'], | |
| port=conn_dict['port'], | |
| db=conn_dict['db']) | |
| return conn |
| # -*- coding: utf-8 -*- | |
| import wifi | |
| def Search(): | |
| wifilist = [] | |
| cells = wifi.Cell.all('wlan0') |
| <!-- create_normal.html :: part 4 --> | |
| <script type='text/javascript'> | |
| function updateElementIndex(el, prefix, ndx) { | |
| var id_regex = new RegExp('(' + prefix + '-\\d+)'); | |
| var replacement = prefix + '-' + ndx; | |
| if ($(el).attr("for")) $(el).attr("for", $(el).attr("for").replace(id_regex, replacement)); | |
| if (el.id) el.id = el.id.replace(id_regex, replacement); | |
| if (el.name) el.name = el.name.replace(id_regex, replacement); | |
| } |
| # Uncomment the next line if you have installed wkhtmltopdf | |
| # sudo apt remove wkhtmltopdf | |
| cd ~ | |
| # Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line | |
| wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
| tar xvf wkhtmltox*.tar.xz | |
| sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin | |
| sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig |