Skip to content

Instantly share code, notes, and snippets.

Artur Barseghyan barseghyanartur

Block or report user

Report or block barseghyanartur

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
@barseghyanartur
barseghyanartur / apache-multi-ad-reverse-proxy.conf
Created Mar 16, 2020 — forked from alivesay/apache-multi-ad-reverse-proxy.conf
Apache reverse proxy with LDAP authentication against multiple Active Directory domains
View apache-multi-ad-reverse-proxy.conf
<AuthnProviderAlias ldap auth1>
AuthLDAPURL "ldaps://auth1.example.com:636/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN "ldap_query"
AuthLDAPBindPassword "password"
</AuthnProviderAlias>
<AuthnProviderAlias ldap auth2>
AuthLDAPURL "ldaps://auth2.example.com:636/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN "ldap_query"
AuthLDAPBindPassword "password"
View fix_podman_errors.rst

If you have podman errors like:

ERRO[0000] open /proc/104244/ns/user: no such file or directory

Fix it with:

@barseghyanartur
barseghyanartur / manual_install_insomnia_plugin.md
Last active Mar 2, 2020
Manually install Insomnia plugin
View manual_install_insomnia_plugin.md

Manual installation worked for me. Note, that I have installed Insomnia on Fedora using snap.

  1. Go to your plugins directory:
cd /home/user/snap/insomnia/current/.config/Insomnia/plugins
  1. Install the plugin manually (in this case it's insomnia-plugin-default-headers plugin):
View transliterate_issue_54.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View fix_taskbar_missing_in_fedora.rst
@barseghyanartur
barseghyanartur / hg-to-git-conversion.md
Created Feb 7, 2020 — forked from HerrPi/hg-to-git-conversion.md
Mercurial to Git repo conversion (hg-to-git)
View hg-to-git-conversion.md
@barseghyanartur
barseghyanartur / bitbucket_mercurial_to_git_transition_idea.md
Last active Feb 5, 2020
BitBucket Mercurial to Git transition idea
View bitbucket_mercurial_to_git_transition_idea.md

There is an official python-hglib, there's also an awesome GitPython and there's also fast-export (recommended by GitHub). If one would simply combine the three (and get lots of lots of kudos), that would be simply awesome.

Expected usage (from terminal):

hg-to-git --username={USERNAME} --repository={REPONAME} --suffix={SUFFIX}

So that it would:

  • Use localy RSA keys (if available, which can be the default case)
@barseghyanartur
barseghyanartur / split_vertically_of_pycharm_in_sublime_text.md
Last active Jan 30, 2020
SublimeText: `Split Vertically` analogue of the PyCharm
View split_vertically_of_pycharm_in_sublime_text.md
  • File -> New View into File: will open a second tab for the same file.
  • View -> Layout -> Columns: 2: will open another column group.
  • View -> Move File to Group -> Group 2: will move the second file into the second column group.
View coveralls_checklist.rst

Coveralls.io checklist

Checklist for coveralls.io - what needs to be done to have it working.

.coveralls.yml file

Shall be present in the repository (root). Make sure the file is spelled correctly (.coveralls.yml).

View handy-grep.md

Prints out in which files the match ("Exception") was found:

grep -r -l Exception /var/log/all.log.*

Print 30 lines surrounding match ("Exception):

cat /var/log/all.log.20 | grep -C 30 "Exception"
You can’t perform that action at this time.