Skip to content

Instantly share code, notes, and snippets.

ahmadalli / 49-haproxy.conf
Last active Dec 12, 2020
Json Logging in HAProxy: The Right Way
View 49-haproxy.conf
# Create an additional socket in haproxy's chroot in order to allow logging via
# /dev/log to chroot'ed HAProxy processes
$AddUnixListenSocket /var/lib/haproxy/dev/log
# Send HAProxy messages to a dedicated logfile
:programname, startswith, "haproxy"
:syslogfacility-text, startswith, "local0" {
@@<graylog host>:<syslog input port>;RSYSLOG_SyslogProtocol23Format
ahmadalli /
Last active Mar 25, 2020
Get All Envs on Kubernetes Cluster
# moved to
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 Mar 25, 2020
Deleting all pods that are stuck on terminating state or evicted
# moved to
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 Mar 25, 2020
nuget one-line multi package install
View Profile.ps1
# moved to
ahmadalli / inside-console.js
Last active Mar 25, 2020
scroll to the end of a lazy laded page
View inside-console.js
// moved to

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: