Skip to content

Instantly share code, notes, and snippets.

View bannarisoftwares's full-sized avatar
🏠
Working from home

bannarisoftwares

🏠
Working from home
View GitHub Profile
@gregveres
gregveres / back-color.ts
Created May 3, 2022 23:26
background-color for tiptap 2
import { Extension } from "@tiptap/core";
import "@tiptap/extension-text-style";
export type ColorOptions = {
types: string[];
};
declare module "@tiptap/core" {
interface Commands<ReturnType> {
backColor: {
@catsoup1337
catsoup1337 / telethon_chat_management.py
Created February 16, 2022 21:20
telegram add or remove user from group
import os
import pandas as pd
import telethon as T
from telethon.sync import TelegramClient
from telethon.tl.types import PeerUser, PeerChat, PeerChannel
from telethon.tl.functions.channels import InviteToChannelRequest
api_id = 324567127
api_hash = 'xxxxxxxxxxxxxxxxx'
phone = '+8801817xxxxx'
@bannarisoftwares
bannarisoftwares / main.py
Created January 5, 2022 04:01
Python handling thread without using concurrents
import threading
import time
import uuid
active_threads_ids = []
no_of_threads = 4
progress_task = [5, 3, 2, 1, 4, 1, 5, 5, 16, 8, 4, 8, 3]
progress_task_index = 0
AWSTemplateFormatVersion: '2010-09-09'
Description: Deploy a service into an ECS cluster with service discovery endpoint
Parameters:
EnvironmentName:
Type: String
Default: production
Description: The name of the environment to add this service to
ServiceName:
Type: String
Default: nginx
@milesjordan
milesjordan / vpc.yaml
Last active April 4, 2024 02:37
Cloudformation template for a VPC with ipv6, with public and private subnets, calculating the subnet ipv6 CIDR blocks on the fly.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Public VPC and subnets
Resources:
#
# Public VPC
#
PublicVpc: