Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
| from fractions import Fraction | |
| def invert(matrix): | |
| n = len(matrix) | |
| inverse = [[Fraction(0) for col in range(n)] for row in range(n)] | |
| for i in range(n): | |
| inverse[i][i] = Fraction(1) | |
| for i in range(n): |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": "sts:AssumeRole", | |
| "Principal": { | |
| "Service": "ec2.amazonaws.com" | |
| }, | |
| "Effect": "Allow", | |
| "Sid": "" |
| FROM appbase | |
| # install npm & bower packages | |
| WORKDIR /root | |
| COPY package.json bower.json /root/ | |
| RUN npm install --only=prod && \ | |
| npm cache clean && \ | |
| bower install --allow-root | |
| # install gems |
| cd /var/www/default/apps/myproject/releases/20160225020340 && ( export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" ; bundle exec sidekiq --index 0 --pidfile /var/www/default/apps/lingwatch/shared/tmp/pids/sidekiq-0.pid --environment production --logfile /var/www/default/apps/lingwatch/shared/log/sidekiq.log --config config/sidekiq.yml --daemon ) |
| <h2>Categories</h2> | |
| <ul> | |
| {% assign categories_list = site.categories %} | |
| {% if categories_list.first[0] == null %} | |
| {% for category in categories_list %} | |
| <li><a href="#{{ category | downcase | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category | camelcase }} ({{ site.tags[category].size }})</a></li> | |
| {% endfor %} | |
| {% else %} | |
| {% for category in categories_list %} | |
| <li><a href="#{{ category[0] | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category[0] | camelcase }} ({{ category[1].size }})</a></li> |
| intitle:index.of .bash_history | |
| intitle:index.of .sh_history | |
| intitle:"Index of" index.html.bak | |
| intitle:"Index of" index.php.bak | |
| intitle:"Index of" index.jsp.bak | |
| intitle:"Index of" ".htpasswd" htpasswd.bak | |
| inurl:backup intitle:index.of inurl:admin | |
| "Index of /backup" | |
| intitle:"Index of" index.html~ | |
| intitle:"Index of" index.php~ |
| #!/bin/bash | |
| #Assuming you have downloading dynamoDBLocal and extracted into a dir called dynamodbLocal | |
| java -Djava.library.path=./dynamodbLocal/DynamoDBLocal_lib -jar ./dynamodbLocal/DynamoDBLocal.jar -inMemory -port 9010 |
| # Wouldn't it be great if you could have STI like functionality | |
| # without needing to encode strings of class names in the database? | |
| # Well today is your lucky day! Discriminable Model is here to help. | |
| # | |
| # Simply specify your models desired type column, and provide a block to | |
| # do the discrimination. If you want the whole STI-esque shebang of properly | |
| # typed finder methods you can supply an array of 'discriminate_types' that will | |
| # be used to apply an appropriate type. | |
| # | |
| # class MyModel < ActiveRecord::Base |