Skip to content

Instantly share code, notes, and snippets.

View mhabedinpour's full-sized avatar
😀

MohammadHossein Abedinpour mhabedinpour

😀
View GitHub Profile
/* eslint-disable */
const {ESLintUtils} = require('@typescript-eslint/experimental-utils');
const TS = require('typescript');
const TSUtils = require('tsutils');
module.exports = ESLintUtils.RuleCreator.withoutDocs({
meta: {
type: 'problem',
docs: {
description: 'Bans using binary operators on string types'
#!/bin/bash
set -e
# !!!ONLY FOR MACOS!!!
# This script helps you to bypass VPN for specific CIDRs and domain names by adding a direct route to the default gateway for them.
# It also can be used to setup a killswitch. When killswitch is enabled, Only IP traffic to the VPN server (and other bypassed CIDRs) is allowed, All other packets would be dropped.
# Killswitch is powered by MacOS internal packet filter (PF) firewall.
# How to use?
@mhabedinpour
mhabedinpour / ffmpeg_hls_rtmp.sh
Created March 25, 2019 18:35
FFmpeg restream HLS to RTMP
ffmpeg -i [HLS_URL] -c copy -acodec aac -f flv [RTMP_URL]
### Keybase proof
I hereby claim:
* I am abedinpour on github.
* I am mhabedinpour (https://keybase.io/mhabedinpour) on keybase.
* I have a public key ASAkDg6WDjUu6q7x0RMI3oXf7DPCqYauDuuO5ITcdayMkwo
To claim this, I am signing this object: