precision recall f1-score support
False 0.90 0.99 0.94 11174
True 0.70 0.24 0.36 1537
accuracy 0.90 12711
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
MW_SVC_PROF_PUSH_BASE_URL="http://172.17.0.1:8900" | |
MW_SVC_PROF_PUSH_TOXIPROXY_URL="http://172.17.0.1:8474" | |
MW_SVC_PROF_PUSH_TOXIPROXY_PROXIES='[{"name": "push_http", "listen": "0.0.0.0:8081", "upstream": "tinyproxy:8888"}]' | |
MW_SVC_PROF_PUSH_TOXIPROXY_TOXICS='[{"type": "latency", "attributes": {"latency": 1000, "jitter": 200}}, {"type": "bandwidth", "attributes": {"rate": 100}}, {"type": "slow_close", "attributes": {"delay": 100}}, {"type": "slicer", "attributes": {"average_size": 20, "size_variation": 10, "delay": 100}}, {"type": "limit_data", "attributes": {"bytes": 500}}]' |
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
MW_SVC_PROF_PUSH_BASE_URL="http://172.17.0.1:8900" | |
MW_SVC_PROF_PUSH_TOXIPROXY_URL="http://172.17.0.1:8474" | |
MW_SVC_PROF_PUSH_TOXIPROXY_PROXIES='[{"name": "push_http", "listen": "0.0.0.0:8081", "upstream": "tinyproxy:8888"}]' | |
MW_SVC_PROF_PUSH_TOXIPROXY_TOXICS='[{"type": "latency", "attributes": {"latency": 1000, "jitter": 200}}, {"type": "bandwidth", "attributes": {"rate": 100}}, {"type": "slow_close", "attributes": {"delay": 100}}, {"type": "slicer", "attributes": {"average_size": 20, "size_variation": 10, "delay": 100}}, {"type": "limit_data", "attributes": {"bytes": 500}}]' |
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 | |
# ./check-codec.sh <file> <codec> | |
ffprobe -v quiet -print_format json -show_format -show_streams -i "$1" | jq -e ".streams[] | select(.codec_name == \"$2\") | {codec_name}" | |
if [[ "${PIPESTATUS[1]}" -eq 0 ]] | |
then | |
echo "Matching codec for file ${1}" | |
fi |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfCHTiQEUWfnfbU3qoGx5Xhs3I523LOaV/HrU978fs2DBAOYqEXoGpswIWVtLY3Zkt90WOKJFZYVSXfYwQ6p/pPVDZnMFiINtQpQpjP72XT9SKHE3hYujERIX3mqn4NE4CnD6YdTMceIyyI8ntpOYErvIdo54sZNKzTjmcShH3Hn0+kKYbZxCg3nudh7RbzXOIjKT6WKy7kyKu2EpWWHDvI3LVFJljBWX7EzQcnaCi2hPaNC2oRC+dP8mHI/QRWxbNh2vbyRo7/VC6KqgCMwaGRPHrVAhxWbIrJ2Xk6YUnk7xKC2ut3SOZBMILrROIscpJqXKvVLNgFyFqUGWu+RVV nemo@nemoworld |
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
alias e="emacsclient -nc -a=''" | |
alias enox="emacsclient -nc -t -a=''" |
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
# Start required services | |
> docker-compose up -d db db-replica s3proxy | |
> docker exec -it db bash | |
> mysql -u root -p | |
# Workaround for MySQL 5.6 to 5.7 (disable strict mode) | |
> (mysql): SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION'; | |
# Create monitoring user | |
> (mysql): CREATE USER 'monitoring'@'%' IDENTIFIED BY 'monitoring'; |
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
class P: | |
def __init__(self): | |
self.x = 1 | |
@property | |
def foo(self): | |
return self.x | |
@foo.setter | |
def foo(self, value): |
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
> grep -iR "../../../styleguide-examples" kitsune/sumo/static/sumo/scss/ | |
kitsune/sumo/static/sumo/scss/base/_typography.scss:// Markup: ../../../styleguide-examples/typography.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_radios-checkboxes.scss:// Markup: ../../../styleguide-examples/field_checkbox.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_radios-checkboxes.scss:// Markup: ../../../styleguide-examples/field_radio.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_fields.scss:// Markup: ../../../styleguide-examples/form.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_fields.scss:// Markup: ../../../styleguide-examples/field.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_fields.scss:// Markup: ../../../styleguide-examples/field_select.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_fields.scss:// Markup: ../../../styleguide-examples/field_textarea.njk | |
kitsune/sumo/static/sumo/scss/base/forms/_fields.scss:// Markup: ../../../styleguide-examples/field_help_text.njk |
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
{'session': '.eJx1i0sSgjAQRO-SNRLJBEPceBQqmUwgyK-YqAvLu4uuddfd7_VTIG-xzcuVZnEWEOPRmqDrCnQwmjwYH0Hb0IC1YHVt_YlUU4lC9Oqw3rinsN8kMsuQOMsHeVym1eVySnO5z4UcfqKBLxoIwAFYCAYjGTQOsamVAkdOG1fINHWS751MuMz8SYeRXGy31PW53OtfY6T4FcTrDWpTSmM.XbgDGQ.MAT-rQvJDKBR70DVkvrfoTSceEY', 'exp': 'form-v1', '_ga': 'GA1.2.1436846470.1572340506', '_gid': 'GA1.2.199706777.1572340506', '_gat': '1'} | |
{'session': '.eJx1i0sSgjAQRO-SNRLIACFuPAo1DBMI8ism6sLy7qJr3XX3e_1UJLtv4nrlRZ2VQUPscs4q4LK1jAZdXndUFZnJkS2X6Mh5VokazGm7ycDdcdMkorsgUT-4pXXeMKZzWNJjTvT4E41yKYABEMBBZ8mzJYtEdWkMIGNhMdFh7rXcex1oXeSTThOjb_bQDzE96l9jYv8V1OsNP91Ljw.XbgDIg.mBcIWXOmJLlnpZ_UsbiI0FNhkO4', 'exp': 'form-v1', '_ga': 'GA1.2.1380609863.1572340515', '_gid': 'GA1.2.1732085948.1572340515', '_gat': '1'} | |
{'exp': 'form-v1', 'session': '.eJx1i0sSgjAQRO-SNRDIICFuPAo1mUwgyK9I1IXl3UXXuuvu9_opKO6-S-uVF3EWjamBlPFKO2vb0jbaeNcQVti0pa6QQVe2NpXIxKDy7RYHdsdNUozShZjkgy2t84apmMNSHHMmx59ojJcaGAABDDhNnjVpJGpPSgEy1hozGeZexnsvA61L_KR8YvTdHvohFUf9a0zsv4J4vQG-a0rY.XbgDKg.NH6IU3Cxx1K_c5TUZqk8o3WMAvE', '_ |