Inspired by Maya Angelou's Still I Rise
You may walk through my GitHub history,
With it’s non idiomatic and fragal lines,
You may value me less than dirt,
But still, like dust, I’ll rise.
from bs4 import BeautifulSoup | |
import requests | |
url = 'https://en.wikipedia.org/wiki/Transhumanism' | |
# get contents from url | |
content = requests.get(url).content | |
# get soup | |
soup = BeautifulSoup(content,'lxml') # choose lxml parser | |
# find the tag : <img ... > | |
image_tags = soup.findAll('img') |
Ever since you could send patches by mail we'd interact over thousands of miles, exchanging code snipped between people we don't even know beforehand.
That and the transient nature of contributions might be the main the reasons it's very hard to find out why things go wrong.
The guide tries to pin down most common issues and bring to light some possible reasons.
I'm writing based on my experiences with some projects, the feedback I heard from frustrated users and overloaded devs. In case of Check_MK I've even seen all sides, but this writeup is based on a lot more projects / interactions. In most cases I'm just a mere user. At rare times I've been intrigued, but most often I've been driven mad.
This gist captures what needs to be done to add a new field to Riak's Yokozuna | |
search index. | |
Sources: | |
- https://github.com/basho/yokozuna/issues/130 | |
- http://riak-users.197444.n3.nabble.com/How-to-update-existed-schema-td4032143.html | |
The code below is for illustration purposes only. Use at your own risk. | |
1. Create/Update new schema file |
Gartner: | |
https://www.gartner.com/doc/2867017/-planning-guide-overview-architecting | |
https://www.gartner.com/doc/2929317/framework-evaluating-big-data-initiatives | |
https://www.gartner.com/doc/2773117/security-futures-plan-peak-threat | |
https://www.gartner.com/doc/2691917/big-data-needs-datacentric-security | |
https://www.gartner.com/doc/2621115/big-data-analytics-requires-ethical | |
Books and Training: | |
http://www.amazon.com/Data-Science-Big-Analytics-Discovering/dp/111887613X | |
http://www.kaggle.com/competitions#getting-started |
#!/bin/bash | |
# Script to export Safari's reading list into a text file, then import this into Pocket or Evernote (or any service with a "email in content" feature). | |
# First take all of Safari's Reading List items and place them in a text file. | |
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' > readinglistlinksfromsafari.txt | |
# Now loop over each of those URls within that text file and add them to pocket. | |
while IFS= read -r line | |
do | |
echo $line |
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars
file, reference that vars
file from your task
, and encrypt the whole vars
file using ansible-vault encrypt
.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.
from optparse import OptionParser, make_option | |
from pyVim.connect import SmartConnect, Disconnect | |
from pyVmomi import vim, vmodl | |
import argparse | |
import atexit | |
import sys | |
import urllib2, urlparse, base64 | |
vmxPath = [] | |
dsVM = {} |
from pyVim.connect import SmartConnect, Disconnect | |
from pyVmomi import vim, vmodl | |
import argparse | |
import atexit | |
import sys | |
import pprint | |
si = SmartConnect(host="192.168.1.7", user="root", pwd="vmware") | |
servcontent = si.RetrieveServiceContent() |