Skip to content

Instantly share code, notes, and snippets.

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

Lakmal l4km47

🏠
Working from home
View GitHub Profile
@l4km47
l4km47 / AES-Encryptions.cs
Last active November 29, 2019 05:04
AES-Encryptions
using System;
using System.Text;
using System.Security.Cryptography;
using System.Net;
using System.IO;
namespace CRYPTO
{
public class CRYPT
{
@ammar0466
ammar0466 / gist:058c4c4c975cf946e5b292c02ee67022
Last active July 15, 2024 16:40
Install Windows 10 on digital ocean
How to install windows on digital ocean,
use this tutorial :
https://milankragujevic.com/how-to-install-windows-10-on-digitalocean
how to create own image :
Reans Web - Creating Custom Image on Digital Ocean '(2022 Update)'
Click here to watch on youtube : https://youtu.be/wtHBDEl5DIw
@pigeonhands
pigeonhands / ConsoleProgressBar.cs
Last active April 18, 2023 06:27
Progress bar for c# console applications displayed at the bottom of the terminal.
using System;
using System.IO;
using System.Text;
/// <summary>
/// Console progressbar
/// </summary>
public class ConsoleProgressBar : IDisposable {
public float CurrentProgress => writer.CurrentProgress;
@lopspower
lopspower / README.md
Last active August 20, 2023 09:32
How to Analyze & Manage Memory on Android Like a Boss

Analyze & Manage Memory on Android Like a Boss

This Blog is all about memory management in Android. It provides information about how you can analyze & reduce memory usage while developing an Android app.

Memory management is a complex field of computer science and there are many techniques being developed to make it more efficient. This guide is designed to introduce you to some of the basic memory management issues that programmers face.

Memory Management in Android

Android is a Linux based operating system. It uses native open source C libraries which power Linux machines. All the basic operating system operations like I/O, memory management and so on are handled by the Linux kernel. Like Java and .NET, Android uses its own run time and virtual machine to manage application memory. Unlike either of these frameworks, the Android run time also manages the lifetime processes. Each Android application runs in a separate process within its own Dalvik instance, relinquishing all responsibility for memo

@lopspower
lopspower / README.md
Last active May 18, 2024 12:14
All Android Directory Path

All Android Directory Path

Twitter

1) System directories

⚠️ We can't write to these folers

Method Result
@aniXification
aniXification / NetworkChangeReceiver
Created June 30, 2013 18:12
Check internet connection change via Broadcast Receiver in background. #android
public class NetworkChangeReceiver extends BroadcastReceiver{
private static final String LOG_TAG = "NetworkChangeReceiver";
private boolean isConnected = false;
@Override
public void onReceive(Context context, Intent intent) {
Log.v(LOG_TAG, "Receieved notification about network status");
isNetworkAvailable(context);
}
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
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>