This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) bt | |
#0 0x00007fa22af292a2 in check_match (undef_name=undef_name@entry=0x7fa223ac70ac "strlen", ref=ref@entry=0x7fa223ac58b0, | |
version=version@entry=0x7fa223ac3b78, flags=flags@entry=5, type_class=type_class@entry=1, sym=0x7fa223e3a940, symidx=1690, | |
strtab=0x7fa223e42650 "", map=0x7fa22af1d2f0, versioned_sym=0x7fa2232b80e8, num_versions=0x7fa2232b80e4) at ./elf/dl-lookup.c:89 | |
#1 0x00007fa22af297e9 in do_lookup_x (undef_name=undef_name@entry=0x7fa223ac70ac "strlen", new_hash=new_hash@entry=479443869, | |
old_hash=old_hash@entry=0x7fa2232b81a0, ref=0x7fa223ac58b0, result=result@entry=0x7fa2232b81b0, scope=<optimized out>, | |
i=<optimized out>, version=0x7fa223ac3b78, flags=5, skip=<optimized out>, type_class=1, undef_map=0x7fa223d43a40) | |
at ./elf/dl-lookup.c:431 | |
#2 0x00007fa22af2a211 in _dl_lookup_symbol_x (undef_name=0x7fa223ac70ac "strlen", undef_map=undef_map@entry=0x7fa223d43a40, | |
ref=ref@entry=0x7fa2232b8240, symbol_scope=<optimized out>, version=0x7fa223ac3b78, type_class=type_cl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary_sensor: | |
- platform: gpio | |
name: "switch" | |
on_multi_click: | |
- {timing: ["ON for at least 0.5s"], then: [{lambda: "id(light).turn_on().set_brightness(0.25).perform();"}]} | |
- {timing: ["ON for at least 1.0s"], then: [{lambda: "id(light).turn_on().set_brightness(0.50).perform();"}]} | |
- {timing: ["ON for at least 1.5s"], then: [{lambda: "id(light).turn_on().set_brightness(0.75).perform();"}]} | |
- {timing: ["ON for at least 2.0s"], then: [{lambda: "id(light).turn_on().set_brightness(1.00).perform();"}]} | |
- {timing: ["ON for at most 1s"], then: [{lambda: "id(light).toggle().perform()"}] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable logging | |
logger: | |
level: VERBOSE | |
logs: | |
canbus: INFO | |
sensor: DEBUG | |
can_utils: INFO | |
timer_driver: INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.global shp0_01, shp0_23 | |
.global shp1_01, shp1_23 | |
.global shp2_01, shp2_23 | |
.global shp3_01, shp3_23 | |
.global shp4_01, shp4_23 | |
.global shp5_01, shp5_23 | |
.global shp6_01, shp6_23 | |
.global shp7_01, shp7_23 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.global init_sprites | |
.text | |
init_sprites: | |
ldx #<vbl | |
ldy #>vbl | |
jsr multi_init_engine | |
rts | |
vbl: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
extern void init_sprites(); | |
extern void multi_show_sprites(); | |
extern void multi_animuj(); | |
extern char shp0_01, shp0_23; | |
extern char shp1_01, shp1_23; | |
extern char shp2_01, shp2_23; | |
extern char shp3_01, shp3_23; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
poly_4 = [0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1] | |
poly_5 = [0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1] | |
CLOCK_177 = 1778400 | |
MIN_SAMPLE_RATE = 8000 | |
MAX_SAMPLE_RATE = 96000 | |
function createNoise16Buffer(ctx, poly_data, divider) { | |
let position = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import os, sys | |
from urllib.request import Request, urlopen | |
HOST = "192.168.1.105" | |
PORT = 8080 | |
UUID = "18d848f0-1dd2-11b2-bf00-000391e19ead" | |
keys={'VOD' : 361, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aws s3 ls "$(echo $1 | sed s/s3a:/s3:/g)" --recursive --summarize | tail -n 2 | grep -i 'total size:' | cut -f 2 -d ':' | xargs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S3_BASE_URL=$1 | |
TMP_DIR=$(mktemp -d) | |
prettify() { | |
awk '{ split( "B KB MB GB TB PB" , v ); s=1; while( $1>1024 ){ $1/=1024; s++ } printf "%.1f %s\n", $1, v[s] }' | |
} | |
do_ls() { | |
aws s3 ls $S3_BASE_URL | grep -v '\$folder\$' | cut -b 32- | xargs -P 20 --verbose -I _INPUT_ -n 1 $1 bash -c "s3-size.sh ${S3_BASE_URL}_INPUT_ > $TMP_DIR/\$(echo _INPUT_|md5sum|cut -f 1 -d ' ').size$2" | |
} | |
do_ls /bin/echo ' #' > $TMP_DIR/output 2>/dev/null |
NewerOlder