Я не смог доставить PPP в РФ -- телефон застрял в TipTrans.
Related topic on the forum: https://forum.pine64.org/showthread.php?tid=15890&pid=105858.
Я не смог доставить PPP в РФ -- телефон застрял в TipTrans.
Related topic on the forum: https://forum.pine64.org/showthread.php?tid=15890&pid=105858.
import time | |
class Sleepy(type): | |
def __getitem__(cls, value): | |
if isinstance(value, slice): | |
if value.step is None: | |
# start:stop | |
# minutes:seconds |
@ECHO OFF | |
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
set /p what_to_do=enable or disable windows defender?: | |
if "%what_to_do%"=="disable" ( | |
set state=1 | |
) else ( | |
if "%what_to_do%"=="enable" ( | |
set state=0 |
Set objFS = CreateObject("Scripting.FileSystemObject") | |
outFile = "clip.txt" | |
oldClip = "" | |
Do | |
newClip = ClipBoard(Null) | |
If newClip <> oldClip Then | |
Set objFile = objFS.OpenTextFile(outFile, 8, True) | |
objFile.Write "############" & vbCrLf & ClipBoard(Null) & vbCrLf | |
objFile.Close |
<!DOCTYPE html> | |
<head> | |
<title>$title</title> | |
<meta property="og:site_name" content="$site_name"> | |
<meta property="og:description" content="$description"> | |
<meta property="article:author" content="$author"> | |
<!-- $image_url / link preview image is set using og:image property --> | |
<!-- <meta property="og:image" content="http://example.com/img.jpeg"> --> | |
<meta property="telegram:channel" content="@cor_bee"> |
Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.
This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.
See Contributing.
const blobToImage = (blob) => { | |
return new Promise(resolve => { | |
const url = URL.createObjectURL(blob) | |
let img = new Image() | |
img.onload = () => { | |
URL.revokeObjectURL(url) | |
resolve(img) | |
} | |
img.src = url | |
}) |
Send a blank test message with a subject to an email address:
mail -s "Subject" [email protected] < /dev/null
(you can substitute /dev/null with a file, or pipe, to populate the body. It must end with a period on a line by itself.)
Send a blank email with an attachment:
mail -a somefile -s "Subject" [email protected] < /dev/null
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |