Skip to content

Instantly share code, notes, and snippets.

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

Banee Ishaque K Baneeishaque

🏠
Working from home
View GitHub Profile
@Baneeishaque
Baneeishaque / Unix_Timestamp_Conversion.java
Created May 20, 2017 03:12
Unix_Timestamp_Conversion.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package unix_timestamp_conversion;
import java.util.Date;
/**
@Baneeishaque
Baneeishaque / build_automation.bat
Created July 28, 2017 20:19
Build Automation Batch File
@ECHO OFF
SET choice=A
ECHO Automatic Mode>gradle_automation-results.txt
SET /P choice=Interactive execution(press I) or automated exection(default - just press Enter) :
::ECHO %choice%
IF "%choice%"=="I" (ECHO Interactive Mode | tee gradle_automation-results.txt) ELSE ECHO Automatic Mode
::GOTO end
::ECHO %CD%
::GOTO end
SET folder=%CD%
@Baneeishaque
Baneeishaque / compare.asm
Last active April 6, 2022 17:10
Compare 2 Digits Assembly Language
MOV CL,00H
MOV [3000H],CL
MOV AL,[1000H]
MOV BL,[2000H]
CMP AL,BL
JNZ L1
HLT
L1 : MOV CL,01H
MOV [3000H],CL
HLT
@Baneeishaque
Baneeishaque / SMTPClient.java
Last active February 28, 2018 05:41
SMTP Server
import java.io.*;
import java.net.*;
public class SMTPClient
{
private boolean run=true;
public static void main(String[] args)
{
try
{
new SMTPClient().connect();
@Baneeishaque
Baneeishaque / index.html
Last active May 8, 2018 06:39 — forked from pitch-gist/gist:2999707
HTML : Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@Baneeishaque
Baneeishaque / squid.conf
Created December 25, 2018 06:19
Squid Configuration
# WELCOME TO SQUID 3.5.12
# ----------------------------
#
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# http://www.squid-cache.org/Doc/config/
#
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
# http://www.squid-cache.org/
@Baneeishaque
Baneeishaque / create-android-sdk-common-symbolic-links.sh
Created May 26, 2019 05:26
Create symbolic links amoung common directories of windows & linux android SDKs in a dual boot system.
@Baneeishaque
Baneeishaque / empty_mysql_server.bat
Last active April 6, 2022 17:09
Clean MySQL Server
mysql -uroot -p1234 -e "show databases" | grep -v Database | grep -v mysql| grep -v information_schema| grep -v test | grep -v OLD | grep -v performance_schema | grep -v sys | gawk "{print \"drop database \" $1 \";select sleep(0.1);\"}" | mysql -uroot -p1234
@Baneeishaque
Baneeishaque / trackWithGitLfsForGithub.bash
Created May 2, 2021 21:06
Track files greater than 100mb (100 mb is Github file size restriction)
find . -type f -size +100M -exec git lfs track {} \;
@Baneeishaque
Baneeishaque / main.txt
Last active May 8, 2022 06:13
VSCode Public Extensions
1. Open in GitKraken
2. Codemagic CI