Skip to content

Instantly share code, notes, and snippets.

@xenon92
xenon92 / privacy_policy.md
Last active January 13, 2024 18:01
Dreaming Battery

No personally identifiable data is needed by the application and no such data is collected.

@xenon92
xenon92 / delete_all_records.js
Created April 2, 2020 09:32
DynamoDB - Delete all records from a table
const AWS = require("aws-sdk"); //AWS SDK
//AWS configuraton
AWS.config.update({
region: 'us-east-2'
});
//DynamoDb client
let docClient = new AWS.DynamoDB.DocumentClient();
/**************************************************************/
@xenon92
xenon92 / index.js
Created July 6, 2019 20:30
Simple Moment Validations (Nodejs)
"use strict"
const moment = require('moment')
class MomentValidations {
constructor(dateTimeString) {
this.dateTimeString = dateTimeString
}
isUtc() {
@xenon92
xenon92 / README.md
Last active August 29, 2015 14:12
Patches to Resurrection Remix Lollipop source code for MSIM devices

Resurrection Remix ROM

Patches (android Lollipop)

####Fixes for Multi-SIM devices

  • The path of the patch is mentioned in the file name of the patch
  • Patches can be merged using "git am filename.patch"
@xenon92
xenon92 / guidelines.md
Last active July 7, 2017 10:48
Guidelines for Android Source Compilation

Guidelines for Android Source Compilation

In this post, I'll share what "should" be done and what "shouldn't" be done and the reason of this post.

If you want your ROM to succeed, you need to think about 2 types of people.

@xenon92
xenon92 / frameworks_base.patch
Last active August 29, 2015 14:04
Patch: Android: Haptic vibration for softkeys for i9082
From aeed12accf9a8fa582343c35e846434401fc0a7b Mon Sep 17 00:00:00 2001
From: Shubhang Rathore <shubhang92@gmail.com>
Date: Thu, 24 Jul 2014 18:18:29 +0530
Subject: [PATCH] i9082: Add haptic feedback to back and menu softkeys
The default behavior of softkeys on stock ROM is to provide haptic
vibration on touch. This patch restores that behavior.
Change-Id: I3fc7c1e42da8688b54653413dca00fda9b59c171
@xenon92
xenon92 / packages_providers_MediaProvider.patch
Last active August 29, 2015 14:04
Patch: Android: Increase thumbnail size. Use higher quality images.
From 9e868ac70deb646120514132a5b00e7bb2d7ed2f Mon Sep 17 00:00:00 2001
From: Shubhang Rathore <shubhang92@gmail.com>
Date: Thu, 24 Jul 2014 19:54:10 +0530
Subject: [PATCH] Increase thumbnail size. Use higher quality images.
Samsung Galaxy Grand i9082 gets recognized as "normal" screen size.
But 5" screen size is quite big. Using 500dip is the same as
declared for "xlarge" screen size. There is no dimension declared
for "large" screen size.
@xenon92
xenon92 / README.md
Last active July 7, 2017 10:48
Patches to Paranoid Android for Samsung Galaxy Grand Duos GT-i9082

Paranoid Android

Patches (android Kitkat)

####Samsung Galaxy Grand Duos GT-i9082

  • The path of the patch is mentioned in the file name of the patch
  • Patch to "vendor/pa" is redundant now as this commit as been merged in the Paranoid Android Legacy repository upstream
@xenon92
xenon92 / device_maintainers_instructions.md
Last active October 4, 2016 01:46
Instructions to device maintainers

Resurrection Remix ROM

Instructions to Device Maintainers

If you want your device and name to be added in the list of devices on our website, as well as in the device maintainers list (Resurrections Tools > About Resurrection Remix > Maintainers), follow these instructions.

@xenon92
xenon92 / README.md
Last active August 29, 2015 13:59
Patches for Carbon ROM Kitkat for i9082

Carbon ROM

Patches (android Kitkat)

####Samsung Galaxy Grand Duos GT-i9082

  • The path of the patch is mentioned in the file name of the patch
  • Patches can be merged using "git am filename.patch"