Skip to content

Instantly share code, notes, and snippets.

View SteffenDE's full-sized avatar
🏠
Working from home

Steffen Deusch SteffenDE

🏠
Working from home
View GitHub Profile
@SteffenDE
SteffenDE / aoc2021_day11.livemd
Created December 11, 2021 12:54
Elixir LiveBook solution for AdventOfCode 2021 Day 11
15:09:17.547: CPU Name: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
15:09:17.547: CPU Speed: 3599MHz
15:09:17.547: Physical Cores: 4, Logical Cores: 8
15:09:17.547: Physical Memory: 16047MB Total, 8552MB Free
15:09:17.547: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
15:09:17.547: Running as administrator: false
15:09:17.547: Aero is Enabled (Aero is always on for windows 8 and above)
15:09:17.547: Portable mode: false
15:09:17.563: OBS 19.0.3 (64bit, windows)
15:09:17.564: ---------------------------------
import asyncio
import os
import os.path
import mimetypes
import re
from aiohttp import web, hdrs
from staticresponse import StaticResponse
async def send_file_partial(path, request, chunksize=2**16):
@SteffenDE
SteffenDE / gist:aefd273ddef47999873b
Last active August 29, 2015 14:24
badtelegrambot.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import time
import json
import urllib
apikey = "XXXXXXXXXX12345678909876543XXXXXXXX"
apiurl = "https://api.telegram.org/bot"
--Mute Spotify when ads are playing. Use if in a country where you can't
--purchase a pro account. Open AppleScript editor (Applications > Utilities)
--paste this script in and then go File -> Save As, change 'File Format' to
--'Application' and save somewhere. Run Spotify using that application.
set currentTrack to ""
do shell script "open -a \"Spotify\""
delay 5

Keybase proof

I hereby claim:

  • I am SteffenDE on github.
  • I am steffend (https://keybase.io/steffend) on keybase.
  • I have a public key whose fingerprint is A280 95D6 4279 2ADF 1E15 3293 AC8C EFF0 789C EE3E

To claim this, I am signing this object: