Skip to content

Instantly share code, notes, and snippets.

View erfanoabdi's full-sized avatar
🖥️
Developing something

Erfan Abdi erfanoabdi

🖥️
Developing something
View GitHub Profile
#/bin/sh
proptxt="$1"
URL="$2"
dirdis="$3"
while read -r line
do
[[ $line = \#* ]] && continue
[ -z "$line" ] && continue
if [[ $line = '-'* ]]
#/bin/sh
proptxt="$1"
dirsrc="$2"
dirdis="$3"
while read -r line
do
[[ $line = \#* ]] && continue
[ -z "$line" ] && continue
#/bin/sh
proptxt="$1"
find="$2"
while read -r line
do
[[ $line = \#* ]] && continue
[ -z "$line" ] && continue
if [[ $line = '-'* ]]
@erfanoabdi
erfanoabdi / griffin.json
Last active March 21, 2017 15:34
Moto Z MultiRom Json
{
"status": "ok",
"date": "2016-12-30",
"commands": "",
"gpg": false,
"devices": [{
"files": [{
"url": "https://qc3.androidfilehost.com/dl/xnpoeOTGwtloxLmGLzWdCg/1490340719/529152257862712557/multirom-20170321-v33b-UNOFFICIAL-griffin.zip",
"version": "33b",
"type": "multirom",
#!/bin/bash
# this script is not written by me. Just using it and sharing it here.
# export DBUS_SESSION_BUS_ADDRESS environment variable useful when the script is set as a cron job
#PID=$(pgrep gnome-session)
#export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
# $bing is needed to form the fully qualified URL for