Skip to content

Instantly share code, notes, and snippets.


ahmadali shafiee ahmadalli

Block or report user

Report or block ahmadalli

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
ahmadalli / youtrack-notify-slack.js
Created Jul 21, 2019 — forked from rushimusmaximus/youtrack-notify-slack.js
YouTrack JavaScript Workflow example: Post to Slack on specific issue state changes
View youtrack-notify-slack.js
var entities = require('v1/entities');
var http = require('v1/http');
exports.rule = entities.Issue.onChange({
title: 'Notify-slack',
action: function(ctx) {
var issue = ctx.issue;
if (issue.becomesReported || issue.becomesResolved || issue.becomesUnresolved) {
ahmadalli / rtl.css
Last active Jun 22, 2019
RTL Jira with UserStyles
View rtl.css
/* import this as mozilla format */
@-moz-document domain("<your jira domain>") {
.ghx-summary, .user-content-block, .action-body {
direction: rtl;
ahmadalli / all.css
Last active Jun 21, 2019
Wordpress Neve Persian Improvement.css
View all.css
@import url('');
@import url('');
h1, h2, h3, h4, h5, h6, .widget .widget-title, .site-description, .site-title, .entry-title, .entry-title a, .comments-title, .nav-menu a, widget-title {
font-family: Shabnam, "Source Sans Pro", Helvetica, sans-serif;
*, .entry-content {
font-family: Vazir;
ahmadalli /
Last active Jul 1, 2019
Deleting all pods that are stuck on terminating state or evicted
kubectl get pods --all-namespaces | grep Evicted | awk {'print $1" " $2'} | while read ln; do kubectl delete pod -n $ln; done
ahmadalli / GL503.ahk
Last active Jun 28, 2018
AutoHotKey scripts used for making my day to day life easier
View GL503.ahk
; Adding CapsLock + Arrow Keys as `Home`, `End`, `Page Up`, and `Page Down` shortcuts.
; It's useful in Asus GL503 Keyboard which you can't use numpad and these keys (except for `Home`) simultaneously
CapsLock & Left::Home
CapsLock & Right::End
CapsLock & Up::PgUp
CapsLock & Down::PgDn
ahmadalli / Profile.ps1
Last active Apr 16, 2018
nuget one-line multi package install
View Profile.ps1
function nugetip ([Parameter(ValueFromRemainingArguments=$true)][string[]]$packages) {
Foreach ($package in $packages) {
install-package $package
ahmadalli / inside-console.js
Last active Mar 5, 2018
scroll to the end of a lazy laded page
View inside-console.js
function scrollToBottom() {
window.scrollTo(0, document.body.scrollHeight);
setInterval(scrollToBottom, 100)

Keybase proof

I hereby claim:

  • I am ahmadalli on github.
  • I am ahmadalli ( on keybase.
  • I have a public key whose fingerprint is 16EE A3FE 6D21 507A 12B1 DAC5 DA22 1805 3832 A5AC

To claim this, I am signing this object:

ahmadalli / load.cs
Last active Jan 27, 2017
Dynamically load Entity Configurations in EF CodeFirst
View load.cs
protected override void OnModelCreating(DbModelBuilder modelBuilder)
var typesToRegister = Assembly.GetAssembly(typeof(Context)).GetTypes()
.Where(type => type.Namespace != null)
.Where(type => type.BaseType.IsGenericType && type.BaseType.GetGenericTypeDefinition() == typeof(EntityTypeConfiguration<>)).ToList();
foreach (var type in typesToRegister)
dynamic configurationInstance = Activator.CreateInstance(type);
ahmadalli / gist:386da39e4c5db3f8999e170d1b50783f
Last active Jul 5, 2018 — forked from JayBazuzi/gist:9e0de544cdfe0c7a4358
How to reformat all C# files in a solution, in Visual Studio
View gist:386da39e4c5db3f8999e170d1b50783f
# How to reformat all C# files in a solution, in Visual Studio 2012.
# Open Tools->Library Package Manager->Package Manager Console, and run the
# command below. At the end, all documents will be open in the IDE. (Low-RAM
# machines will have problems with large solutions.) Changed files will be
# modified in the IDE, and not saved to disk. You can SaveAll, then Close All
# if you're ready.
# VS2012 removed the VB-like macro language that existed in previous version of
# Visual Studio. However, the underlying DTE interface is still there, and you
You can’t perform that action at this time.