Map Escape Key to Caps Lock and Other Tweaks

Refer: https://dev.to/yuyabu/how-to-use-caps-lock-key-as-esc-on-ubuntu-18-1g7l

Gnome Tweaks as a "Keyboard & Mouse Section", "Addtional Layout Options"

Currently using two tweaks because my old USB keyboard for an iPad DOES NOT have an escape key.

Choose "Caps Lock behavior', "Make Caps Lock and addtional Escape"

Since Caps Lock is remapped also adding a tweak to make using both shift keys to enable Caps Lock, and one shift key to disable Caps Lock

"Miscellaneous Compatibility Options", "Both Shift together enables Caps Lock; one Shift key disbles it"

Cups Printer Management from Command Line

Refer: https://www-uxsup.csx.cam.ac.uk/pub/doc/suse/suse9.1/adminguide9.1/ch05s07.html

Sample Commands

Help

lpstat --help

General Status

lpstat -t

List of Printers

lstat -v

5.7.3.Using Command-Line Tools for CUPS Troubleshooting

Print jobs will be kept in the printer queue if you shut down the system while a job is being processed. This means a broken print job will still be there even after rebooting and you need to remove it from the queue manually with the commands mentioned above.

Other problems occur if there is some fault in the physical data link between the computer and the printer. The printer may then be unable to make sense of the data it receives and start spitting out lots of pages with garbage on them.

To make sure the printer stops working, first remove all paper from it (in the case of inkjet printers) or open the paper trays (laser printers).

At this point, the print job will often still be in the queue, because jobs are only removed from the queue when all data has been sent to the device. Check which queue is currently printing by entering

lpstat -o

Then remove the problematic print job wit

cancel queuename-jobnumber

Some data might still find their way to the printer in spite of the job having been deleted. To stop this, enter the command fuser -k /dev/lp0 (for a printer at the parallel port) or fuser -k /dev/usb/lp0 (for a USB printer). This kills any processes still using the printer device.

Do a complete reset of the printer by disconnecting it from power for some time. Then put in the paper and switch the printer back on.

Torchlight II – God Mode Console

Refer: https://steamcommunity.com/sharedfiles/filedetails/?id=126856835
Refer: https://support.arcgames.com/hc/en-us/articles/360017560214-How-to-open-the-in-game-console-on-Mac-OS-X

On MacBook

/Users/mruckman/Library/Application Support/Steam/steamapps/common/Torchlight II/my games/runic games/torchlight 2/save/76561198320634829/settings_sdl2.txt

Change CONSOLE :0 to CONSOLE :1

[Option]+[r] or [Option] + [r] on mapped keyboard

Open Console on Ubuntu

gedit "/home/mruckman/.steam/steam/steamapps/common/Torchlight II/my games/runic games/torchlight 2/save/76561198320634829/settings_sdl2.txt"

gedit "/home/mruckman/.steam/debian-installation/steamapps/common/Torchlight II/my games/runic games/torchlight 2/save/76561198320634829/settings_sdl2.txt"

[Insert] Key

Note: Replace “###” with numbers, and remove all parentheses, and quotation marks.

GOD : Toggles invincibility on/off.
GODSPEED : Toggles invincibility and extra speed on/off.
LEVELUP : Gain XP to level up.
AIFREEZE : Toggles Monster AI on/off.
PLAYERNOTARGET : Toggles Monster targeting on/off. (Ghost Mode)
KILLALL : Kills all monsters.
ALWAYSCRIT : Player always hits critically.
ASCEND : Goes down a floor.
DESCEND : Goes up a floor.
MONEY ### : Sets amount of gold to “###”.
ALLITEMS : Spawns all items.
CLS : Clears console history.
SETTIME ### : Sets the time of day to “###”.
SETTIMESCALE ### : Sets the timescale for time of day to “###”.
ROOM : Returns the room the player currently is in.
FPS : Shows the frame rate and other information.
SPEED : Toggles additional speed for the character.
DAMAGE SHAPES : toggles damage shapes on and off.
STATPOINTS ### : Gives you stat points set to “###”.
STRENGTH ### : Gives you melee points set to “###”.
DEXTERITY ### : Gives you ranged points set to “###”.
MAGIC ### : Gives you magic points set to “###”.
DEFENSE ### : Gives you defense points set to “###”.
ALLSTATS ### : Gives you the count to all stats to “###”.
FAME ### : Gives you fame points set to “###”.
SKILLPOINTS ### : Gives you skill points set to “###”.
SETPETLEVEL : Sets the pet’s level set to “###”
DISABLEPET : Disables/enables the player’s pet.
RELOAD : Reloads textures.
PATHING : Toggles pathing debug display.
COMBATLOG : Toggles combat log.
SOUNDDEBUG : Toggles sound debug.
CLEARHISTORY : Clears level history.
MISSILETRAILS : Shows missile trails.
DEBUGLOGIC : Toggles if the logic events are fired to the ogre log.
NOXP : Player doesn’t gain XP.
ANIMATIONSPEED ### : Changes the animation of everything to match the FPS.
HURTME ### : Reduces the player and the player’s pet HP by the given percent.
RESETSTATS : Resets the player’s stat points.
RESETSKILLS : Resets the player’s skills.
RESETPLAYERLEVEL : Resets the player’s level to 1.
RESETPETLEVEL : Resets pet’s level to 1.
RESETPLAYER : Resets player’s stats, skills, and level.
CAMERADISTANCE ### : The ### the camera will be from the player.
DIFFICULTY: Displays the current game difficulty.
SETDIFFICULTY ### : Sets the current difficulty, values range from (0) Easy to (3) Very Hard.
SKILL name/index = type just skill to see a list of skills. Type the number or the name of the skill to make active on the player.
SKILLTEST = different in the command skill, this will allow you to execute any skill even if it wasn’t intended for your character.
ITEM index,count = the params are option. Type items to see indexes of all monsters in the game.
ITEM itemName,count = creates count of itemName.
ALLITEMS unittype = spawns all items of a given unittype (use “_” for spaces)
IDENTIFYALL identify all items in the player’s inventory.
ANY index,count = the params are option. Type any to see indexes of all units in the game.
EDITOROBJECT objectName,count = Creates an object from the editor for testing memory use.
UNIT unitName,count = creates a unit by name and count.
SPAWNCLASS spawnclassName,count,level = just type spawnclass to see all the spawn classes listed. Pass in Zero or a negative number for level will use the dungeon depth as the level.
MONSTER index,count = the params are option. Type monster to see indices of all monsters in the game.
MONSTER monsterName,count = creates count of monsterName
MONSTERMEM MonsterName,### = the params are option. Creates and deletes a monster for memory testing.
MODEL modelpath,### = the params are optional. Creates and deletes a model for memory testing.
DUNGEON dungeonName = sets the current dungeon
CLEANUP = releases unused resources
CHARGEBARMULT = makes the charge by X percent easier to fill
UNITTYPES = displays all unittypes
RESTARTLEVEL = restarts the current level
QUESTS = lists all quests
QUESTACTIVE questName = sets a quest to active
QUESTSHOWACTIVE = Shows all the players active quests
QUESTCOMPLETE questName = sets a quest to complete
QUESTRESET questName = resets a quest to not be active or complete
QUESTSCOMPLETE = Lists all the quests complete
SHOWBLOOD = toggles blood particles
ACHIEVEMENTS = Lists the achievements and if they are complete
MEMORY = Dumps the memory allocation to the console.
TAGS = Dumps all tags used in the level and what got created.
ITEMBYMESH = Pass in part of a mesh name to spawn all items with that contain the string you passed.
UIREFRESH = forces a refresh on the UI.
MODIFYSIGHT = changes the sight distance of monsters activation. Pass 0 to reset.
MODIFYMOTION = changes the motion distance of monsters activation. Pass 0 to reset.
CHARACTER COUNT = returns the number of characters updating in the level
PLAYERANIMATION = Dumps to the console which animation the player is playing and stopping.
DOLLYMIN mindis = The min dolly distance for interaction.
BLOOM = Toggle fullscreen bloom.
LOGCONSOLE = Show the logging console.
CONNECTIONDATA = Dump a connection data file.
ADDFRIENDBYUSER = Add a friend by username or email.
DROPCONN = Drop the given connection id.

diceware – To generate passwords

Refer: http://manpages.ubuntu.com/manpages/bionic/man1/diceware.1.html

Sample Usage
Four words, and separate by dash

$ diceware -n 4 -d -

Installation
$ sudo apt-get update -y
$ sudo apt-get install -y diceware

 

Delish Mason Jar Ice Cream

Simple ice cream in a Mason jar

Refer: https://www.delish.com/cooking/recipe-ideas/recipes/a53547/mason-jar-ice-cream-recipe/

Yields: 1
Prep Time: 0 hours 10 mins
Total Time: 3 hours 10 mins

Ingredients

  • 1 c. heavy cream
  • 1 1/2 tbsp. granulated sugar
  • 1/2 tsp. pure vanilla extract
  • Pinch of salt

Directions

Pour cream, sugar, vanilla and salt into a 16 ounce mason jar and secure tightly with a lid. Shake the mason jar until the cream thickens and almost doubles in size, 4 to 5 minutes. It should be opaque and easily coat the back of a wooden spoon.

Freeze for 3 hours, or until hardened. Scoop out ice cream with a spoon and serve with your favorite ice cream toppings.

Install gTile and/or Gnome Extensions

Installing Gnome Extensions - Wanted for gTile

Usage Refer: https://github.com/gTile/gTile

Refer: https://linuxconfig.org/how-to-install-gnome-shell-extensions-on-ubuntu-20-04-focal-fossa-linux-desktop

$ sudo apt install gnome-shell-extensions
Logoff and Logon Again
Install Firefox extension: https://extensions.gnome.org/
Click on the gnome extension icond in Firefox
Search for gTile and install it