Skip to content

Instantly share code, notes, and snippets.

View rajankur's full-sized avatar

Raj Ankur rajankur

View GitHub Profile
@rajankur
rajankur / layout_border_bottom
Created June 22, 2017 07:30 — forked from Antarix/layout_border_bottom
Setting specific border i.e top,bottom,left,right or all for Android layout
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape
android:shape="rectangle">
<!-- Set the border color of your layout here -->
<stroke android:width="1dp" android:color="#3AFB03" />
<solid android:color="#3AFB03" />
</shape>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="20dp" >
<TextView
android:id="@+id/textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@rajankur
rajankur / background.js
Created January 31, 2017 19:39 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@rajankur
rajankur / amazon-ec2-ftp.md
Created August 7, 2016 18:40 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
@rajankur
rajankur / amazon_composer.md
Last active July 3, 2018 16:36 — forked from asugai/Install composer on Amazon AMI running on EC2
Install composer on Amazon AMI running on EC2

Install composer on Amazon AMI running on EC2

$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer

then you can run