Skip to content

Instantly share code, notes, and snippets.

. arjunkori

Block or report user

Report or block arjunkori

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 IMPORT CSV FILES DIRECTLY TO MYSQL
mysqlimport --ignore-lines=1 \--fields-terminated-by=, --local \--host 127.0.0.1 -u root -p password TableName.csv
View node js this method
PaymentUtil() {
this.indusIndFormatter = this.indusIndFormatter.bind(this);
this.space_gen = this.space_gen.bind(this);
this.hdfcFormatter = this.hdfcFormatter.bind(this);
this.hdfcFormatter_Part2 = this.hdfcFormatter_Part2.bind(this);
View nvm commands
nvm install v10.13.0
nvm current
nvm run 6.10.3 app.js
nvm install v6.16.0
nvm use v6.16.0
pm2 show app_name
View MYSQL RESET AUTO INCREMENT TO 1
/*
* MYSQL RESET AUTO INCREMENT TO 1
*/
SET @num := 0;
UPDATE your_table SET id = @num := (@num+1);
ALTER TABLE your_table AUTO_INCREMENT =1;
/*
* remove duplicate
@arjunkori
arjunkori / OpenSSH KEY Authentication Account Enumeration
Last active Nov 18, 2018
How to secue OpenSSH --OpenSSH S/KEY Authentication Account Enumeration
View OpenSSH KEY Authentication Account Enumeration
sudo vi /etc/ssh/sshd_config
ChallengeResponseAuthentication yes
AllowTcpForwarding no
Then
quite vim
:wq
@arjunkori
arjunkori / Boottrap Validator
Created Nov 13, 2018
1.bootstrap password strengh validator
View Boottrap Validator
$('#change-password').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
'new-password': {
validators: {
identical: {
@arjunkori
arjunkori / CORSFilter.java
Created Jan 12, 2018 — forked from zeroows/CORSFilter.java
To enable CORS support in Spring MVC 4 - Access-Control-Allow-Origin
View CORSFilter.java
package com.elm.mb.rest.filters;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
@arjunkori
arjunkori / datatable_with_customised_button.html
Created Oct 3, 2017
datatable html5 upload codde with button customized at the bottom of datatable
View datatable_with_customised_button.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css" />
<!-- <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.10.16/b-1.4.2/b-colvis-1.4.2/b-flash-1.4.2/b-html5-1.4.2/b-print-1.4.2/datatables.min.css" /> -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script> -->
View Datatable With Multiple Search
View Youtube_Ad_Response_Slot_Specific
http://35.154.129.90:8080/user/ads?imei=9114572222810&slot=slot1,slot2
RESPONSE:
[
{
"_id": "58bd3bb53461131097598635",
"created_at": "2017-03-06T10:36:37.926Z",
"updated_at": "2017-03-06T10:36:37.926Z",
"expiry_time": 1488882997,
You can’t perform that action at this time.