To change the default save location for screenshots on macOS Mojave (or later):
- Press "Shift-Command-5" to invoke the screen capture panel
- Click on "Options" and choose "Other Location" to choose a destination
| #!/usr/bin/env python3 | |
| # ./pi_calc.py --digits 5000 | |
| import decimal | |
| from decimal import Decimal | |
| from math import factorial | |
| import multiprocessing | |
| import time | |
| import argparse |
| # ~/.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 | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
| import pandas as pd | |
| import numpy as np | |
| def get_dataset(size): | |
| # Create Fake Dataset | |
| df = pd.DataFrame() | |
| df['size'] = np.random.choice(['big','medium','small'], size) | |
| df['age'] = np.random.randint(1, 50, size) | |
| df['team'] = np.random.choice(['red','blue','yellow','green'], size) | |
| df['win'] = np.random.choice(['yes','no'], size) |
| #!/bin/bash | |
| currdate=`date +"%Y-%m-%d %T"` | |
| folders=("Backup Documents Sites") | |
| echo -e "\n---[${currdate}]---\n" >> ~/backup_stdout.log | |
| echo -e "\n---[${currdate}]---\n" >> ~/backup_stderr.log | |
| for folder in $folders |
To enable the F12 hotkey in Ubuntu: