Skip to content

Instantly share code, notes, and snippets.

jso1919

Block or report user

Report or block jso1919

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jso1919
jso1919 / setup-net-centos-min-install.txt
Created Apr 9, 2019
How to setup network after CentOS 7 minimal installation
View setup-net-centos-min-install.txt
After installing RHEL/CentOS 7 minimal, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default.
This guide explain you to setup network on RHEL/CentOS 7.
Setup network on CentOS 7 minimal
First, type “nmcli d” command in your terminal for quick list ethernet card installed on your machine:
"nmcli d" command output
“nmcli d” command output
Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options).
@jso1919
jso1919 / original-httpd-vhosts.conf
Created Apr 9, 2019
original-httpd-vhosts.conf
View original-httpd-vhosts.conf
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
View WetController
class UsersController < ApplicationController
before_action :set_user, only: [:show, :edit, :update, :destroy]
after_action :notify_channel, only: [:destroy, :update, :create]
def index
@users = User.all
end
def show
end
@jso1919
jso1919 / Guess_Number_game.rb
Last active Aug 19, 2017
Guess a Number between 1-100 game
View Guess_Number_game.rb
# clears the screen
system "clear"
#welcomes user to game
puts "Welcome to my game"
puts "what is your name?"
#getting uses name
name = gets.chomp
View gist:8a3f2c3f820381d9d9df1bd83ddc6f05
# clears screen
system "clear"
#defines method to add and center the ****
def add_asterisks_withtext(text)
puts ("*"*100).center(110)
sleep 1
puts text.center(110)
sleep 1
puts ("*"*100).center(110)
You can’t perform that action at this time.