Installing Ubuntu for a server OS? The code below will remove some of the preloaded applications that are needed on a server. Arguably you could remove Gnome in general and all Gtk but that depends on how you want to run your server.
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
DirecTV – API JSON Service
If you have your DirecTV Unit plugged into your network at home you could run a couple fun commands.
Mac OSX Terminal – Lynx HTML Parsing
Lynx has a lot of good purposes but in this example below I’m simply going to strip URLs from a bookmarks HTML file exported from Chrome. If you have created folders and links all over the place in Chrome or Firefox this below will be helpful
Red Hat / CentOS / Fedora – Create Jailed SFTP User
If you are working on a project and need SFTP capabilities but don’t want users to see each other’s files create a SFTP Jailed server. Assumptions for the code below is that you are running Red Hat, CentOS, or Fedora and already have the OS running. NOTE: In this first…
UNIX – SED Replace Tab with Space(s)
Originally found at https://linuxconfig.org/replace-all-tab-characters-with-spaces
Azure – CLI – Build Windows/UNIX VM Function (With or without public IP)
In the functions below the VM name is used in all of the pieces to build the VM to simplify documentation. Important Items: As I use a Firewall appliance in Azure I do not set Network Security Groups (NSG). I have a predefined virtual network (VN) and predefined network subnet…
Swift – iOS – Get Device Identity
This code will help you determine what phone or device is using your app. In your ViewController put this under your imports In ViewDidLoad or somewhere else as needed you can call to the above with Sorry but I do not remember the location that I originally found this.
Ubuntu – Require Sudo Rights To Shutdown
If you are working with UNIX and you need to remove the ability for normal users to shutdown you can make this file change. This change will simply require a user with sudo access to type in their password before the machine can shutdown. There’s a couple changes I made…