Logo

Nothing like 127.0.0.1

AT&T / GAS Syntax SciTE

I have been using SciTE as my main programming text editor and more recently to code in assembly but unfortunately it does not seem to have support for AT&T style syntax and GAS (GNU Assembler) directives only Intel. So I have modified the asm.properties file and updated it to include the following:

  • All GAS directives e.g. .long .ascii
  • 32bit and 64bit registers for AT&T syntax e.g. %rax %ecx
  • GAS Instructions e.g. movl, pushl
  • Opens .s file extensions when filtering by assembly

Most likely I am missing a few things so let me know! You can download the asm.properties file from here:

AT&T / GAS syntax highlighting for SciTE

Incremental Backup Script

These are the backup scripts that I used to back up any Linux servers to my local machine. First thing that you should do is set-up the SSH keys so you can connect to your local machine without the need of a password.

On the Remote host you need to generate the keys with the following command:

ssh-keygen -t rsa

When you are asked for a pass phrase just hit enter twice. Now you should copy the key you have just generated over to your local machine:

scp .ssh/id_rsa.pub username@host:.ssh/authorized_keys2

Just replace the username with the local machine user and the host with the IP Address or hostname of the local machine. After the key has copied over you should now be able to connect from the remote host to the local machine without entering a password.

Now for setting up the backup script

(more…)

Tags: ,

Slow SSH connection

This has happened to me in the past when you connect to a SSH server and the initial connection is really slow, it can be really annoying. After trying a few different things and after looking at debug information I found that the following solution worked for me.

Edit /etc/ssh/ssh_config on the local machine and make sure the option “GSSAPIAuthentication” is set to no.

Hopefully that will help a few people!

Tags: ,