Skip to content

Instantly share code, notes, and snippets.

Mohamed El-Shahawi ExtremeGTX

Block or report user

Report or block ExtremeGTX

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ExtremeGTX /
Created Mar 22, 2019
Python process communication
def ReadSVNLog(BaseRev,rev,variant):
FoundRev = ""
p = subprocess.Popen("svn log --stop-on-copy -r HEAD:{} --search r{} https://mysvn/{}".format(BaseRev,rev,variant) , stdout=subprocess.PIPE, shell=True)
for stdout_line in p.stdout: #Loop on lines printed to stdout
tmp = re.findall(r'r\d+\s|',str(stdout_line.decode('utf-8')))[0] #This is to match rXXXXX in commit msg header
if len(tmp) > 1: #at least rXXXXX
FoundRev = tmp.replace('r','').rstrip()
print("Debug {}".format(FoundRev))
if rev in str(stdout_line):
ExtremeGTX /
Last active Feb 27, 2019
Some tips about interacting with Jira APIs (Python)

List all available fields and their info like id, description, etc.


Make a transition with mandatory field:

jira.transition_issue(issue, '81',fields={'customfield_XXXXX': "SomeStringValue"}) #Move to State 81 with mandatory field customfield_XXXXX

update multiple fields

ExtremeGTX / Bootstrap4ThreeRowsPage.html
Created Jan 28, 2019
Bootstrap 4 Three Rows Page contains Tabulator, Responsive and Fit browser Window
View Bootstrap4ThreeRowsPage.html
<!doctype html>
<html lang="en">
height: 100%;
background: red;
ExtremeGTX /
Last active Jan 25, 2019
Some tips about Proxy in Development Environment

Setting System Wide Proxy for python pip and nodejs npm:

set HTTP_PROXY=http://username:pAssw0rd@
set HTTPS_PROXY=https://username:pAssw0rd@

Proxy credentials can be provided in the url as the following:

format: http://username:password@proxy_address:port
example: http://username:pAssw0rd@

ExtremeGTX / ProcessExtensions.cs
Created Jul 26, 2018 — forked from heri16/ProcessExtensions.cs
Powershell / C# class to start a GUI Windows Process on the desktop/session of any logged-in RDP/TS user.
View ProcessExtensions.cs
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
using System.IO;
namespace heri16
/// <summary>
/// Static class to help Start a GUI/Console Windows Process as any user that is logged-in to an Interactive Terminal-Session (e.g. RDP).
View Angular5 and Firestore Resources
Angular Firebase (channel):
Quick Start:
OAuth (Google, fb, etc.) Sign-in:
Python SDK (maybe used on RPi)
View RPi_3 IVI
Getting PELUX+QtAuto on the Raspberry Pi 3
Open source Linux automotive stack runs on Raspberry Pi and new Intel ARP
#Android AUTO
ExtremeGTX / Windows7 USB installer.cmd
Created Dec 27, 2017
Windows batch script for making a bootable USB Disk
View Windows7 USB installer.cmd
@echo off
TITLE "Windows 7 USB installer by MOHAMED EL-SHAHAWI"
set _DVD=H:
echo. Windows 7 USB installer
ExtremeGTX / cmd_colorz.ps1
Created Nov 19, 2017
PS: colorize command output
View cmd_colorz.ps1
.\CompilerSim.exe | foreach-object -process {
switch ($_){
{ $_.tolower().contains("warning")} {Write-Host $_ -foregroundColor Yellow}
{ $_.tolower().contains("error")} {Write-Host $_ -foregroundColor Red}
default {Write-Host $_ -foregroundColor White}
ExtremeGTX / MyGIT_Ref
Last active Oct 28, 2017
My Git Reference
View MyGIT_Ref
Add Submodule to repo:
git add submodule http://---- source/
Add All Changes
git add .
Add Some files only
git add <filename> <filename2>
Open VIM for commit message before commit:
You can’t perform that action at this time.