On Ubuntu 14.04
python -c 'import crypt; print crypt.crypt("test", "$6$random_salt")'
$6$random_salt$BnOQxEG8Gk2rzFYwoWXjr59zLVYzwshvca5oV0PtU8fAfT4a571evgca.E0hLnYNCdfq//zw9YyQN33QtztI10
On OSX El Capitan
| package main | |
| import ( | |
| "database/sql" | |
| _ "github.com/lib/pq" | |
| "log" | |
| ) | |
| func failOnError(e error) { | |
| if e != nil { |
| package main | |
| import ( | |
| "crypto/md5" | |
| "crypto/sha1" | |
| "crypto/sha256" | |
| "fmt" | |
| "hash" | |
| ) |
| fill("01/15/2016", "12/20/2016") |
| verify(foo).doSomething(any(Thing.class), 4) |
| Bill Clinton cheats on his wife. Impeach him. Trump proudly brags about sexual assault (and has cheated on his wives). Elect him. Hillary oversaw the department of state while 4 people died in an embassy attack. Put her in jail. 2 Republicans were in office while over 200 people died in embassy attacks. No problem. Immigrants don't pay taxes. Round them up and kick them out. Trump doesn't pay taxes. He's a business genius. Hillary's foundation only spent 87% of their donations helping people. She's a crook. Trumps foundation paid off his debts, bought sculptures of him, and made political donations to avoid investigations while using less than 5% of funds for charity (and he got shut down by NY State). So savvy... Put him in the white house. Trump made 4 billion dollars in 40 years, when an index fund started at the same time with the same "small loans" he received would be worth $12 billion today... without a trail of bankruptcies, thousands of lawsuits and burned small business owners. He's a real business |
On Ubuntu 14.04
python -c 'import crypt; print crypt.crypt("test", "$6$random_salt")'
$6$random_salt$BnOQxEG8Gk2rzFYwoWXjr59zLVYzwshvca5oV0PtU8fAfT4a571evgca.E0hLnYNCdfq//zw9YyQN33QtztI10
On OSX El Capitan
I needed a more recent python for one of our projects but you can't update the system python on ubuntu 14.04 without breaking some core mechanics. Here's the steps I went through!
sudo apt-get install -y \
autotools-dev \
blt-dev \
bzip2 \
| from jinja2 import Template | |
| text = """ | |
| hi {{ name|default(other_name) }} | |
| """ | |
| template = Template(text) | |
| template.render(name="foo") # passing variables here to the text template if needed | |
| template.render(other_name="bar") |
| mkdir -p ansible/roles/kubernetes-minion/{meta,tasks,defaults,templates,handlers} |
| ansible/roles/kubernetes-minion/ | |
| ├── defaults | |
| ├── handlers | |
| ├── meta | |
| ├── tasks | |
| └── templates |