Skip to content

Instantly share code, notes, and snippets.

Working from home

Bablu Ahmed bablukpik

Working from home
View GitHub Profile
View LogstashConfig for Mysql.conf
input {
jdbc {
clean_run => true
jdbc_driver_library => "/root/jdbc.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/jobschema"
jdbc_user => "root"
jdbc_pass => ""
schedule => "* * * * *"
statement => "select jobid, jobname, executiontime, jobstatus from jobdata where jobid > :sql_last_value"
bablukpik / app.js
Created Oct 16, 2020 — forked from rissem/app.js
html5/node.js video capture and upload
View app.js
/* global require */
const multipart = require('connect-multiparty')
const multipartMiddleware = multipart()
const path = require('path')
const os = require('os')
const fs = require('fs')
var express = require('express')
var app = express()
View Counter using React and Redux
************Source Code**************
// src/actions/incrementAction.js
const incrementAction = {
type: 'increment',
payload: 1
export default incrementAction;
View xpath
// To find closest id using jquery
var id = $("button").closest("div").prop("id");
// To find closest id using javascript
<li id='myLi' onclick="alert(">A</li>
// Menu Text Related
await this.waitFor(`//a[contains(@class, 'selected') and contains(text(), '${tabName}')]`);
await this.waitFor(`//a[contains(@class, 'selected') and text()='${tabName}']`);
bablukpik / index.php
Created Mar 12, 2019 — forked from ajitbohra/index.php
mpdf: HTML/CSS to PDF & send pdf via email
View index.php
mPDF: Generate PDF from HTML/CSS (Complete Code)
require_once( 'mpdf/mpdf.php'); // Include mdpf
$stylesheet = file_get_contents('assets/css/pdf.css'); // Get css content
$html = '<div id="pdf-content">
Your PDF Content goes here (Text/HTML)
View web_editors
//Codeigniter vs Ckeditor vs Ckfinder
bablukpik / gist:68a10f55a6ba87433685d9f1ab17d5de
Last active Nov 15, 2018 — forked from irazasyed/gist:4340722
PHP: Remove directory and its contents
View gist:68a10f55a6ba87433685d9f1ab17d5de
* Remove the directory and its content (all files and subdirectories).
* @param string $dir the directory name
function rmrf($dir) {
foreach (glob($dir) as $file) {
if (is_dir($file)) {
} else {
View Datatable
//Datatable Refresh
// or
$('#example-select').on('change', function(){
//Destroy the old datatable
View Oracle
What is sequence?
To generate sequential integers/numbers in database.
all sequences are maintain in system table called user_sequences;
desc user_sequences;
To check all sequences in the table as follows:
select sequence_name from user_sequences;
View Laravel
++++++++++++Datatable JS+++++++++++
"processing": true, // Show processing
"serverSide": true, // Server side processing
url : '<?= route("dataProcessing")?>',
type : "POST",