Skip to content

Instantly share code, notes, and snippets.

View scythargon's full-sized avatar

Dmitry Vasilev scythargon

View GitHub Profile
@scythargon
scythargon / asyncio_server.py
Last active August 1, 2020 11:49
Websocket communication between slack and webpage
"""
As a client can use the next html page:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
window.addEventListener("load", function() {
// create websocket instance
var mySocket = new WebSocket("ws://localhost:8080/ws");
@scythargon
scythargon / .bashrc
Created January 5, 2022 19:10
Bash aliases
gc(){
git add . && git commit -am "$@"
}
alias "pg=ping 8.8.8.8"
gcp(){
git add .
git commit -am "$@" && git push
}