Skip to content

Instantly share code, notes, and snippets.

View elshahat's full-sized avatar
🎯
Working on my targets!

Ahmed ElShahat elshahat

🎯
Working on my targets!
View GitHub Profile
@elshahat
elshahat / FileInput.tsx
Created October 31, 2020 21:56 — forked from reecelucas/FileInput.tsx
Custom React file select component
import * as React from 'react';
interface Props extends React.HTMLProps<HTMLInputElement> {
onFileSelect: (file: File) => void;
}
const FileInput = ({ onFileSelect, ...props }: Props) => {
const inputRef = React.useRef<HTMLInputElement>();
const onChange = (event: React.ChangeEvent) => {
@elshahat
elshahat / TeamViewer-15-id-changer-for-mac.py
Created March 26, 2023 09:35 — forked from STiXzoOR/TeamViewer-15-id-changer-for-mac.py
Teamviewer 15 ID Changer for macOS (Python 3)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# System: macOS 12+
# Version: TeamViewer v15.x.x
# Python: 3.x.x
# Command: sudo python TeamViewer-15-id-changer.py
#
import os