su
cd /var/www/
mkdir site
cd /var
mkdir repo && cd repo
This file contains 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 __future__ import annotations | |
from typing import IO | |
import asyncio | |
import sys | |
import contextlib | |
import aiofiles.threadpool | |
from chat_streams import split_lines, write, handle_writes | |
async def handle_reads(reader: asyncio.StreamReader) -> None: |
This file contains 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
{ | |
"name": "Drive Mime Types", | |
"types": [ | |
{".323": "text/h323"}, | |
{".3g2": "video/3gpp2"}, | |
{".3gp": "video/3gpp"}, | |
{".3gp2": "video/3gpp2"}, | |
{".3gpp": "video/3gpp"}, | |
{".7z": "application/x-7z-compressed"}, | |
{".aa": "audio/audible"}, |
This file contains 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
# Read more about setting it up | |
# https://medium.com/@ljmocic/make-telegram-bot-for-notifying-about-new-rss-feed-items-4cfbcc37f4fd | |
from datetime import timedelta, datetime | |
from dateutil import parser | |
from pprint import pprint | |
from time import sleep | |
import requests | |
import feedparser |
This file contains 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 | |
cd "$HOME/.password-store" || exit 1 | |
pass_name=$(fd --type file --exec echo '{.}' | rofi -dmenu -i -p "pass") | |
[[ -n $pass_name ]] || exit 1 | |
if pass show -c "$pass_name"; then | |
notify-send --urgency=normal "$pass_name" "Password copied to clipboard!" | |
fi |