Skip to content

Instantly share code, notes, and snippets.

View secretshardul's full-sized avatar

ss secretshardul

View GitHub Profile
A. Restoration of peace and order
1. The Government of Pakistan should undertake to use its best endeavours:
(a) To secure the withdrawal from the State of Jammu and Kashmir of tribesmen and Pakistani nationals not
normally resident therein who have entered the State for the purpose of fighting, and to prevent any intrusion
into the State of such elements and any furnishing of material aid to those fighting in the State;
(b) To make known to all concerned that the measures indicated in this and the following paragraphs provide
full freedom to all subjects of the State, regardless of creed, caste, or party, to express their
views and to vote on the question of the accession of the State, and that therefore they should co-operate
in the maintenance of peace and order.
2. The Government of India should:
(a) When it is established to the satisfaction of the Commission set up in accordance with the Council's
resolution 39 (1948) that the tribesmen are withdrawing and that arrangements for the cessation of the
fighting have become effective, put into operation in consultation with the Commission a plan for withdrawing
their own forces from Jammu and Kashmir and reducing them progressively to the minimum strength required for
the support of the civil power in the maintenance of law and order;
(b) Make known that the withdrawal is taking place in stages and announce the completion of each stage;
(c) When the Indian forces have been reduced to the minimum strength mentioned in (a) above, arrange in
consultation with the Commission for the stationing of the remaining forces to be carried out in accordance
with the following principles:
370. Temporary provisions with respect to the State of Jammu and Kashmir
(1) Notwithstanding anything in this Constitution,
(a) the provisions of Article 238 shall not apply in relation to the State of Jammu and Kashmir;
(b) the power of Parliament to make laws for the said State shall be limited to
(i) those matters in the Union List and the Concurrent List which, in consultation with the Government of the State, are declared by the President to correspond to matters specified in the Instrument of Accession governing the accession of the State to the Dominion of India as the matters with respect to which the Dominion Legislature may make laws for that State; and
(ii) such other matters in the said Lists as, with the concurrence of the Government of the State, the President may by order specify Explanation For the purposes of this article, the Government of the State means the person for the time being recognised by the President as the Maharaja of Jammu and Kashmir acting on the advice of the Council of Mini
PART II
THE STATE
(3) The State of Jammu and Kashmir is and shall be an integral part of the Union of India.
(4) The territory of the State shall comprise all the territories which on the fifteenth day of August, 1947,
were under the sovereignty or suzerainty of the Ruler of the State.
(j) After article 35, the following new article shall be added,
namely:-
"35A. Saving of laws with respect to permanent residents and their
rights.- Notwithstanding anything contained in this Constitution, no
existing law in force in the State of Jammu and Kashmir, and no law
hereafter enacted by the Legislature of the State,-
(a) defining the classes of persons who are, or shall be permanent
residents of the State of Jammu and Kashmir; or
(b) conferring on such permanent residents any special rights and
privileges or imposing upon other persons any restrictions as
NOTIFICATION
New Delhi, the 5th August, 2019
G.S.R .551(E).- the following Order made by the President is published for general information:-
THE CONSTITUTION (APPLICATION TO JAMMU AND KASHMIR) ORDER, 2019
C.O. 272
In exercise of the powers conferred by clause (1) of article 370 of the Constitution, the President, with the concurrence of the Government of State of Jammu and Kashmir, is pleased to make the following Order:-
1. (1) This Order may be called the Constitution (Application to Jammu and Kashmir) Order, 2019.
(2) It shall come into force at once, and shall thereupon supersede the Constitution (Application to Jammu and Kashmir) Order, 1954 as amended from time to time.
2. All the provisions of the Constitution, as amended from time to time, shall apply in relation to the State of
Jammu and Kashmir and the exceptions and modifications subject to which they shall so apply shall be as follows:-
@secretshardul
secretshardul / index.js
Created January 30, 2020 12:57
Generate pre-signed URL for S3 upload on AWS Lambda.
const AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: 'YOUR_KEY_ID', // Generated on step 1
secretAccessKey: 'SECRET', // Generated on step 1
region: 'ap-south-1', // Must be the same as your bucket
signatureVersion: 'v4',
});
const params = {
Bucket: 'YOUR_BUCKET_NAME',
Key: 'FILE_NAME'
#set($allParams = $input.params())
{
"params" : {
#foreach($type in $allParams.keySet())
#set($params = $allParams.get($type))
"$type" : {
#foreach($paramName in $params.keySet())
"$paramName" : "$util.escapeJavaScript($params.get($paramName))"
#if($foreach.hasNext),#end
#end
@secretshardul
secretshardul / index.js
Created January 31, 2020 10:34
NodeJs function to parse x-www-form-urlencoded. This Lambda function is proxied behind an API gateway endpoint.
var qs = require('querystring')
exports.handler = async (event) => {
return {
statusCode: 200,
body: JSON.stringify({
"body": qs.parse(event.body)
})
};
};
@secretshardul
secretshardul / handler.js
Last active February 12, 2020 05:12
Lambda integration to parse x-www-form-urlencoded. The handler returns back the event as it is.
var qs = require('querystring')
exports.handler = async (event) => {
return event
};