Skip to content

Instantly share code, notes, and snippets.

View amannirala13's full-sized avatar
πŸ˜ͺ
Procrastinating

Aman Nirala amannirala13

πŸ˜ͺ
Procrastinating
View GitHub Profile
@amannirala13
amannirala13 / ID3v1.java
Last active December 30, 2022 08:43
ID3v1 details reader application in JAVA
/* ID3v1 extracting application :)
Developer Aman Nirala
*/
/*It reads all the files in the directory and finds the mp3 files and print the details of the mp3 file only using ID3v1 tag.
If your ID3 data is not shown this means that either the ID3 tag is missing or if present is not ID3v1 */
import java.io.*;
import java.util.*;
@amannirala13
amannirala13 / print-receipt.java
Last active October 23, 2019 18:55
Bill Receipt Printer
/*
*Bill Receipt Printer Application
* v 1.0
* Developed by Aman Nirala
* Email - amansofttechinfo@gmail.com
* Website - http://www.amansofttechinfo.weebly.com
* COmpany - AmanSoft Developers
*/
import java.awt.*;
@amannirala13
amannirala13 / pixi_template.js
Last active May 26, 2020 11:01
A template will few pre-written code and functions to start a PIXI.JS project.
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//::::::::::::::::: GLOABAL VARIABLES ::::::::::::::::::::::::::::
//--------------------------------------------------------------------
var app;
var renderer;
var screen;
var stage;
var loader = new PIXI.Loader();
var resources = loader.resources;
@amannirala13
amannirala13 / Sha256.kt
Created July 12, 2020 19:07 — forked from lovubuntu/Sha256.kt
function to generate Sha-256 in Kotlin
Class Hasher {
fun hash(): String {
val bytes = this.toString().toByteArray()
val md = MessageDigest.getInstance("SHA-256")
val digest = md.digest(bytes)
return digest.fold("", { str, it -> str + "%02x".format(it) })
}
}
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@amannirala13
amannirala13 / anonid.sh
Created August 5, 2020 17:15
Kali Commands and Scripts
case "$1" in
"start")
sudo echo "Starting"
sudo macchanger $2 --random
sudo anonsurf start
sudo anonsurf myip
sudo anonsurf status;;
"stop")
sudo echo "Stopping"
sudo macchanger $2 -p
@amannirala13
amannirala13 / MediaSourceBuilder.kt
Created September 4, 2020 10:53 — forked from navi25/MediaSourceBuilder.kt
Media Source Builder for ExoPlayer Android
package io.navendra.player
class MediaSourceBuilder {
//Build various MediaSource depending upon the type of Media for a given video/audio uri
fun build(uri: Uri): MediaSource {
val userAgent = PlayerConstants.USER_AGENT
val lastPath = uri.lastPathSegment?:""
val defaultHttpDataSourceFactory = DefaultHttpDataSourceFactory(userAgent)
/*
* 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 com.amannirala13.moviebooking.helpers.database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
//implementation 'com.itextpdf:itextg:5.5.10'
package com.amannirala13.printtest
import android.os.Bundle
import android.os.Environment
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.itextpdf.text.Document
import com.itextpdf.text.PageSize
@amannirala13
amannirala13 / Code.md
Created May 20, 2021 17:56 — forked from colinyip/Code.md
Example to wake up and show screen when android phone is locked

In AndroidManifest

<uses-permission android:name="android.permission.WAKE_LOCK" />

Create an new activity to show up in lock screen.

package com.example.colinyip.myapplication;

import android.support.v7.app.AppCompatActivity;