Skip to content

Instantly share code, notes, and snippets.

View alenpaulvarghese's full-sized avatar
💭
Solving Myself Out Of </Confusions>

AlenPaulVarghese alenpaulvarghese

💭
Solving Myself Out Of </Confusions>
  • single-person
  • Kerala
View GitHub Profile
@leimao
leimao / chat_client.py
Created August 30, 2020 19:57
EdgeDB AsyncIO Tutorial ChatBot: https://youtu.be/SyiTd4rLb2s
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:
@tks18
tks18 / drive-mimetypes.json
Last active December 7, 2020 15:33
List of all Google Drive MimeTypes
{
"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"},
# 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
@igemnace
igemnace / rofi-pass
Last active December 20, 2023 21:32
Rofi script to find a password from password-store and copy it to clipboard.
#!/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
@hoyin258
hoyin258 / git_setup.md
Last active July 7, 2022 21:34
VPS Git Server Setup

Create repository

VPS:

su
cd /var/www/
mkdir site
cd /var
mkdir repo &amp;&amp; cd repo