All of this has been confirmed to work on macOS Big Sur (11.2.3) and JDK 16.
To put the menu bar at the top of the screen, use the following
System.setProperty("apple.laf.useScreenMenuBar", "true");
// Use this method to set the menu bar.
; Creality Ender-3 S1 Pro Optimal Start GCode for Cura Slicer Software. | |
; By John Scott, 2023. https://gist.github.com/JohnScottUK/8acd76895716b3abda4fde270738daf3 | |
;M117 Set Movement... | |
G90; Use absolute positioning. | |
M83; Use relative extrusion. | |
;M117 Heating Bed... | |
M140 S{material_bed_temperature_layer_0}; Start heating bed. |
#!/bin/bash | |
# | |
# Created: 2017-07-02 16:20 | |
# Updated: 2018-02-09 12:23 | |
# Creator: Ryan Miller | |
# Website: http://devopsmachine.com/ | |
# File: /usr/local/bin/set-primary-monitor-pantheon-greeter | |
# | |
# Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS. | |
# |
#include <sys/socket.h> | |
#include <sys/ioctl.h> | |
#include <sys/kern_event.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#include <net/ethernet.h> |
# fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort) | |
fshow() { | |
local out shas sha q k | |
while out=$( | |
git log --graph --color=always \ | |
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | | |
fzf --ansi --multi --no-sort --reverse --query="$q" \ | |
--print-query --expect=ctrl-d --toggle-sort=\`); do | |
q=$(head -1 <<< "$out") | |
k=$(head -2 <<< "$out" | tail -1) |
set listchars=tab:→\ ,trail:␣,extends:…,eol:⏎ | |
set listchars=tab:→\ ,trail:␣,precedes:«,extends:»,eol:⏎ | |
set listchars=tab:→\ ,trail:·,precedes:«,extends:»,eol:¶ | |
set listchars=tab:‣\ ,trail:·,precedes:«,extends:»,eol:¬ | |
set listchars=tab:␋\ ,trail:␠,precedes:«,extends:»,eol: | |
set listchars=tab:>-,trail:.,precedes:<,extends:>,eol:$ |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |