Skip to content

Instantly share code, notes, and snippets.

View ldaume's full-sized avatar
🐳
Doing the right things right

Leonard 'Lenny' Daume ldaume

🐳
Doing the right things right
View GitHub Profile
@ldaume
ldaume / find-log4j-debian.sh
Created December 13, 2021 08:40 — forked from perryflynn/find-log4j-debian.sh
Find log4j for CVE-2021-44228 on some places * Log4Shell
#!/bin/bash
# Finds log4j resources on Linux (tested with Debian)
# by Christian Blechert <christian@serverless.industries>
# ATTENTION! It only checks ext3 + ext4 filesystems right now!
# Extend it if you use something else
while read -u 3 -r JAR
do
@ldaume
ldaume / cozmo_unleashed-devel.py
Created December 30, 2017 18:09 — forked from acidzebra/cozmo_unleashed-devel.py
dev version of the cozmo_unleashed script. Rough edges ahead.
#!/usr/bin/env python3
# based on Copyright (c) 2016 Anki, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ldaume
ldaume / cozmo_unleashed_scheduler.py
Created December 30, 2017 18:08 — forked from acidzebra/cozmo_unleashed_scheduler.py
Autonomy for Cozmo, a script for having Cozmo freeplay until the battery runs low and then find/dock with the charger, with crude scheduler for weekdays/weekend and allowed play times. While in "allowed" play times, Cozmo has a 20% every 5 minutes of waking up and playing. Will attempt to find dock and charge when battery runs low.
#!/usr/bin/env python3
# based on Copyright (c) 2016 Anki, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ldaume
ldaume / cozmo_unleashed.py
Created December 30, 2017 18:08 — forked from acidzebra/cozmo_unleashed.py
Attempting to create a perpetuum cozmobile
#!/usr/bin/env python3
# based on Copyright (c) 2016 Anki, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ldaume
ldaume / install-docker.sh
Last active August 3, 2017 10:05 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
play.shaded.ahc.org.asynchttpclient.threadPoolName=AsyncHttpClient
play.shaded.ahc.org.asynchttpclient.maxConnections=-1
play.shaded.ahc.org.asynchttpclient.maxConnectionsPerHost=-1
play.shaded.ahc.org.asynchttpclient.connectTimeout=5000
play.shaded.ahc.org.asynchttpclient.pooledConnectionIdleTimeout=60000
play.shaded.ahc.org.asynchttpclient.connectionPoolCleanerPeriod=1000
play.shaded.ahc.org.asynchttpclient.readTimeout=60000
play.shaded.ahc.org.asynchttpclient.requestTimeout=60000
play.shaded.ahc.org.asynchttpclient.connectionTtl=-1
play.shaded.ahc.org.asynchttpclient.followRedirect=false
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://sourceforge.net/projects/nmon/files/nmon16e_mpginc.tar.gz
# Untar archive
tar -xzvf nmon16e_mpginc.tar.gz