Skip to content

Instantly share code, notes, and snippets.

View bablukpik's full-sized avatar
🏠
Working from home

Bablu Ahmed bablukpik

🏠
Working from home
View GitHub Profile
@bablukpik
bablukpik / uninstall_python3.MD
Created January 30, 2024 18:28 — forked from zhensongren/uninstall_python3.MD
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

@bablukpik
bablukpik / uninstall_python3.MD
Created January 30, 2024 18:28 — forked from zhensongren/uninstall_python3.MD
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

@bablukpik
bablukpik / app1.js
Created March 23, 2022 07:55 — forked from prof3ssorSt3v3/app1.js
Express JS Routing examples for YouTube video series on Express
//Starter version of the main app.js file
"use strict";
const express = require("express");
const app = express();
const port = process.env.port || 4444;
app.get("/", (req, res) => {
//handle root
});
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
bablukpik / app.js
Created October 16, 2020 19:50 — forked from rissem/app.js
html5/node.js video capture and upload
/* 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()
@bablukpik
bablukpik / index.php
Created March 12, 2019 05:00 — forked from ajitbohra/index.php
mpdf: HTML/CSS to PDF & send pdf via email
<?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)
</div>';
@bablukpik
bablukpik / gist:68a10f55a6ba87433685d9f1ab17d5de
Last active November 15, 2018 05:55 — forked from irazasyed/gist:4340722
PHP: Remove directory and its contents
/**
* 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)) {
rmrf("$file/*");
rmdir($file);
} else {
@bablukpik
bablukpik / ReactJS
Last active September 12, 2017 11:02 — forked from sakukode/sublimetext.md
ReactJS
//Simple Application
<div id="myReactApp1"></div>
<div id="myReactApp2"></div>
<div id="myReactApp3"></div>
<script type="text/babel">
class Man extends React.Component {
render() {
return <h1>{"Name: "+this.props.name+", Age: "+this.props.age}</h1>
}
@bablukpik
bablukpik / PHPExcel_Basics.md
Created January 23, 2017 07:16 — forked from r-sal/PHPExcel_Basics.md
PHPExcel Notes and code snippets

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet: