| |Interactive|Interactive|Script|
login | non-login | ||
---|---|---|---|
/etc/zshenv | A | A | A |
~/.zshenv | B | B | B |
/etc/zprofile | C | ||
~/.zprofile | D | ||
/etc/zshrc | E | C | |
~/.zshrc | F | D |
| |Interactive|Interactive|Script|
login | non-login | ||
---|---|---|---|
/etc/zshenv | A | A | A |
~/.zshenv | B | B | B |
/etc/zprofile | C | ||
~/.zprofile | D | ||
/etc/zshrc | E | C | |
~/.zshrc | F | D |
### Keybase proof | |
I hereby claim: | |
* I am romanr on github. | |
* I am romanroan (https://keybase.io/romanroan) on keybase. | |
* I have a public key ASB-85ANfKfO5Lh2lfDFvG4AyibUxMXH_Dxsgr1LGYDqiQo | |
To claim this, I am signing this object: |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
## History wrapper | |
function omz_history { | |
local clear list | |
zparseopts -E c=clear l=list | |
if [[ -n "$clear" ]]; then | |
# if -c provided, clobber the history file | |
echo -n >| "$HISTFILE" | |
echo >&2 History file deleted. Reload the session to see its effects. | |
elif [[ -n "$list" ]]; then |
# zshenv path_helper issue script. | |
# Source: https://gist.github.com/romanr/2c5ee2eafc284a2530cdb6b8d64d929c | |
# Based on https://gist.github.com/Linerre/f11ad4a6a934dcf01ee8415c9457e7b2 | |
# | |
# if [ -f "/etc/zprofile" ] && grep -q "path_helper" "/etc/zprofile"; then | |
# echo "WARNING: 'path_helper' in '/etc/zprofile', please remove it." >&2 | |
# echo "Path helper 'path_helper' will execute after the one in this '~/.zshenv' file and" >&2 | |
# echo "potentially reorder paths." >&2 | |
# fi | |
unsetopt GLOBAL_RCS |
import datetime | |
import random | |
import time | |
from multiprocessing import Lock | |
from notion.client import * | |
from notion.block import * | |
mutex = Lock() |
#!/bin/sh | |
# | |
# Keycloak control script | |
# | |
# chkconfig: - 80 20 | |
# description: Keycloak startup script | |
# processname: keycloak | |
# pidfile: /var/run/keycloak/keycloak.pid | |
# config: /etc/default/keycloak.conf | |
# |
#!/bin/bash | |
sudo apt-get update && sudo apt-get upgrade -y | |
#you may get an error E: Failed to fetch https://sdkrepo.atlassian.com/debian/dists/stable/contrib/binary-amd64/Packages 404 Not Found | |
#don't worry, you can continue without harm | |
sudo apt-get install -y build-essential dkms | |
git clone https://github.com/amzn/amzn-drivers | |
sudo mv amzn-drivers /usr/src/amzn-drivers-2.1.3 | |
sudo touch /usr/src/amzn-drivers-2.1.3/dkms.conf | |
echo 'PACKAGE_NAME="ena" | |
PACKAGE_VERSION="2.1.3" |
############################################################################################################### | |
# these are instructions for automating the suspend and shutdown of esxi vm's and host in case of a | |
# power failure. | |
# works with apc smartups 750xl and esxi 5.5u1 | |
############################################################################################################### | |
0# make a new VM and install Ubuntu-Server on it | |
1# install apcupsd | |
apt-get install apcupsd |