dpkg -L <package name>
Example:
$ dpkg -L apache2
/.
/usr
/usr/share
dpkg -L <package name>
Example:
$ dpkg -L apache2
/.
/usr
/usr/share
To list files that will be installed by a debian package (.deb
) which is not currently installed on your system
# Ubuntu 15.04+
apt download <packagename>
# Earlier versions of Ubuntu
apt-get --download <package name>
# test.py | |
# Print statements to pytest | |
# Capture messages sent to stdout / stderr from your functions, | |
# and test the output with a pytest unit test. | |
# tl;dr - use the capsys parameter in your test arguments | |
# extract the messages sent to stdout/stderr with capsys.readouterr() | |
# calendar_ical.rb | |
# Todo - date string format | |
def get_date_format(time_obj) | |
# Convert standard ruby datetime obj to ISO 8601 format | |
# time_obj - should be datetime object | |
# Time format: | |
# timestring.to_time.iso8601 # Incorrect format! We need 19970610T172345Z | |
# 1997 06 10 T 17 23 45 Z |
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
#!/bin/bash | |
# gnome-shell-install | |
# Utility script to install gnome-shell plugin from zip | |
## Usage: | |
# Copy this file to your .local/bin directory and chmod +x [filename] | |
# From the directory where your downloaded GNOME shell plugin zip is, run | |
# gnome-plugin-install.sh [mypluginfilename.zip] | |
# License: |
#!/bin/bash | |
# todos-migrate.sh | |
# Generate a todo file from template | |
template="$HOME/Templates/Todos.template" | |
target_dir="$HOME/Documents" | |
archive_dir="$HOME/Documents/todos" | |
filename="Todos.md" | |
# Today's file |
# Count occurences of KEYWORD across all files named [something].log | |
# Flag: -src | |
# Credit: | |
# https://superuser.com/questions/205591/show-the-matching-count-of-all-files-that-contain-a-word | |
grep -src KEYWORD *.log | |
# Example output: | |
# production.20201107.log:12 |
from http://howagain.com/create-a-portable-firefox-and-run-multiple-profiles-or-versions/
This Howto was created by C.Taylor at Howagain.com. I take no credit for the content.
This is just a list of distilled steps to clarify the instructions. For detailed instructions, view the original article at: