Skip to content

Instantly share code, notes, and snippets.

View OmarMcAdam's full-sized avatar

Omar McAdam OmarMcAdam

View GitHub Profile
@OmarMcAdam
OmarMcAdam / un-cla-agreement.md
Created March 27, 2024 13:36
CLA agreement for Unproprietary Corporation

Unproprietary Corporation Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Unproprietary Corporation, including any and all code repositories under the "un" github organization located at https://github.com/un

This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Unproprietary Corporation in respect of any of the Projects (collectively “Contributions”).

If you have any questions respecting this Agreement, please contact [email protected]

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to

@OmarMcAdam
OmarMcAdam / telegram-mtproxy.md
Created March 23, 2024 23:14 — forked from rameerez/telegram-mtproxy.md
Up-to-date tutorial on how to set a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail

How to set up a Telegram Proxy

This uses the native built-in proxy feature in the Telegram app.

The problem is the README in the official TelegramMessenger/MTProxy repo is outdated and fails at multiple points if you try following the steps described. Here's an updated version as of March 2024.

Instructions

  1. Launch a clean Ubuntu 22.04 instance. I'm using AWS Lightsail. ssh into the machine:
@OmarMcAdam
OmarMcAdam / docker-compose.yml
Created December 19, 2023 21:00
planetscale in local mode: http proxy > mysql - must use url key in planetscale serverless driver + append port 3900
version: "3.8"
services:
ps-mysql:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: planetscale
MYSQL_ROOT_HOST: "%"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
command:
@OmarMcAdam
OmarMcAdam / un-ui-Button.vue
Created July 28, 2023 11:00
Button component for UnInbox
<template>
<button
class="rounded flex items-center justify-center"
:class="[buttonClasses({ ...props })]"
:disabled="props.disabled || props.loading">
<div
v-if="props.icon"
:class="iconClasses({ container: props.size })">
<Icon
:name="props.loading ? 'svg-spinners:3-dots-fade' : props.icon"