You can do
git rm --cached {filename}Your file would remain in your source directory.
git rm --cached {filename}Your file would remain in your source directory.
Authorization = "AWS" + " " + AWSAccessKeyId + ":" + Signature; Signature = Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign ) ) ); StringToSign = HTTP-Verb + "\n" + Content-MD5 + "\n" + Content-Type + "\n" + Date + "\n" + CanonicalizedAmzHeaders + CanonicalizedResource; CanonicalizedResource = [ "/" + Bucket ] ++ [ sub-resource, if present. For example "?acl", "?location", "?logging", or "?torrent"]; CanonicalizedAmzHeaders =
import java.util.Calendar; | |
import java.util.TimeZone; | |
import javax.crypto.Mac; | |
import javax.crypto.spec.*; | |
import org.apache.commons.codec.binary.Hex; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.InvalidKeyException; | |
import java.net.URLEncoder; | |
import org.apache.commons.codec.binary.Base64; | |
import java.io.UnsupportedEncodingException; | |
/* method */ | |
public String getS3Url(String filename) { | |
// get your AWS credentials; remember to have AwsCredentials.properties at your resource load path | |
AWSCredentials credentials = new ClasspathPropertiesFileCredentialsProvider().getCredentials(); | |
String accessKey = credentials.getAWSAccessKeyId(); | |
String secretKey = credentials.getAWSSecretKey(); | |
// set the expiration to one hour later | |
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC")); | |
calendar.add(Calendar.HOUR, 1); | |
long secondsSinceEpoch = calendar.getTimeInMillis() / 1000L; | |
String canonicalizedResource = "/" + BUCKET_NAME + "/" + filename; | |
String stringToSign = "GET" + "\n\n\n" + secondsSinceEpoch + "\n" + canonicalizedResource; | |
String signature = null; | |
try { | |
byte[] keyBytes = secretKey.getBytes(); | |
SecretKeySpec signingKey = new SecretKeySpec(keyBytes, "HmacSHA1"); | |
Mac mac = Mac.getInstance("HmacSHA1"); | |
mac.init(signingKey); | |
byte[] digest = mac.doFinal(stringToSign.getBytes()); | |
byte[] base64bytes = Base64.encodeBase64(digest); | |
String signedString = new String(base64bytes, "UTF-8"); | |
signature = URLEncoder.encode(signedString, "UTF-8"); | |
} catch (NoSuchAlgorithmException nsae) { | |
} catch (InvalidKeyException ike) { | |
} catch (UnsupportedEncodingException uee) { | |
} | |
return "https://s3.amazonaws.com" + canonicalizedResource + "?AWSAccessKeyId=" + accessKey + "&Expires=" + secondsSinceEpoch + "&Signature=" + signature; | |
} |
export CATALINA_OPTS="-Xms512m -Xmx512m"If you are installing from the Ubuntu distribution, put the following inside /etc/init.d/tomcat7. Use echo to make sure you can
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"Restart Tomcat.
root_folder/
-->providers/
-->models/
-->routers/
-->views/
---->partials/
---->mobile/
---->layouts/
->utils/
-->locales/
-->public/
---->images/
---->javascripts/
---->stylesheets/
-->app.js
-->app_mobile.js
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin failedSubsequent logins after the first login failure would sucede.
swiftmailer:If anyone knows why this is happening, please comment below.
transport: %mailer_transport%
encryption: %encryption%
auth_mode: login
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
#spool: { type: memory }
Fatal error: Uncaught exception 'ErrorException' with message 'Warning: proc_open(): fork failed - Cannot allocate memory inAn Amazon EC2 micro.t1 instance only has 613MB RAM. It is not enough to run a lot of processes.
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 34.1356 s, 31.5 MB/s
Setting up swapspace version 1, size = 1048572 KiBsudo /sbin/swapon /var/swap.1
no label, UUID=9cffd7c9-8ec6-4f6c-8eea-79aa3173a59a
openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
Country Name (2 letter code) [AU]:CA
State or Province Name (full name) [Some-State]:Ontario
Locality Name (eg, city) []:Toronto
Organization Name (eg, company) [Internet Widgits Pty Ltd]:ABC Software, Inc.
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:*.domain.com
Email Address []:admin@domain.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
openssl rsa -in domain.key -textPublic Key Certificate (For GoDaddy, skip this)
openssl x509 -inform PEM -in domain.com.crtCertificate Chain (For GoDaddy, skip this)
openssl x509 -inform PEM -in gd_bundle.com.crt
Load Balancer Protocol
|
Load Balancer Port
|
Instance Protocol
|
Instance Port
|
Actions
|
---|---|---|---|---|
HTTP
|
80
|
HTTP
|
80
| |
HTTPS (Secure HTTP)
|
443
|
HTTP
|
80
|