Skip to content

Instantly share code, notes, and snippets.

View nsteenv's full-sized avatar

Vincent Van Steenbergen nsteenv

View GitHub Profile
@nsteenv
nsteenv / cleanup.sh
Created September 25, 2018 09:35 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
@nsteenv
nsteenv / introduction_deep_learning_with_keras_and_tensorflow.md
Last active February 19, 2018 14:50
Deep Learning Kickstart - Training Workshop @ PAPIs Europe

Deep Learning Kickstart - Training Workshop @ PAPIs Europe

Summary

Deep Learning applications are at the leading edge of the current AI revolution.

TensorFlow is Google’s internally developed framework for deep learning, which has been growing in popularity since it was released as open source in 2015.

Keras is a high-level neural networks API, written in Python and capable of running on top of either TensorFlow, CNTK or Theano. It was developed with a focus on enabling fast experimentation and is now included as a TensorFlow contrib module.

@nsteenv
nsteenv / postgres-cheatsheet.md
Created January 16, 2017 12:33 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@nsteenv
nsteenv / postgres_queries_and_commands.sql
Created January 8, 2017 21:19 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'