All times are GMT unless stated otherwise.
Tuesday, April 18th
11:24 seppo0011 tweeted Mi objetivo de la semana es no responderle al @esacrosa cuando dice boludeces. Día 2: está difícil.
| #!/usr/bin/env bash | |
| set -Eeu | |
| action=disable | |
| [ -n "${1:-}" ] && action=enable | |
| devices() { cat<<EOF; } | |
| Sleep Button | |
| Power Button | |
| DELL0927:00 044E:1220 Touchpad | |
| DELL0927:00 044E:1220 Mouse |
| Ingredientes | |
| 300g de harina de garbanzo | |
| Sal | |
| Polvo de hornear | |
| Cúrcuma | |
| Pimentón | |
| Pimienta | |
| Aceite de oliva | |
| Fritolin o aceite de girasol |
| import requests | |
| r = requests.get('https://resultados2019.gob.ar/assets/data/totalized_results/regions/5/5589.json').json() | |
| fit = float([x for x in r['rp'] if x['pc'] == 144 and x['cc'] == 1026][0]['v']) | |
| fdt = float([x for x in r['rp'] if x['pc'] == 109 and x['cc'] == 1026][0]['v']) | |
| jxc = float([x for x in r['rp'] if x['pc'] == 145 and x['cc'] == 1026][0]['v']) | |
| print('FIT', fit / 1) | |
| print('FDT', fdt / 5) | |
| print('JxC', jxc / 8) |
| ~DURANGO, NORMA HAYDÉE | |
| ~BRIZUELA Y DORIA DE CARA, OLGA INES | |
| ~ALMIRÓN, ANA CLAUDIA | |
| ~BULLRICH, ESTEBAN JOSE | |
| ~SOLANAS, FERNANDO EZEQUIEL | |
| ALPEROVICH, JOSÉ JORGE | |
| ~IANNI, ANA MARIA | |
| ~URTUBEY, RODOLFO JULIO | |
| KUNATH, SIGRID ELISABETH | |
| ~SOLARI QUINTANA, MAGDALENA |
| FROM java | |
| RUN wget https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/javase/3.2.2-SNAPSHOT/javase-3.2.2-20151101.162926-3.jar | |
| RUN wget https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/core/3.2.2-SNAPSHOT/core-3.2.2-20151101.162918-3.jar | |
| RUN wget https://repo1.maven.org/maven2/com/beust/jcommander/1.48/jcommander-1.48.jar | |
| ENTRYPOINT ["java","-cp", "core-3.2.2-20151101.162918-3.jar:javase-3.2.2-20151101.162926-3.jar:jcommander-1.48.jar", "com.google.zxing.client.j2se.CommandLineRunner"] |
| <?php | |
| // sample usage: php gutenberg.php 20687 "Pride and Prejudice" > prideandprejudice.xml | |
| $baseurl = 'http://www.gutenberg.org/files/' . $argv[1] . '/mp3/'; | |
| $name = $argv[2]; | |
| $data = file_get_contents($baseurl); | |
| preg_match_all('/href="(.*?\.mp3)"/', $data, $matches); | |
| $ep = 0; | |
| ?> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <rss> |
| seppo@nbba-swaisbrot:~$ strace date | |
| execve("/bin/date", ["date"], [/* 83 vars */]) = 0 | |
| brk(NULL) = 0x2170000 | |
| access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
| mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc2eabf4000 | |
| access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
| open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
| fstat(3, {st_mode=S_IFREG|0644, st_size=112343, ...}) = 0 | |
| mmap(NULL, 112343, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc2eabd8000 | |
| close(3) = 0 |
| #!/bin/sh | |
| palette="/tmp/palette.png" | |
| filters="fps=15,scale=$3:-1:flags=lanczos" | |
| ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
| ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
| <html> | |
| <head> | |
| <style> | |
| * { | |
| border: 0; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .box { |