top-10-scripting-languages-in-devops

Top 10 Scripting Languages in DevOps – 2021

Software engineers and IT professionals often get confused when it comes to learn which programming or scripting language is good for their career as a DevOps engineer? This has led…

Read more »

Lets Understand the Ruby programming world in 5 mins!!!

Lets Understand the Ruby programming world in 5 mins? Ruby Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro…

Read more »

A simple Ruby method to send email

scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email [code language=”css”] require ‘net/smtp’ def send_email(to,opts={}) opts[:server] ||= ‘localhost’ opts[:from] ||= ’email@example.com’…

Read more »

Add each array element to the lines of a file in ruby

scmuser created the topic: Add each array element to the lines of a file in ruby Add each array element to the lines of a file in ruby Either use…

Read more »

What is the way to iterate through an array in Ruby?

scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This will iterate through…

Read more »

Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed

scmuser created the topic: Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Create a Ruby Array [code language=”css”]…

Read more »

Common ways to read a file in Ruby?

scmuser created the topic: Common ways to read a file in Ruby? [code language=”css”] File.open(“my/file/path”, “r”) do |f| f.each_line do |line| puts line end end # File is closed automatically…

Read more »

How to process every line in a text file with Ruby

scmuser created the topic: How to process every line in a text file with Ruby Example 1 [code language=”css”] # ruby sample code. # process every line in a text…

Read more »

Any Possible Software/Plugin FoR SCM Workflow

pankaj2252369@gmail.com created the topic: Any possible Software/plugin for SCM workflow? Hey Team, Thanks for lot of information on the site. wonderful work. Any idea on SCM workflow software/framework ? which…

Read more »
a-script-to-find-all-users-who-have-not-set-passwords

A script to find all users who have not set passwords

Write a script to find all users who have not set passwords. #!/usr/bin/ruby require “P4” p4 = P4.new p4.parse_forms p4.connect p4.run_users.each do |u| user = p4.fetch_user( u[ “User” ] )…

Read more »