How do I dropdown?
This is how you dropdown.
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
document.body.addEventListener('keydown', (event) => { | |
if(event.key === "Enter" && (event.metaKey || event.ctrlKey)) { | |
event.target.form?.submit(); | |
} | |
}); |
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
#!/bin/bash | |
FILE=$1 | |
FILESIZE=$(stat -c%s "$FILE") | |
BLOCK_SIZE=10000 | |
BLOCKS=$(((FILESIZE + (BLOCK_SIZE + 1)) / BLOCK_SIZE)) | |
echo "$FILESIZE" |
Code | Key | |
---|---|---|
0 | KEY_NONE | |
1 | KEY_ESCAPE | |
2 | KEY_1 | |
3 | KEY_2 | |
4 | KEY_3 | |
5 | KEY_4 | |
6 | KEY_5 | |
7 | KEY_6 | |
8 | KEY_7 |
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
I added a new feature to Nautilus with the precious help of the maintainers.
This new feature allow you to map custom keyboard shortcuts to launch the scripts in the scripts folder ( ~/.local/share/nautilus/scripts
).
So, when you add an executable in that folder it will appear in the right-click context menu, but now if you create a special configuration file ( ~/.config/nautilus/scripts-accels
) you can assign a shortcut to it.
For example make a script called Terminal
with the following content:
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.
Example:
# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com
When you create a tar archive of a directory tree the hidden files are normally not included. Here’s how to include the hidden files. | |
Say you have a web directory called “/var/www/html/mysite/” that contains the following tree: | |
.htaccess | |
index.php | |
logo.jpg | |
style.css | |
admin_dir/.htaccess | |
admin_dir/includes.php |