Skip to content

Instantly share code, notes, and snippets.

View zhmurko's full-sized avatar
🏆
Hacktoberfest 2020

Dmitry Zhmurko zhmurko

🏆
Hacktoberfest 2020
View GitHub Profile
@zhmurko
zhmurko / listusers.bash
Last active July 7, 2016 11:20
List all normal user and system accounts in the system
#!/bin/bash
# Name: listusers.bash
# Purpose: List all normal user and system accounts in the system. Tested on RHEL / Debian Linux
# Author: Vivek Gite <www.cyberciti.biz>, under GPL v2.0+
# -----------------------------------------------------------------------------------
_l="/etc/login.defs"
_p="/etc/passwd"
## get mini UID limit ##
l=$(grep "^UID_MIN" $_l)
@zhmurko
zhmurko / jenkins-clean-changelog.js
Last active April 26, 2016 06:00
clear Jenkins Changelog
var li = document.querySelectorAll("li");
var pattern = /(environment pin for|jenkins backup of chef-server|jenkins version bump)/;
for (var i=0; i<li.length; i++){
if (li[i].textContent.match(pattern)) {
li[i].remove()
}
}