Skip to content

Instantly share code, notes, and snippets.

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

Anik Chakrabortty anikseu

🏠
Working from home
  • Sourcetop Inc
  • Dhaka, Bangladesh
View GitHub Profile
@anikseu
anikseu / apache-log-parser.py
Created October 24, 2025 12:56
Parse Apache Access Log File to Find Key Insights and Traffic Pattern
#!/usr/bin/env python3
"""
apache_insights.py — Quick, practical insights from Apache/Nginx combined logs.
Features
- Parses (gz or plain) Combined Log Format lines like:
66.249.72.225 - - [24/Oct/2025:00:01:22 +0000] "GET /path HTTP/1.1" 200 123 "-" "UA"
- Summaries:
* Requests/time (minute & hour), spike detection
* Status code distribution & 3xx/4xx/5xx leaders
//Finding Divisor of a number (efficient)
#include "bits/stdc++.h"
using namespace std;
#define MAX 10000000
#define LL long long
bool Mark[MAX+10];
vector<LL>prime;
@anikseu
anikseu / CopyFileFromURL.php
Created April 6, 2018 10:24
Copy a File from remote server to local server just by submitting a URL.
<html>
<title>CopyFileFromURL script</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container" style="margin-top:50px;" >
<div class="row">
<div class="col-sm">
@anikseu
anikseu / SavingAccounts.java
Created March 11, 2018 05:38
Homework for SavingsAccount
public class SavingAccount{
private long accountId;
private String accountName;
private String address;
private double balance;
public SavingAccount(long accountId, String accountName, String address, double balance) {
this.accountId = accountId;
this.accountName = accountName;
/*
* File Chooser Homework
* Text Analyzer Project
* CSE2015 - Programming Language 2 Java (KMH)
* Southeast University
*/
package text.analyzer;
import java.io.File;
import java.io.FileNotFoundException;
@anikseu
anikseu / copy.java
Created March 4, 2018 13:10
File Copy using Java I/O
/*
* CSE 2015 - Programming Language II (KMH)
* Homework - March 5, 2018
*/
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
@anikseu
anikseu / TextToInteger.java
Created March 4, 2018 12:50
CSE2015 Homework March 5, 2018
public class TextToInteger {
public static void main(String[] args) {
String text = "+1234";
int number = convertToInteger(text);
//number++;
System.out.println(number);
}