- rsync : http://repo.msys2.org/msys/x86_64/rsync-3.2.3-1-x86_64.pkg.tar.zst
- libxxhash : http://repo.msys2.org/msys/x86_64/libxxhash-0.8.0-1-x86_64.pkg.tar.zst
- liblzr : http://repo.msys2.org/msys/x86_64/liblz4-1.9.3-1-x86_64.pkg.tar.zst
- libzstd : http://repo.msys2.org/msys/x86_64/libzstd-1.4.8-1-x86_64.pkg.tar.zst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"name": "NICOBAR", "code": "3101", "stateCode": "31", "blockList": [{"name": "CAMPBELL BAY", "code": "6498"}, {"name": "CAR NICOBAR", "code": "6499"}, {"name": "NANCOWRIE", "code": "6500"}]}, {"name": "NORTH AND MIDDLE ANDAMAN", "code": "3102", "stateCode": "31", "blockList": [{"name": "DIGLIPUR", "code": "7667"}, {"name": "MAYABUNDER", "code": "6495"}, {"name": "RANGAT", "code": "6497"}]}, {"name": "SOUTH ANDAMAN", "code": "3103", "stateCode": "31", "blockList": [{"name": "FERRARGUNJ", "code": "7668"}, {"name": "LITTLE ANDAMAN", "code": "7669"}, {"name": "PROTHRAPUR", "code": "6496"}]}, {"name": "ANANTPUR", "code": "111", "stateCode": "1", "blockList": [{"name": "AGALI", "code": "4686"}, {"name": "AMADAGUR", "code": "4687"}, {"name": "AMARAPURAM", "code": "4688"}, {"name": "ANANTAPUR", "code": "4689"}, {"name": "ATMAKUR", "code": "4690"}, {"name": "BATHALAPALLE", "code": "4691"}, {"name": "BELUGUPPA", "code": "4692"}, {"name": "BOMMANAHAL", "code": "4693"}, {"name": "BRAHMASAMUDRAM", "code": "4694"}, {"nam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* InputFilter for Myanmar Phone Numbers | |
* TODO Update it for all country codes | |
*/ | |
class CountryCodeInputFilter implements InputFilter { | |
@Override | |
public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { | |
//Back Key Press conditions | |
boolean deleteCond0 = dstart == 0 && dend == 1; // + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($paramName = $helper.getParamName($field, $project)) | |
public ## | |
#if($field.modifierStatic) | |
static ## | |
#end | |
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))) | |
#if ($name.length() > 1 && ($StringUtil.startsWith($name, 'm') || $StringUtil.startsWith($name, 's'))) | |
#set($name = $name.substring(1)) | |
#if ($paramName.length() > 1 && ($StringUtil.startsWith($paramName, 'm') || $StringUtil.startsWith($paramName, 's'))) | |
#set($paramName = "i"+$paramName.substring(1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if($field.modifierStatic) | |
static ## | |
#end | |
$field.type ## | |
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))) | |
#if ($name.length() > 1 && ($StringUtil.startsWith($name, 'm') || $StringUtil.startsWith($name, 's'))) | |
#set($name = $name.substring(1)) | |
#end | |
#if ($field.boolean && $field.primitive) | |
#if ($StringUtil.startsWithIgnoreCase($name, 'is')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Prerequisites : | |
# Following script is a collection of utility that I need in my machine. You can personalize it for your own requirement | |
# System must have installed nautilus(for 1st option), dropbox(for 2nd option), python with dropbox sdk setup (for 3rd option as given here https://goo.gl/1d8RC3) | |
# Read input selection from the listview | |
input_opt=$(zenity --list \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3.5 | |
# Prerequisites : | |
# 1.SetUp dropbox sdk to be able to use Dropbox Api's | |
# $ sudo pip install dropbox | |
# By default python dropbox sdk is based upon the python 3.5 | |
# | |
# 2. Create an App on dropbox console (https://www.dropbox.com/developers/apps) which will be used and validated to do | |
# the file upload and restore using dropbox api. Mostly you need an access token to connect to Dropbox before actual file/folder operations. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#PreRequisites : zenity, youtube-dl must be installed | |
#Reads the input url from the window | |
youtube_url=$(zenity --entry --title="Download" --text="Enter youtube url" --width=300) | |
echo "Youtube video url is : $youtube_url" | |
#Following command downloads the video | |
youtube-dl -f 22 -cit $youtube_url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EDITOR=nano sudo visudo | |
# Change the following line: (:i to insert + esc to go back + :w to save + :q to quit) | |
# Defaults env_reset | |
# to: | |
# Defaults env_reset,timestamp_timeout=960 # in minutes | |
export PATH=$PATH:. | |
# export PATH=$PATH:/usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
/** | |
* Utility to import database from assets into the internal storage | |
*/ |
NewerOlder