(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| set -e | |
| if [[ -z $CA_PASSWD ]] || [[ -z $CERT_PASSWD ]] ; then | |
| echo " Provide CA Password [CA_PASSWD] and Cert password [CERT_PASSWD] before hand" | |
| exit 1 | |
| fi | |
| rm -f elastic-certificates.p12 elastic-certificate.pem elastic-stack-ca.p12 || true | |
| #password=$$([ ! -z "$$ELASTIC_PASSWORD" ] && echo $$ELASTIC_PASSWORD || echo $$(docker run --rm $(ELASTICSEARCH_IMAGE) /bin/sh -c "< /dev/urandom tr -cd '[:alnum:]' | head -c20")) && \ | |
| docker run --name elastic-helm-charts-certs -i -w /app \ |
| #!/bin/bash | |
| cd ${myVMs} | |
| MyVM=testvm | |
| vboxmanage unregistervm ${MyVM} --delete | |
| rm -rf ${MyVM} | |
| mkdir ${MyVM} | |
| cd ${MyVM} | |
| vboxmanage createhd --filename ${MyVM}.vdi --size 30720 | |
| vboxmanage createvm --name ${MyVM} --ostype RedHat_64 --register | |
| vboxmanage modifyvm ${MyVM} --memory 6172 --vram=12 --acpi on --nic1 NAT # optional second NIC # --nic2 bridged --bridgeadapter2 enp0s25 |
| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "⚡" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold red" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| import cv2.cv as cv | |
| import tesseract | |
| gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE) | |
| cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY) | |
| api = tesseract.TessBaseAPI() | |
| api.Init(".","eng",tesseract.OEM_DEFAULT) | |
| api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz") | |
| api.SetPageSegMode(tesseract.PSM_SINGLE_WORD) | |
| tesseract.SetCvImage(gray,api) | |
| print api.GetUTF8Text() |
| ============================= | |
| **http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html | |
| **http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html | |
| **http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html | |
| **http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html | |
| **http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html | |
| *http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html | |
| *http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html |
| import urllib2 | |
| import threading | |
| from Queue import Queue | |
| import sys, os, re | |
| class ThreadedDownload(object): | |
| REGEX = { | |
| 'hostname_strip':re.compile('.*\..*?/', re.I) | |
| } |