Coding

Summernote Image Upload

NOTE: This only applies to Summernote 0.6.* and not to newer versions. $(‘#summernote’).summernote({ height: 850, toolbar: [ [‘style’, [‘fontsize’,’fontname’,’bold’, ‘italic’, ‘underline’, ‘clear’]], [‘color’, [‘color’]], [‘para’, [‘ul’, ‘ol’, ‘paragraph’,’hr’,’link’,’picture’]], [‘src’,[‘fullscreen’,’codeview’]] ], onImageUpload: function(files, editor, welEditable) { sendFile(files[0], editor, welEditable); } }); function sendFile(file, editor, welEditable) { data = new FormData(); data.append(“file”, file); $.ajax({ data: data, type: […]

Summernote Image Upload Read More »

Connecting to Ubuntu Servers With RSA Keys

I manage a bunch of internal servers and for those that aren’t part of the wider web I like to use key pairs to speed up my sign ins and maintenance. Key-Based SSH Logins Key-based authentication is the most secure mode of authentication usable with OpenSSH. Key-based authentication has several advantages over password authentication, for example

Connecting to Ubuntu Servers With RSA Keys Read More »

Simple Changes to Secure Apache

Keep Updated You should update your linux settings no less than once a month. This will ensure that you are not running vulnerable technology. Remove Header Details / Disable Tokens When Apache web server generates any web pages or error pages, some important information about the version and other details implemented on the system are

Simple Changes to Secure Apache Read More »

Useful Command Line Scripts

Below is a list of very common linux commands that any linux person should know by heart. From gzipping files, to running backups this is my personal cheat sheet Compressing Files and Folders Unzip 7z Archive 7za x myfiles.7z gzip File gzip -9 file gzip Folder tar -zcvf archive-name.tar.gz directory-name Uncompress Gzip File gzip -d

Useful Command Line Scripts Read More »