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
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.
View how-to-git-secret.sh
#!/bin/bash
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 email@example.com # Add a user
@hemanth22
hemanth22 / open-source-search-compare.md
Created May 21, 2019 — forked from jeremyfelt/open-source-search-compare.md
Comparing open source search solutions
View open-source-search-compare.md
@hemanth22
hemanth22 / ESBasicOperations.java
Created May 21, 2019 — forked from saytosiddiq/ESBasicOperations.java
Simple Java program to perform CRUD operations in Elastic Search using RestHighLevelClient. (Elastic search basic operations)
View ESBasicOperations.java
package es;
import java.io.IOException;
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
hemanth22 / mysql_query_log.md
Created May 20, 2019 — forked from joseluisq/mysql_query_log.md
How to enable the MySQL/MariaDB general query log
View mysql_query_log.md

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
hemanth22 / HistorySettings.md
Created Mar 10, 2019
How to configure history in centos
View HistorySettings.md

First execute below command.

[bhemanth@localhost ~]$ set | grep HIST

Commnd Output.

HISTCONTROL=ignoredups
HISTFILE=/home/bhemanth/.bash_history
HISTFILESIZE=1000
@hemanth22
hemanth22 / bash.sh
Created Feb 16, 2019 — forked from macghriogair/bash.sh
[Elasticsearch stats] #elasticsearch #cat
View bash.sh
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.