Skip to content

Instantly share code, notes, and snippets.

@kleber-swf
kleber-swf / fnt2xml.js
Last active May 24, 2023 22:12
Converts a fnt text file to a fnt xml format. If a folder is given, process all .fnt files inside it.
// ======================================================== //
// USAGE: //
// $ node fnt2xml.js 'path/to/font.fnt' //
// Converts the specified file to a fnt xml //
// //
// $ node fnt2xml.js 'path/to/fonts/dir' //
// Converts all the .fnt files to fnt xml //
// ======================================================== //
@dragonjet
dragonjet / 1-server.md
Last active July 31, 2021 21:01
Setup Web Server on EC2 Amazon Linux AMI

Step 1: Server Credentials

This assumes you are now connected to the server via SSH.

  • sudo -s Enter root mode for admin access
  • groupadd devgroup Create new group to be later granted access to /var/www/html

Creating a new Root User

  • useradd -G root,devgroup masterdev Create new root user. Also add to the devgroup
  • passwd masterdev Change password for the new root user
  • At this point, you'll need to input your new root user's new password