Scripts

AT&T / GAS syntax highlighting SciTE

SciTE is my main programming text editor of choice in Linux 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 Remote Backup (RBScript)

Incremental Remote Backup Script is a bash script which takes a snapshot of user defined folders and copies them to a remote Linux server using SCP. The incremental backup is stored by date and it will send you a email with a report once the backup has completed or if it has failed. The output has been made “pretty” so if you decided to run it manually you should be able to follow what is happening easy enough!

I use this script to backup my servers, it has came in handy a few times!

Incremental Remote Backup script download


C2HTML

C to HTML converts any ANSI C source code into
a syntax highlighted HTML file. The program will highlight the following :

  • Standard 32 ANSI C keywords
  • Numerical values
  • Symbols
  • Include and Define tags
  • Single and Double quotes
  • Single line and Block code comment tags

C2HTML source code
C2HTML example


Link Counter

Link Counter is a C script that will take a HTML file as a command line argument and read every a href tag on the page and then display how many links were found. I wrote this for a project I was working on, kind of useless TBH!

Link Counter source code