Wednesday, September 5, 2018

Github Enterprise Admin Manually Add to a Repo or a Organization

If you are an admin or owner of few orgs in github. If you have to add new users to a org, which you are not part of it. You will have to add yourself to that org first before adding other users.

Sometime you need to just add yourself to a repo that you are not currently a member of. Luckily this is fairly easily done via the Github Admin UI.

Adding yourself to an Organization:

Adding yourself to an organization is a bit trickier. You have to do it from the ssh github enterprise console itself.
For this you will need to have access to the Github Management Console in order to add your ssh key to the github appliance.
  1. Start at the rocket again. 
  2. On the left menu enter the “Management Console” 
  3. Enter the super secret management console password 
  4. Add your SSH key to the admin Authorized SSH keys. 
  5. Once completed you should be able to login to the github appliance via the command

    / __(_) |_| || |_  _| |__  | __|_ _| |_ ___ _ _ _ __ _ _(_)___ ___
   | (_ | |  _| __ | || | '_ \ | _|| ' \  _/ -_) '_| '_ \ '_| (_-</ -_)
    \___|_|\__|_||_|\_,_|_.__/ |___|_||_\__\___|_| | .__/_| |_/__/\___|
                                                   |_|
 
Administrative shell access is permitted for troubleshooting and performing
documented operations procedures only. Modifying system and application files,
running programs, or installing unsupported software packages may void your
support contract. Please contact GitHub Enterprise technical support at
enterprise@github.com if you have a question about the activities allowed by
your support contract.




6. Once at the command line, you can then use the following command.



Thursday, June 6, 2013

libstdc++.so.5: cannot open shared object file: No such file or directory

Hello,

I have upgraded apache web server from 1.x version to 2.2.15 for PCI compliance. I had to upgrade bea plug-in also and i did, then apache is not coming up.


-bash-4.1$ sudo /sbin/service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Syntax error on line 223 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_wl_22.so into server: libstdc++.so.5: cannot open shared object file: No such file or directory
                                                           [FAILED]

After googling on this error some time and i found a solution.

SOLUTION: 
My server is 64 bit one and it doesn't have 64 bits version of libstdc++.

Install 64 bit version of libstdc++ using below commnand:

sudo yum install compat-libstdc++-33.x86_64

After successful install locate libstdc++ in /usr/lib64/

-bash-4.1$ ls -l /usr/lib64/libstd*
lrwxrwxrwx  1 root root     18 Jun  6 14:56 /usr/lib64/libstdc++.so.5 -> libstdc++.so.5.0.7
-rwxr-xr-x  1 root root 825480 Jun 28  2010 /usr/lib64/libstdc++.so.5.0.7
lrwxrwxrwx. 1 root root     19 Mar 11 16:22 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.13
-rwxr-xr-x. 1 root root 989840 Oct 18  2012 /usr/lib64/libstdc++.so.6.0.13
-bash-4.1$ 


Now restart apache and comes up fine:

-bash-4.1$ sudo /sbin/service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.200.93 for ServerName
                                                           [  OK  ]
-bash-4.1$ 





Wednesday, April 24, 2013

Copy a Oracle table from one Database to other


Copy a Oracle table from one Database to other


We have two Data bases:  PROD1 DB and PROD2 DB
Table name: Employee
Schema is same in both DBs

We need to sync Employee table from PROD1 DB to PROD2 DB.

1) Create a DB link between PROD1 and PROD2 DBs - assume it is dblink12
2) Create Employee table in PROD2 DB if it doesn't exist
3)  Run below SQL statement in PROD2 DB

TRUNCATE TABLE .EMPLOYEE;
INSERT INTO EMPLOYEE select * FROM EMPLOYEE@dblink12;

and finally don't forget to run commit.

commit;




Sunday, November 22, 2009

How to Enjoy (Utilize Time Properly) Being Single

  1. Say yes to every opportunity to learn, grow and meet new people.
  2. Be grateful for what you have. After the grieving period, focus on what you do have for example, good health and a good support system of family and friends.
  3. Don't be afraid to invest yourself in deep relationships with other people. You don't have to be dating somebody to have a intimate and fulfilling relationship with them. Don't be afraid to open up and be vulnerable sometimes.
  4. Decide for yourself if there are aspects of your life or your personality that you would like to change and do it. You are your best evaluator. You don't need to listen to those people who tell you that you are single because you are too "picky", too fat,or too old to meet someone else.
  5. Ignore the toxic people in your life. It is easy to recognize them. Their negative words of fear and discouragement sap your energy.
  6. Think about all the things you can do because you are now single. You could take off and go travelling without discussing it with somebody else. You can watch TV all day without being called lazy. You don't actually have to do these things but, sometimes, just the knowledge that you could is enough to make you feel great.
  7. Invest in yourself. Save some money and get a professional massage. Get a manicure and pedicure .... anything that nurtures your body and lifts your spirit.
  8. At times small things can tend to pull you way down. Try to see the beer mug half full instead of half empty, in other words try to see the brighter side of things.
THINK AND DREAM CREATIVELY.
1) Believe it can be done.
2) Don't let tradition paralyse your mind.
3) Ask yourself daily, "How can i do better?" There is no limit to self-improvement.
4) Ask yourself, "How can i do more?" Capacity is a state of mind.
5) Practice asking and listening.
6) Stretch your mind. Get stimulated.

YOU ARE WHAT YOU THINK YOU ARE.
1) Look important; it helps you think important.
2) Think your work is important.
3) Give yourself a pep talk several times daily.
4) In all of life's situations, ask yourself , "Is this the way an important person thinks?" Then obey the answer.

MANAGE YOUR ENVIRONMENT: GO FIRST CLASS.
1) Be environment-conscious.
2) Make environement work for you, not against you.
3) Don't let small thinking people hold you back.
4) Get your advice from successful people.
5) Get plenty of psyckological sunshine.
6) Throw thought-poison out of your environment
7) Go first class in everything you do.

Think Like a Leader
1) Trade Minds with the people you want to influence.
2) Apply the "Be-Human" rule in your dealings with other.
3) Think progress, believe in progress, push for progress.
4) Take time out to confer with yourself and tap your supreme thinking power.

Thursday, July 31, 2008

Git Version Control Concepts

Common Commands
# Create a repository in the current directory
git init
# Create a local copy of a git repository
git clone [user@domain:/path]
# View the log
git log
# View log with ASCII graph
git log --stat
# View log with diffs
git log -p
# View branches
git branch
# View all branches
git branch -a
# Create a branch
git branch [branch_name]
# Delete branch
git branch -d [branch_name]
# Force delete a branch
git branch -D [branch_name]
# Create a tracking branch
git branch --track [branch_name] [repo/branch]
# Switch to a branch
git checkout [branch_name]
# Create and switch to a branch
git checkout -b [branch_name]
# Add all content to the index
git add .
# Add specific content to the index
git add [file_name]
# Save changes queued to the index
git commit
# Save all uncommitted changes
git commit -a
# Commit and show diff of changes
git commit -v
# Quick commit message
git commit -m "Message"
# Restart branch with code in another branch
git rebase [branch_name]
# View the difference between branches
git diff [branch1] [branch2]
# Combine code from a branch into the current one
git merge [branch_name]
# Undo last commit or merge
git reset --hard ORIG_HEAD
# Save uncommitted changes
git stash "Description"
# Show stash
git stash list
# Merge the stash with working directory
git stash apply
# Delete stashed code
git stash clear
# Send commit objects to another repository
git push
# Send commits to a specific repo and branch
git push [repository] [branch_name]
# Fetch objects and merge with current branch
# (if tracking)
git pull
# Fetch and merge from a specific repo and branch
git pull [repository] [branch_name]
# Get objects from a repository
git fetch [repository]
# Create a git repository based on a Subversion repo
git-svn clone [url]
# Send git commits back to Subversion
git-svn dcommit
# Get changes from Subversion
git-svn rebase