Skip to content

Instantly share code, notes, and snippets.

View aminone's full-sized avatar

Amin Mahmudian aminone

View GitHub Profile
@aminone
aminone / videoDownloader.sh
Last active March 3, 2024 06:55
با این اسکریپت میشه تمام ویدیو‌های یک کانال آپارات یا ویدیوهایی که لینک صفحه آپاراتشون رو تو یه فایل گذاشتید رو با کیفیتی که می‌خواید دانلود کنید. به عنوان اولین آرگومان آدرس کامل کانال یا اسم فایل و به عنوان دومین آرگومان کیفیتی که می‌خواد ویدیو دانلود بشه(۷۲۰، ۳۶۰ و ...) رو پاس بدید.
### Moved to this repository:
### https://github.com/aminone/AparatVideoDownlader
@aminone
aminone / adbUsefulCommands.sh
Last active March 20, 2024 16:43
A collection of Android Debug Bridge (ADB) commands
# To get file
adb pull <PATH/TO/FILE/ON/DEVICE>
# To push file
adb push <PATH/TO/FILE> <PATH/TO/DESTINATION>
# To get wifi MAC address
adb shell cat /sys/class/net/wlan0/address
# To get IP Address
@aminone
aminone / createPdfFiles.sh
Created January 21, 2016 09:30
That is how I convert a bunch of jpg files to pdf
#!/bin/bash
START_TIME=$(date +%s)
echo
echo "Starting..."
echo
for dirName in */
do
( cd $dirName && echo "Generating pdf version of ${dirName%/}" && convert *.jpg ${dirName%/}.pdf )
<ruleset name="Jadi_net">
<target host="www.jadi.net" />
<target host="jadi.net" />
<rule from="^http://(www\.)?jadi\.net/" to="https://jadi.net/"/>
</ruleset>