Skip to content

Instantly share code, notes, and snippets.

@arminwasicek
arminwasicek / Vagrantfile
Last active January 7, 2019 16:40
Vagrantfile for kubeadm in xenial
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This script to install Kubernetes will get executed after we have provisioned the box
$script = <<-SCRIPT
# Install kubernetes
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
# Usage: ansible-playbook -i hosts jvm-histo-playbook.yaml
---
- hosts: memleak
tasks:
- name: Set target java process
set_fact:
target_jar: "memleak-assembly-0.1.jar"
- name: Setting up the destination directory
@arminwasicek
arminwasicek / ScrapeLinkedInJobtitle.ipynb
Last active April 23, 2024 16:18
Scrape Job titles and company from LinkedIn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arminwasicek
arminwasicek / AdverserialLearningLogisticRegression.ipynb
Created March 17, 2017 16:59
Jupyter notebook on adverserial learning on logistic regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arminwasicek
arminwasicek / smartplug.py
Last active March 15, 2020 23:07 — forked from wendlers/smartplug.py
Simple library/command-line-utility to control a EDIMAX Smart Plug Switch (SP-1101W) from Python
##
# The MIT License (MIT)
#
# Copyright (c) 2014 Stefan Wendler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is