This file contains hidden or 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
#!/usr/bin/env bash | |
play -c2 -n synth whitenoise band -n 100 24 band -n 300 100 gain +20 flanger |
This file contains hidden or 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
import tornado.web | |
from tornado.ioloop import IOLoop | |
from terminado import TermSocket, SingleTermManager, UniqueTermManager | |
if __name__ == '__main__': | |
# term_manager = SingleTermManager(shell_command=['bash']) | |
term_manager = UniqueTermManager(shell_command=['/bin/login']) | |
handlers = [ | |
(r"/websocket", TermSocket, {'term_manager': term_manager}), | |
(r"/()", tornado.web.StaticFileHandler, {'path':'index.html'}), |
This file contains hidden or 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
function reportview(){ | |
var length = $('.ytp-progress-bar')[0].getAttribute('aria-valuemax'); | |
var title = $('h1.title')[0].innerText; | |
var payload = {}; | |
payload['length'] = length; | |
payload['title'] = title; | |
jQuery.get("http://localhost:8000/youtube", payload); | |
} | |
setTimeout(reportview, 10000); |
This file contains hidden or 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
from pylxd import Client | |
# change the following line and export it as an environment variable | |
# export REQUESTS_CA_BUNDLE=~/.config/incus/servercerts/YOURCLUSTER.crt | |
def create_instance(incus_client, name, image_alias): | |
iconfig = {'name': name, | |
'source': {'type': 'image', | |
'protocol': | |
'simplestreams', |
OlderNewer