Skip to content

Instantly share code, notes, and snippets.

View nikolareljin's full-sized avatar

Nik Reljin nikolareljin

  • Dow Jones
  • Princeton, NJ
View GitHub Profile
# ------------------------------------------------
# Clone the drives with GUI dialog.
# Uses `dialog` which needs to be installed first..
#
# Use:
# gui_dd <input drive> <output drive>
# ------------------------------------------------
function gui_dd() {
in_d=$1
out_d=$2
@nikolareljin
nikolareljin / kill_apps_on_port.sh
Last active July 31, 2019 21:03
Kill all apps running on certain port
#!/usr/bin/env bash
# -------------------------------------------------
# Kills all apps running on given port
# Use:
# kill_apps_on_port.sh <port>
# -------------------------------------------------
PORT_NUMBER=$1
echo "Kill all applications running on port ${PORT_NUMBER}"
@nikolareljin
nikolareljin / merge_conflict.sh
Created July 5, 2019 15:06
Prepare two branches for Pull Request. Make sure there will be no merge conflicts.
#!/bin/bash
#===========================================
# Use:
# merge_conflict.sh <SRC BRANCH> <DST BRANCH>
# merges changes from SRC branch -> DST branch
#
# Makes sure we will have no merge conflicts so
# we could Open PR for SRC branch.
#
@nikolareljin
nikolareljin / rename_tag.sh
Last active June 19, 2019 21:38
Rename old Tag in the existing repo with new name
#!/bin/bash
#*********************************************
# Rename existing Tag in the remote Repo
#
# Use:
# rename_tag.sh <old_tag> <new_tag>
#*********************************************
pwd=${PWD}
@nikolareljin
nikolareljin / authorizer.php
Created February 10, 2017 20:43
Authorizer patch - fix the installation process; allow Super_admins to access sites
@@ -3,7 +3,7 @@
Plugin Name: Authorizer
Plugin URI: https://github.com/uhm-coe/authorizer
Description: Authorizer limits login attempts, restricts access to specified users, and authenticates against external sources (e.g., Google, LDAP, or CAS).
-Version: 2.6.4
+Version: 2.6.5
Author: Paul Ryan
Author URI: http://www.linkedin.com/in/paulrryan/
Text Domain: authorizer
@@ -232,9 +232,11 @@ if ( ! class_exists( 'WP_Plugin_Authorizer' ) ) {
@nikolareljin
nikolareljin / authorizer.php
Last active February 25, 2021 06:10
Update to Authorizer Wordpress plugin. Solves "Network Super Admin denied access to site" and "All site users (regardless of role) get pending user emails if option not set"
<?php
/*
Plugin Name: Authorizer
Plugin URI: https://github.com/figureone/authorizer
Description: Authorizer limits login attempts, restricts access to specified users, and authenticates against external sources (e.g., Google, LDAP, or CAS).
Version: 2.6.3
Author: Paul Ryan
Author URI: http://www.linkedin.com/in/paulrryan/
Text Domain: authorizer
Domain Path: /languages