Skip to content

Instantly share code, notes, and snippets.

View byteSamurai's full-sized avatar

Alfred Feldmeyer byteSamurai

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:fontScheme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Squer Fonts">
<a:majorFont>
<a:latin typeface="Museo Sans-900" />
<a:ea typeface=""/>
<a:cs typeface=""/>
</a:majorFont>
<a:minorFont>
<a:latin typeface="Museo Sans-300"/>
<a:ea typeface=""/>
@byteSamurai
byteSamurai / 01_enable-services.sh
Last active February 3, 2022 14:49 — forked from vanpelt/01_enable-services.sh
Local init scripts
#!/bin/bash
# move all services to runit, was tricky to make this happen in docker without
# overwriting cron / sshd
echo "*** Copying services to runit"
cp -R /home/wandb/service/* /etc/service/
cp -R /home/wandb/wandb-logrotate /etc/logrotate.d/
HOST=${HOST:-http://localhost:8080}
import glob
import tensorflow as tf
# Get matching filenames
pattern = '../../test-images/*.jpg.*' # A bunch of 299x299x3 jpegs
matching_filenames = glob.iglob(pattern)
# Pipeline settings
NUM_GPUS = 2
BATCH_SIZE = 32
@byteSamurai
byteSamurai / main.py
Last active February 27, 2021 18:32
Schnee, Temperatur je einzelner Monat in München seit 1950
# requirements.txt
# numpy==1.18.0
# pandas==0.25.3
# lxml==4.4.2
# html5lib==1.0.1
# BeautifulSoup4==4.8.1
# matplotlib==3.1.2
#!/bin/env python3
#!/bin/bash -xe
# requires jq and 3 brokers to start
which jq || echo 'no jq found, bye!' && exit 1
ZK_HOST=zkhost1:2181/kafka
# record all topics
/usr/local/kafka/bin/kafka-topics.sh --zookeeper $ZK_HOST --list > all_topics
# generate json for listing which topics to reassign
@byteSamurai
byteSamurai / gist:b93180f050d0e9a96a07
Created October 22, 2014 14:50
replaced <input> with <button>, closes #83
Index: coffee/vex.dialog.coffee
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- coffee/vex.dialog.coffee (date 1412904515000)
+++ coffee/vex.dialog.coffee (revision )
@@ -126,8 +126,8 @@
$buttons = $('<div class="vex-dialog-buttons" />')