Skip to content

Instantly share code, notes, and snippets.

View satsen's full-sized avatar

satsen

View GitHub Profile
@catchsudheera
catchsudheera / gist:68bcb4747e7e4127cd1162112791c99e
Created December 31, 2024 12:00
Upgrade ubuntu server from EOL version "Lunar" to latest
sudo sed -i 's|http://ports.ubuntu.com/ubuntu-ports|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade -y
sudo sed -i 's|lunar|mantic|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade -y
# Had to fix the installs for libc6
sudo apt --fix-broken install
sudo apt dist-upgrade
@jewelsea
jewelsea / LineChartWithHover.java
Last active November 11, 2024 20:45
JavaFX sample to display a LineChart which shows the value of a plotted Node when you hover over the Node.
import javafx.application.Application;
import javafx.collections.*;
import javafx.event.EventHandler;
import javafx.scene.*;
import javafx.scene.chart.*;
import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;