Skip to content

Instantly share code, notes, and snippets.

View antongorshkov's full-sized avatar

Anton Gorshkov antongorshkov

View GitHub Profile
Verifying that "antong.id" is my Blockstack ID. https://onename.com/antong
https://www.zenbership.com/Resources/Demo
http://www.capterra.com/membership-management-software/spotlight/44378/Tendenci/Tendenci
https://www.admidio.org/
http://blog.capterra.com/which-price-is-right-for-your-membership-management-software-solution/
recdesk.com
https://github.com/kidaa/aur/blob/974ca1e3f0c741a0df2ad29c5d7ee3dc8e32d92c/picasa_upload/picasa_upload
https://github.com/hazelnusse/picasaAPI/tree/36b06cbfa15ff905fdb0e99299128dfd2028b339
https://github.com/ivh/piscripts/blob/66c405b2b2016095703fe10d1c81ae82727edf25/googleUpload.py
https://github.com/JamesSeo/raspberryCCTV/blob/9eefd22e2ae61935c40df32aa8372cb0352f6aab/upload-photo.py

Send a file to Kafka

while true; do bin/kafka-console-producer.sh --broker-list $KAFKA --topic test2 < simple.json > k.out; done

Pick a random file and send to Kafka

while true; do bin/kafka-console-producer.sh --broker-list $KAFKA --topic test2 < "$(ls *100.json | shuf | head -1)" > k.out; done
* Clipboard Manager OSX: https://fiplab.com/apps/copyclip-for-mac (Ditto for Windows)
import pprint
with open('fruits') as f:
d = dict([x.rstrip(),1] for x in f)
fruit = raw_input('Enter fruit: ').title()
if fruit in d:
print('Got it!')
else:
print('No luck!')
Abiu
Acai
Acerola
Ackee
Agave
Aizen
Alligator
Amazon
Ambarella
Apple
Remove space used:
docker ps -a
docker rm < <IMAGE_NAME>
docker volume ls
docker volume rm <VOLUME_NAME>
sudo service docker stop
sudo rm -rf /var/lib/docker
sudo service docker start