Skip to content

Instantly share code, notes, and snippets.


Hemanth B hemanth22

  • Societe Generale Global Solution Centre.
  • Banglore
Block or report user

Report or block hemanth22

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
View accessOracleDatabase.groovy
import groovy.sql.Sql
// Oracle DB Settings
def dbSchema = ‘schema’
def dbServer = ‘oracleserver’
def dbUser = ‘user’
def dbPassword = 'password'
def dbDriver = 'oracle.jdbc.driver.OracleDriver'
def dbUrl = 'jdbc:oracle:thin:@' + dbServer + ':' + dbSchema
sql = Sql.newInstance( dbUrl, dbUser, dbPassword, dbDriver )
hemanth22 / Reset jenkins password.txt
Last active Jun 15, 2019 — forked from gmhawash/gist:4043232
Reset jenkins password
View Reset jenkins password.txt
0. SSH to server
1. Edit /opt/bitnami/apps/jenkins/jenkins_home/config.xml
2. set userSecurity to false: <userSecurity>false</userSecurity>
3. delete
<authorizationStrategy> and <securityRealm>
4. /etc/init.d/bitnami restart
View PY0101EN-5-1-Numpy1D.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
gpg --version # Check GPG installation
git --version # Check Git installation
git-secret --version # Check git-secret installation
gpg --list-keys # Make sure that your GPG key is listed here
git init # Initialize the repository if you have not done it already
git secret init # Initialize the repository using git-secret
git secret tell # Add a user
hemanth22 /
Created May 21, 2019 — forked from jeremyfelt/
Comparing open source search solutions
hemanth22 /
Created May 21, 2019 — forked from saytosiddiq/
Simple Java program to perform CRUD operations in Elastic Search using RestHighLevelClient. (Elastic search basic operations)
package es;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.ParseException;
hemanth22 /
Created May 20, 2019 — forked from joseluisq/
How to enable the MySQL/MariaDB general query log

How to enable the MySQL/MariaDB general query log

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';
hemanth22 /
Created Mar 10, 2019
How to configure history in centos

First execute below command.

[bhemanth@localhost ~]$ set | grep HIST

Commnd Output.

hemanth22 /
Created Feb 16, 2019 — forked from macghriogair/
[Elasticsearch stats] #elasticsearch #cat
curl localhost:9200/_stats | python -m json.tool
# specific indices only
curl localhost:9200/index1,index2/_stats | python -m json.tool
# CAT all indices pretty format
curl 'localhost:9200/_cat/indices?format=json&pretty'
You can’t perform that action at this time.