- STM32F4-Discovery TX: PB10 (-> FTDI RX)
- STM32F4-Discovery RX: PB11 (-> FTDI TX)
- STM32F4-Discovery BOOT1/PB2: 0V
- STM32F4-Discovery BOOT0: 3-5V
Alle beteiligten Pins scheinen 5V-tolerant zu sein, lieber aber vorher nochmal im Datenblatt nachgucken.
### Keybase proof | |
I hereby claim: | |
* I am lukas2511 on github. | |
* I am lukas2511 (https://keybase.io/lukas2511) on keybase. | |
* I have a public key whose fingerprint is 3C2F 2605 E078 A1E1 8F47 9390 9C4D BE6C F438 F333 | |
To claim this, I am signing this object: |
#!/usr/bin/env python | |
import socket | |
import sys | |
import time | |
TCP_IP = '192.168.100.241' | |
TCP_PORT = 9000 | |
MESSAGE = open(sys.argv[1], "rb").read(); |
[...] | |
default-sample-format = s32le | |
default-sample-rate = 48000 | |
default-sample-channels = 6 | |
enable-remixing = yes | |
enable-lfe-remixing = yes | |
flat-volumes = no |
#!/usr/bin/env python | |
from tones import tones | |
import math | |
# format: | |
# | |
# freq@-attn, | |
# freq@-attn, | |
# freq@-attn |
use strict; | |
use Crypt::OpenSSL::RSA; | |
use Crypt::OpenSSL::Bignum; | |
use JSON; | |
use File::Slurp; | |
use MIME::Base64; | |
my $json_file = "private_key.json"; | |
my $json_content = read_file($json_file); |
current=$(pactl list | grep Active\ Port\:\ analog\-output | awk '{print $3}') | |
headphone=$(pactl list | grep analog-output-headphones | grep available | head -n1 | awk '{print $5}' | cut -d')' -f1) | |
if [ "$current" = "analog-output-headphones" ] | |
then | |
pactl set-sink-port 0 analog-output-speaker | |
sudo hda-verb /dev/snd/hwC0D0 0x01b SET_PIN_WIDGET_CONTROL 0x00 | |
if [ "$headphone" = "not" ] | |
then | |
sudo hda-verb /dev/snd/hwC0D0 0x014 SET_PIN_WIDGET_CONTROL 0x40 |
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from mpd import (MPDClient, CommandError) | |
import sys | |
import os | |
import pytz | |
import socket | |
import fcntl | |
import struct |
<?php | |
function generatePassword() | |
{ | |
global $db, $settings; | |
return substr(md5(uniqid(microtime(), 1)), 24, 10); | |
} | |
function makeCryptPassword ($password, $type = 0) |
/* $NetBSD: cal.c,v 1.10 1998/07/28 19:26:09 mycroft Exp $ */ | |
/* | |
* Copyright (c) 1989, 1993, 1994 | |
* The Regents of the University of California. All rights reserved. | |
* | |
* This code is derived from software contributed to Berkeley by | |
* Kim Letkeman. | |
* | |
* Redistribution and use in source and binary forms, with or without |