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
<?php | |
namespace Vendor\MyLoginBundle\Services; | |
use Symfony\Component\HttpFoundation\RequestStack, | |
Symfony\Component\HttpFoundation\Response, | |
Symfony\Component\HttpFoundation\Cookie; | |
class LoginService | |
{ |
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 | |
# Creates swap file | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=1 && | |
sudo chmod 600 /swapfile && | |
sudo mkswap /swapfile && | |
sudo swapon /swapfile; | |
# Remove swap file | |
sudo swapoff /swapfile && |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ | |
"arn:aws:s3:::my-bucket" |
NewerOlder