Skip to content

Instantly share code, notes, and snippets.

View Morteza-Rastgoo's full-sized avatar
🎯
Focusing

Morteza Rastgoo Morteza-Rastgoo

🎯
Focusing
View GitHub Profile
@jnutting
jnutting / quicktalkaboutquicktalks.md
Created June 27, 2022 22:23
A Quick Talk About Quick Talks

Thank you all for coming, and welcome to today's presentation, "a quick talk about quick talks." I got the idea for this talk when I started getting feedback from some Shortcutters who told me that they're interested in doing a lighting talk at the Shortcut summit, but don't know where to begin, or what sort of topic to choose that will be interesting for listeners. Some people simply have little or no public speaking experience and want to change that. Hopefully, today's talk will help fill in some gaps for some of you Today’s talk will be recorded, and at the end of this presentation I will give you a link to the full text of this presentation for future reference.

Let me start off by saying that I'm not some sort of absolute expert when it comes to giving presentations. I'd say that I've given a few dozen different talks, at employers and clients, at local user groups and at conferences. But over the years I've watched hundreds of them. In doing so, I've noticed patterns and taken notes, and today I've

@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active April 18, 2023 06:01
SSH Tunnel as systemd service

${LOCAL_ADDR IP:PORT}

یعنی سرور ایرانتون و پورت داخلی که میخواهید روش ساکس داشته باشید و باید با این جایگزین بشود.

مثال:

10.10.10.10:9090

و قسمت پایین هم یوزر سرور خارجتون و آدرس IP سرور خارجیتونه که باید جایگزین کنید تو خط 7 فایل ssh-tunnel-as-systemd.sh

@nimahkh
nimahkh / addSRT2MKV.sh
Last active October 26, 2023 22:40
add srt subtitle into mkv video with FFMPEG- put all off your mkv and srt files with same names ina folder and run sh command. all of the converted files will be in the added folder inside the current folder.
#!/bin/bash
#author: nima.2004hkh@gmail.com
#ffmpeg command from : https://gist.github.com/kurlov/32cbe841ea9d2b299e15297e54ae8971
NOCOLOR='\033[0m';
RED='\033[0;31m';
GREEN='\033[0;32m';
[ -d added ] || mkdir added
@agentcooper
agentcooper / 0.README.md
Last active April 9, 2024 19:27
Telegram chat backup/export

How to use

  1. Login to https://web.telegram.org
  2. Copy-paste contents of telegram-scripts.js into JS console
  3. Run showContacts() to get the list of contacts with ids
  4. Run saveChat(userId) where userId is the id from step 3

Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.

Motivation

@tushar-nallan
tushar-nallan / LottieCheckBox.java
Last active May 14, 2019 02:00
Implement a checkbox using lottie animations
import android.animation.Animator;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.Checkable;
import com.airbnb.lottie.LottieAnimationView;
public class LottieCheckBox extends LottieAnimationView implements Checkable, Animator.AnimatorListener {
private boolean checked;
private boolean isFirstLoad = true;
private OnCheckedChangeListener listener;