Skip to content

Instantly share code, notes, and snippets.

View KhunHtetzNaing's full-sized avatar

Khun Htetz Naing KhunHtetzNaing

View GitHub Profile
@ajxchapman
ajxchapman / README.md
Last active May 1, 2024 06:32
Install Windows on Digital Ocean droplet
@ammar0466
ammar0466 / gist:058c4c4c975cf946e5b292c02ee67022
Last active January 20, 2024 06:56
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
@moopat
moopat / BatteryOptimizationUtil.java
Last active January 29, 2024 05:18
Many Android manufacturers cause trouble by implementing battery optimizations that cause apps to behave unexpectedly at runtime. This util class allows you to show a dialog to users having such phones and sends them to the settings screen where they can turn of battery optimizations for your app.
/*
* MIT License
*
* Copyright (c) 2018 Markus Deutsch
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@rmkrishna
rmkrishna / AndroidManifest.xml
Last active March 6, 2024 08:01
To get the Recent Apps in Android
// We should have this 2 permissions to get the recent app
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
// we should register our service in manifest file
@angelsl
angelsl / a2a.py
Last active September 10, 2022 11:55
#!/usr/bin/env python2
#
# Copyright 2013 Google, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@vinayprajapati
vinayprajapati / Adsense in Middle of Post: Blogger
Last active October 25, 2022 08:35
Adsense in Middle of Post: Blogger - Advanced Practices (Part 2)
//Copyright 2013 by AJ Banda + Vinay Prajapati
//http://www.techprevue.com/2013/06/adsense-in-middle-of-post-blogger_30.html
//1. Below <head> place this
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" ></script>
//2. Replace <data:post.body/> with the following code
<div id="PostBody">
<data:post.body/>
</div>