Skip to content

Instantly share code, notes, and snippets.

@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"
@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 / .travis.yml
Created Nov 22, 2019 — forked from shaypal5/.travis.yml
Comprehensive Python testing on Travis CI
View .travis.yml
language: python
# ===== Linux ======
dist: xenial
python:
- 2.7
- 3.5
- 3.6
- 3.7
matrix:
include:
View git_logs_between_2_commits.md
git log --oneline 7de7970..master

OR

git log --oneline 7de7970..4cb34a9

Above command will give all logs between commit A and commit B including commit A and commit B.

@barseghyanartur
barseghyanartur / .gitignore
Created Oct 24, 2019 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
View install_postgresql9.4_postgis2.1_ubuntu.md

Remove old PostGIS Installation

The first step is to remove older version of PostGIS if any.

sudo apt-get purge postgis

Setup repository

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
@barseghyanartur
barseghyanartur / mk1tv.go
Created Nov 20, 2018 — forked from davit312/mk1tv.go
Սա օգտագործում եմ films-hy.blogspot.com կայքի ֆիլմերը ավելորդ մասերից մաքրելու համար
View mk1tv.go
package main
import (
"fmt"
"os"
"os/exec"
"strconv"
)
func main() {
@barseghyanartur
barseghyanartur / pyaudio-ubuntu-install.md
Created Nov 5, 2018 — forked from diegopacheco/pyaudio-ubuntu-install.md
How to Install pyaudio ubuntu 16.04 LTS?
View pyaudio-ubuntu-install.md
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg libav-tools
sudo pip install pyaudio
@barseghyanartur
barseghyanartur / install.sh
Created Sep 29, 2018 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
View install.sh
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
View git-tag-delete-local-and-remote.sh
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName