Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| function gmailAutoarchive() { | |
| var delayDays = 2; // will only impact emails more than 48h old | |
| var maxDate = new Date(); | |
| maxDate.setDate(maxDate.getDate()-delayDays); // what was the date at that time? | |
| // Get all the threads labelled 'autoarchive' | |
| var label = GmailApp.getUserLabelByName("autoarchive"); | |
| var threads = label.getThreads(0, 400); | |
| # Makefile for programming the ATtiny85 | |
| # modified the one generated by CrossPack | |
| DEVICE = attiny85 | |
| CLOCK = 8000000 | |
| PROGRAMMER = -c usbtiny | |
| OBJECTS = main.o | |
| # for ATTiny85 | |
| # see http://www.engbedded.com/fusecalc/ | |
| FUSES = -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m |
| Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF | |
| Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH | |
| Keys are generic ones. These are the same from MSDN account. | |
| Product Key : -6Q8QF | |
| Validity : Valid | |
| Product ID : 00369-90000-00000-AA703 | |
| Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017 |
| [Unit] | |
| Description=My Miscellaneous Service | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=nanodano | |
| WorkingDirectory=/home/nanodano | |
| ExecStart=/home/nanodano/my_daemon --option=123 | |
| Restart=on-failure # or always, on-abort, etc |
| <p>Hello | |
| <script> | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open('GET', '/stream'); | |
| xhr.seenBytes = 0; | |
| xhr.onreadystatechange = function() { | |
| console.log("state change.. state: "+ xhr.readyState); |
| import superagentPromise from 'superagent-promise'; | |
| import _superagent from 'superagent'; | |
| const superagent = superagentPromise(_superagent, global.Promise); | |
| const API_ROOT = 'https://api.tiens.lk/v2/'; | |
| const encode = encodeURIComponent; | |
| const responseBody = res => res.body; |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| # How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli | |
| KEY_ID=alias/my-key | |
| SECRET_BLOB_PATH=fileb://my-secret-blob | |
| SECRET_TEXT="my secret text" | |
| ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob | |
| DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target | |
| encrypt-text: |
| # Inspired from https://medium.com/@ismailakkila/black-hat-python-encrypt-and-decrypt-with-rsa-cryptography-bd6df84d65bc | |
| # Updated to use python3 bytes and pathlib | |
| import zlib | |
| import base64 | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Cipher import PKCS1_OAEP | |
| from pathlib import Path |