Skip to content

Instantly share code, notes, and snippets.

View Morxander's full-sized avatar

Morad Edwar Morxander

View GitHub Profile
@Morxander
Morxander / github_stats.py
Last active March 19, 2020 14:56
PRs and Commits stats per repo for specific users
import requests
REPO = "org/repo_name" # Replace it with your repo
TOKEN = "XXXXX" # Replace it with your Github token
START_DATE = "2019-07-01" # Start date YYYY-MM-DD
TEAM = ["user1", "user2"] # A list of users
BASE_URL = "https://api.github.com"
pr_urls = []
pr_counts = 0
commits_count = 0
@Morxander
Morxander / sidekiq.config
Last active August 30, 2017 09:52 — forked from maxdbn/sidekiq.config
Gracefully restarting Sidekiq on Elasticbeanstalk, only after it's done with the running jobs. Tested on: 64bit Amazon Linux 2016.09 v2.3.0 running Ruby 2.3 (Puma). Thanks to ssaunier for the original gist! https://gist.github.com/MaxDBN/b80d6e5fac7f1a05f2727474ff172ea6
# Sidekiq interaction and startup script
commands:
create_post_dir:
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
owner: root
group: root
@Morxander
Morxander / new_server.md
Created December 23, 2015 12:40
Setup A New Server

First of all

vim /etc/bash.bashrc

uncomment the following lines

#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi