Skip to content

Instantly share code, notes, and snippets.

NetBeans 11 Text App

  1. Open NetBeans 11 and use the menu to go to File --> New Project.
  2. Select the Java with Maven category and then selexct Java Application. Then click Next.
  3. Set meaningful values for Project Name, Group Id, and Package. Then click Finish.
  4. Under your project's Source Packages, open the only package (based on what you typed for Step 3).
  5. Right click the package's name and select New --> Java Class. This will be your main class, so give it a meaningful name.
  6. Inside the class definition, put in the usual:
@blairw
blairw / mactype-compat.md
Created February 18, 2020 11:39
MacType compatibility

Make MacType work with various programs properly

Microsoft Word

  1. File --> Options
  2. General: When using multiple displays - Optimize for compatibility
  3. Advanced: Disable hardware graphics acceleration
  4. Advanced: switch OFF Use subpixel positioning to smooth fonts on screen
@blairw
blairw / quickly_firefly_on_arch_lamp.sh
Last active August 19, 2017 05:28
Quickly install Firefly III in Arch Linux
# Quickly install Firefly III in Arch Linux
# ALTERNATIVELY:
# `yaourt -S firefly-iii`
# See also:
## Quickly deploy LAMP Server in Arch Linux
## https://gist.github.com/blairw/c69d4c77cab3f7c7352a7a40ece720d5
################################################
@blairw
blairw / quickly_archlinux_in_virtualbox.sh
Last active August 19, 2017 04:24
Quickly install Arch Linux in VirtualBox
# Credits:
# - www.cs.columbia.edu/~jae/4118-LAST/arch-setup-2016-1.html
# - https://wiki.archlinux.org/index.php/Installation_guide
# - https://gist.github.com/mattiaslundberg/8620837 (UEFI + LUKS version)
# Assuming you have VirtualBox installed in Host and ISO ready to go and VM set up already
# Partitioning
@blairw
blairw / quickly_lamp_on_archlinux.sh
Last active August 19, 2017 03:42
Quickly deploy a LAMP server on Arch Linux
# assuming you've configured sudo - otherwise go do that first
# install the lamp
sudo pacman -S --needed apache mariadb php php-apache
# configure apache (httpd)
sudo systemctl enable httpd
sudo systemctl start httpd
sudo systemctl status httpd