Skip to content

Instantly share code, notes, and snippets.

@kurtis318
kurtis318 / ubutu_tricks_and_tips.md
Created June 5, 2019 21:17
Ubuntu Tricks and Tips
@kurtis318
kurtis318 / How_to_define_move-screen _keyboard_shortcut_on_KDE.md
Created June 4, 2019 21:26
How to define move-screen keyboard shortcut on KDE

Issue:

I sometimes move a window on my KDE desktop (Fedora 30) so that the title bar is obscured making it nrealy impossible to do any productive work

Solution:

  1. Open the KDE System Settings app.
  2. Click on "Shorcuts" line under the topic of Worskpace
  3. On the Shortcuts pane, click on KWin in the Component pane.
  4. In the search bar enter the word move followed by enter key.
  5. The "Move Window" action should appear. Click on it.
@kurtis318
kurtis318 / Fedora_30_install_and_upgrade_notes.md
Last active May 9, 2019 14:49
Fedora 30 install and upgrade notes

I have been installing and upgrading to Fedora 30 and have run into some issues. Here is my own list just so I don't forget.

Issue:

XPS 15 fresh install of KDE spin

Solution:

Here are the boot paramaters:

<insert_boot_parameters>
@kurtis318
kurtis318 / yum_dnf_commands.md
Created April 11, 2019 20:47
yum/dnf commands

Here are some yum/dnf commands that I have collected.

Show all versions of a package available

(base) [kurtis@kwrp50 ~] $ sudo dnf  --showduplicates list code
Contacting OpenClient Router for restricted repository information
Added restricted repo: Fedora-29-x86_64-Licensed
Last metadata expiration check: 0:02:23 ago on Thu 11 Apr 2019 03:40:20 PM CDT.
Installed Packages
code.x86_64                         1.33.0-1554390950.el7                         @code
Available Packages
@kurtis318
kurtis318 / conda_tips_and_tricks.md
Last active June 5, 2019 16:28
conda tips and tricks

Here is just a miscellaneous collection of conda commands I have come across while using the conda command.

Source this file to get to conda stuff:

source /home/kurtis/anaconda3/etc/profile.d/conda.sh

list channels

$ conda config --show channels
channels:
@kurtis318
kurtis318 / Visual_Studio_Code_Tips.md
Last active April 5, 2019 14:25
Visual Studio Code Tips

Fix to get outline for bash source in vscode

Issue

VS Code can syntacally parse bash source code but there is no outline of vars and functions in the OUTLINER.

Solution

REF: bash-lsp/bash-language-server#41 Need to have npm installed

sudo npm i -g bash-language-server tree-sitter tree-sitter-bash --unsafe-perm
@kurtis318
kurtis318 / Permit_chromecast_discovery_when_using_firewalld.md
Last active March 30, 2019 15:06
Permit chromecast discovery when using firewalld

Issue:

Trying to cast a Chrome web page (or chromecast enabled video) from Fedora 29 did not find any devices due to firewalld enabled.

Solution:

The following commands allow chromecast devices to be discovered without having to temporarily disable firewalld.

sudo firewall-cmd --get-active-zone
sudo firewall-cmd --permanent --zone=public --add-port=32768-61000/udp
sudo firewall-cmd --reload

Be sure to restart all versions the Chrome broswer. Be sure to kill any automatically started background instances of Chome.

@kurtis318
kurtis318 / Disable_Red_Hat_subscription-manager.md
Last active March 30, 2019 01:58
Disable Red Hat subscription-manager

Issue:

I do a lot of installing of Red Hat in a test environment without a RH subscription. I keep getting this error message:

# yum repo list
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No such command: repo. Please use /usr/bin/yum --help

Today, after a yum update (I am at 7.6) and rebooting, I cannot run any yum commands without hanging. If I add the --noplugins option to the yum command, the yum command works. I need a more general solution short of removing subscription-manager via rpm command.

@kurtis318
kurtis318 / setup_nfs_server_client_on_centos7.md
Last active April 25, 2019 18:28
Setup nsf server and client on Centos 7

Web Sites

Configure NFSv3 and NFSv4 on CentOS 7

The following a good explanation of root_squash, no_root_squash and all_squash. All I know is that if root is to be able see data, no_root_squash needs to be specified in the /etc/exports line for the directory. https://computingforgeeks.com/configure-nfsv3-and-nfsv4-on-centos-7/

Beginners Guide to NFS in CentOS/RHEL

The following site is easy to follow but lacks in-depth information about the squashing. https://www.thegeekdiary.com/beginners-guide-to-nfs-in-centos-rhel/

@kurtis318
kurtis318 / Launch_url_as_window_in_Chrome.md
Created February 7, 2019 16:24
Launch url as window in Chrome

Issue:

Launching a web site as a boarderless window in Google Chrome broswer can be done using 'More Tools -> Create Shortcut'. This works and gives an icon even but i have seen them break or go away. Sometimes they will launch in a boarderless window and sometimes not.

Solution:

Use the --app option when launching google-chrome command.

google-chrome --app=https://mail.google.gom

Of course, creating a launcher in a desktop would be preferred. Icons for desktops will need to be downloaded separately.