{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::[BUCKET_NAME]/*"
-
Login to your Server Instance
-
Run the Command
crontab -e
-
Select the desired editor to start editing your CRON file.
-
Add your desired paths/function which you want to schedule. For example
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
public function countries() { | |
return $countries = [ | |
["country" => "India", "continent" => "Asia"], | |
["country" => "United Kingdom", "continent" => "Europe"], | |
["country" => "United States", "continent" => "North America"], | |
["country" => "Afghanistan", "continent" => "Asia"], | |
["country" => "Albania", "continent" => "Europe"], | |
["country" => "Algeria", "continent" => "Africa"], | |
["country" => "American Samoa", "continent" => "Oceania"], | |
["country" => "Andorra", "continent" => "Europe"], |
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
String value = Build.DEVICE; | |
try { | |
final Class<?> sp = Class.forName("android.os.SystemProperties"); | |
final Method get = sp.getMethod("get", String.class); | |
value = (String) get.invoke(null, "ro.build.product"); | |
Log.v("UJJ", value); | |
} catch (Exception ignored) { | |
} |
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
<?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> |
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
<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" |
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
// 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' | |
}); | |
}); |
- To setup admin authentication, we need to simply create a middleware and use it in your routes.
- Create a middleware using
artisan
php artisan make:middleware Admin
- This will create a new file called "Admin.php" in
app/Http/middleware
. - Add following code in
handle
method
- Right click newly created volume and attach to your instance.
- Reboot EC2.
sudo file -s /dev/xvdb
(where xvdb is the name of the volume)- if the above command shows data for the device, there is no file system on the device and you need to create one.
- Make filesystem using
sudo mkfs -t ext4 /dev/xvdb
. - Create a mount point directory for the volume using
sudo mkdir mount_point
(sudo mkdir /data
) - Mount the volume at the location:
sudo mount device_name mount_point
i.e.sudo mount /dev/xvdb /data
- To mount this EBS volume on every system reboot, add an entry for the device to /etc/fstab file
NewerOlder