Skip to main content

Copying a directory from a S3 bucket A in account X to a S3 bucket B in account Y on AWS


I had some issues copying data from bucket A to bucket B. Both of the buckets were in different AWS accounts. Copying of data was going fine, but on the target side, I never had the permissions to read the copied data.

I forgot to include the --acl property in my copy command

--acl (string) Sets the ACL for the object when the command is performed. If you use this parameter you must have the "s3:PutObjectAcl" permission included in the 
list of actions for your IAM policy. Only accepts values of private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-
owner-full-control and log-delivery-write. See Canned ACL for details

So the command I've executed:

$ aws s3 cp --recursive --acl authenticated-read s3://#BUCKET_A#/#PATH_TO_DIR# s3://#BUCKET_B/#PATH_TO_DIR#

Adding GIT branch in PS1 on terminal

Posted in


I've updated my PS1 variable to the content below. By doing this change, I'm printing the GIT branch I'm currently working on. As I am working on different projects, it helps me indicating if I'm working on the correct branch for a specific project or not:

Original value:

${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

New value:
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]\[\033[01;33m\]$(__git_ps1)\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

So the part I've added (first block indicates the yellow color, second block executes the __git_ps1 command)

\[\033[01;33m\]$(__git_ps1)

Using deployed packages instead of development projects in Eclipse

Posted in


Even though the Maven Eclipse plugin is retired, I still like using this plugin. There's sometimes one issue with the connection of projects in your Eclipse workspace.

By default, the Eclipse Plugin will create sub-projects for dependencies that exists in the reactor. If you don't want to work with the development code and prefer to use the deployed packages, you can still do so by disabling the project references like so:

mvn eclipse:eclipse -Declipse.useProjectReferences=false

Source: Prevent Project References

Changing keyboard layout from QWERTY to AZERTY at login screen on Windows 7

Posted in


I had the problem on a Windows 7 VM installation the keyboard layout was always set to QWERTY at the login screen. Once logged in, everything was AZERTY. So keyboard settings were configured correctly.

I solved the issue by updating the following registry entry:

HKEY_USERS\.DEFAULT\Keyboard Layout\Preload

Change the value to 00000813 (it was set to 00000419 in my case)

Temporary files in C:\ after installing Visual C++ 2008 Redistributable Package

Posted in


After installing the Visual C++ 2008 Redistributable Package, I've noticed a lot of files in the root of my C:\ partition. I noticed these temporary files are erroneously generated by the installer into the root directory of one of your drives, instead of the temp directory. These files are unnecessary and can be safely deleted from the system. The functioning of the runtime library will not be affected by this. Its a known bug and is fixed in VS2008 SP1.

The following files can be removed:

install.exe 
install.res.1028.dll 
install.res.1031.dll 
install.res.1033.dll 
install.res.1036.dll 
install.res.1040.dll 
install.res.1041.dll 
install.res.1042.dll 
install.res.2052.dll 
install.res.3082.dll 
vcredist.bmp 
globdata.ini 
install.ini 
eula.1028.txt 
eula.1031.txt 
eula.1033.txt 
eula.1036.txt 
eula.1040.txt 
eula.1041.txt 
eula.1042.txt 
eula.2052.txt 
eula.3082.txt 
VC_RED.MSI
VC_RED.cab 

Source: https://support.microsoft.com/en-us/kb/950683

Syndicate content