Skip to content

Instantly share code, notes, and snippets.

View raminrez's full-sized avatar

Ramin Rezaei raminrez

View GitHub Profile
@raminrez
raminrez / mtp_install.sh
Created May 1, 2024 14:19 — forked from seriyps/mtp_install.sh
Interactive MTProto proxy installer
#!/bin/bash
# Automatic interactive installer for mtproto proxy https://github.com/seriyps/mtproto_proxy
# Supported OS:
# - Ubuntu 18.xx
# - Ubuntu 19.xx
# - Ubuntu 20.xx
# - Ubuntu 21.xx
# - Ubuntu 22.xx
# - Debian 11 bullseye
# - Debian 10 buster
@raminrez
raminrez / find-elem-with-breakout-width.js
Created December 28, 2021 09:20 — forked from joshwcomeau/find-elem-with-breakout-width.js
Paste this in your browser console to search for HTML elements which extend past the window's width and create a horizontal scrollbar.
function findBreakoutElem(rootElem = document.body) {
function checkElemWidth(elem) {
if (elem.clientWidth > window.outerWidth) {
console.log("The following element has a larger width than the window's outer width");
console.log(elem);
console.log('<-------------------------------------------------------------------->');
} else if (elem.scrollWidth > window.outerWidth) {
console.log("The following element has a larger width than the window's scroll width");
console.log(elem);
console.log('<-------------------------------------------------------------------->');
@raminrez
raminrez / cloudSettings
Last active March 9, 2020 08:21
ARANUMA VSCode Settings
{"lastUpload":"2020-03-09T08:21:31.058Z","extensionVersion":"v3.4.3"}
@raminrez
raminrez / cloudSettings
Last active November 21, 2020 11:12
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-21T11:12:49.941Z","extensionVersion":"v3.4.3"}