Skip to content

Instantly share code, notes, and snippets.

@yalov
yalov / test.cpp
Last active May 14, 2023 15:07
scs question, 2 client's protocol in one application
/*
The MIT License (MIT)
Copyright (c) 2018 James Boer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
// Open the chrome-console (Ctrl+Shift+J) and paste. then hit Enter.
var cookieDate = new Date();
cookieDate.setFullYear(cookieDate.getFullYear( ) + 1);
document.cookie="VISITOR_INFO1_LIVE=fPQ4jCL6EiE; expires=" + cookieDate.toGMTString( ) + "; path=/";
#!/usr/bin/env python3
"""
Download and add description to ical files from the calend.ru
requirements:
>= Python3.6
pip install icalendar trafilatura colorama
version: 11
@yalov
yalov / install_tools_for_KDE4.sh
Last active September 13, 2015 18:29
install_tools_for_KDE4
#!/bin/sh
apt-get update
apt-get install plasma-widget-veromix --assume-yes #pulseaudio max volume >100
#etc.
@yalov
yalov / Record_HLS.sh
Last active January 25, 2022 04:32 — forked from John07/HLS_dvr.sh
A small bash script to make ffmpeg recording HLS streams (m3u8).
#!/bin/bash
for i in {1..168} # week
do
echo "ITERATION $i"
seconds=3600 #hour
# Date format for the recording file name