This is a list of the most helpful keyboard commands I use within top.
h shows help on interactive commands. Also see the top manual page
q to quit the program.
| #!/bin/bash | |
| set -ex | |
| # Python and ffmpeg are required, make sure Python 3.10+ is installed | |
| # Usage: ./dl-vid.sh <video_url> | |
| ensure_lib() { | |
| if [ -x "$(command -v apt)" ]; then | |
| if dpkg -s $1 &> /dev/null; then | |
| echo "$1 is already installed" |
| #!/bin/bash | |
| set -ex | |
| # Usage: ./build-python.sh [version] [install-dir] | |
| # Example1: ./build-python.sh 3.12.9 | |
| # Example2: mkdir -p ~/bin/python-original && ./build-python.sh 3.12.9 ~/bin/python-original | |
| # Some modules require extra lib: libffi, libbz2, liblzma | |
| py_version=${1:-3.12.9} | |
| base_dir=$(realpath ${2:-$HOME/bin/python-original}) |
| Host github.com | |
| HostName github.com | |
| User git | |
| IdentityFile ~/.ssh/secret.key |
| [init] | |
| defaultBranch = master | |
| [user] | |
| name = <username> | |
| email = <email> | |
| signingkey = <GnuPG key id> | |
| [core] | |
| editor = code | |
| [commit] | |
| gpgsign = true |
| [xdebug] | |
| zend_extension="<path/to/xdebug.so>" | |
| xdebug.remote_enable=1 | |
| xdebug.remote_port=9000 | |
| xdebug.remote_autostart=1 |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Pytest", | |
| "type": "python", | |
| "request": "launch", |
This is a list of the most helpful keyboard commands I use within top.
h shows help on interactive commands. Also see the top manual page
q to quit the program.
| <VirtualHost *:443> | |
| DocumentRoot "/dir/to/document" | |
| ServerName domain | |
| SSLEngine on | |
| SSLCertificateFile /dir/to/cert/file.pem | |
| SSLCertificateKeyFile /dir/to/cert/file.key | |
| <FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
| SSLOptions +StdEnvVars | |
| </FilesMatch> | |
| </VirtualHost> |
| APP_NAME=app | |
| APP_ENV=local | |
| APP_KEY=base64:wE9tKIHu8aQGcLu6oZfUcqD/U3jdOgYrcoZ/UqY8K2c= | |
| APP_DEBUG=true | |
| APP_URL=http://localhost:8000 | |
| LOG_CHANNEL=stack | |
| DB_CONNECTION=mysql | |
| DB_HOST=127.0.0.1 |
| # run php-cgi.php -b 127.0.0.1:9123 | |
| server { | |
| listen 8000; | |
| listen [::]:8000; | |
| server_name blog.local; | |
| root c:/www/blog; | |
| index index.php index.html index.htm index.nginx-debian.html; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; |