Author:
erics, May 23rd, 2023
In the macOS Terminal, my mouse scroll wheel would magically start scrolling the command line history instead of the window buffer scroll bar on the right to show window history. This happened when an SSH session was disconnected or timed out. The fix is to run the reset command.
Categories: How-To's, Technology Tags: apple, bash, cli, Command line, Disconnect, History, howto, MacOS, Mouse, Scroll, Shell, ssh, Terminal, Timeout, tips
|
No comments
Author:
erics, April 18th, 2022
If you want to preserve quoting to pass shell arguments to a called command, use the four characters “$@” (including the double quotes) instead of the two characters $*
Categories: How-To's, Technology Tags: Argument, Arguments, bash, Command, howto, Keep, Preserve, quote, quotes, Quoting, Save, Shell, tips
|
No comments
Author:
erics, April 23rd, 2021
Ever get the spinning beachball when trying to access the top menu on your Mac? SOLUTIONS Use the GUI Open the Activity Monitor application Select All Processes from the View menu Click on the SystemUIServer process, then click Force Quit. ~or~ Via CLI In Terminal, execute killall SystemUIServer
Categories: How-To's, Technology Tags: Activity Monitor, All Processes, apple, BeachBall, Force, Force Quit, Hang, Hung, Kill, killall, killall SystemUIServer, Mac, MacOS, macosx, Menu, Quit, Restart, Shell, Spiining beachball, Stop, SystemUIServer, Terminal, Top Menu
|
No comments
Author:
erics, February 15th, 2021
First, get the container ID using docker ps:
|
shell> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3bcc0baffd68 dashboard:1.0.10-88 "docker-php-entrypoi…" 29 minutes ago Up 29 minutes 0.0.0.0:8080->80/tcp dashboard |
Now run docker exec -it {ContainerID} /bin/bash:
|
shell> docker exec -it 3bcc0baffd68 /bin/bash root@3bcc0baffd68:/var/www/html# exit |
You can make a simple shell script to ease typing a bit:
|
shell> cat dshell #!/bin/sh # dshell # usage: dshell ContainerID docker exec -it $* /bin/bash |
Categories: How-To's, Technology Tags: Container, Docker, docker exec, docker ps, Exec, howto, login, ps, Shell, tips
|
No comments
Author:
erics, November 2nd, 2020
|
clear; printf '\e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 24h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}' |
Categories: How-To's, Technology Tags: cli, Extract, howto, Log, Logs, Script, Shell, Terminal, Time Machine, tips, view
|
No comments
Author:
erics, December 11th, 2019
When using Perl’s exec() call, the best way to invoke it is as follows:
|
exec("$dir/myprog.sh",@ARGV); |
This syntax does some important things: – passes a scalar value as the first argument which exec interprets as PROGRAM – passes an array as the second argument which exec will use as the arguments to pass into PROGRAM Note […]
Categories: How-To's, Technology Tags: Arg, Args, Argument, Arguments, bash, Exec, Execute, perl, Program, sh, Shell, System
|
No comments
Author:
erics, September 26th, 2019
Make It Faster: Improving MySQL Write Performance for Tungsten Cluster Slaves
Categories: Architecture, cctrl, Composite, Mastering Tungsten Clustering, Question Tags: HA, mysql, Performance, Performance Tuning, QA, Shell, Tungsten
|
Comments Off on Make It Faster: Improving MySQL Write Performance for Tungsten Cluster Slaves
Author:
erics, August 26th, 2019
Zero-Downtime Cluster Maintenance: Comparing the Procedures for Upgrades versus DB/OS Maintenance
Categories: Architecture, cctrl, Composite, Datasource, Downtime, Maintenance, Mastering Tungsten Clustering, Question, Shun, Zero-Downtime Tags: Command, HA, Master, mysql, QA, recover, Shell, Slave, Switch, Tungsten, welcome, Zero
|
Comments Off on Zero-Downtime Cluster Maintenance: Comparing the Procedures for Upgrades versus DB/OS Maintenance
Author:
erics, July 25th, 2019
How to move the Relay role to another node in a Composite Tungsten Cluster
Categories: Architecture, cctrl, cls, Composite, Datasource, failover, Maintenance, Mastering Tungsten Clustering, Question Tags: Automatic, Command, HA, High Availability, Master, Move, mysql, QA, Relay, Replicator, Shell, Slave, Switch, Tungsten
|
Comments Off on How to move the Relay role to another node in a Composite Tungsten Cluster
Author:
erics, November 18th, 2018
I installed an old version of Adobe software on my new Mac and as usual, it installed some daemons that are undesirable. Here is how I got rid of them via the Terminal. Note: Adobe installs daemons in the user context, so do this as your regular user login, not as root. shell> launchctl list […]
Categories: How-To's, Technology Tags: Adobe, apple, daemon, Disable, howto, Kill, launchctl, MacOS, macosx, Shell, Stop, Terminal, tips, Unload
|
No comments