This script requires two Python dependencies: beautifulsoup4
and openpyxl
. Install them first using pip:
$ pip install beautifulsoup4
$ pip install openpyxl
You might have to use sudo
if installing globally.
Instructions for installing zsh plugins, for a variety of plugin managers
-
⚠️ Deprecated. Official recommendation is to use Antidote insteadAdd
<owner>/<repo>
to your plugins file. If you use static loading, run the update command. -
Antidote: Add
<owner>/<repo>
to your plugins file. If you generate your static plugins file manually, run the bundle command.
prompt = """ | |
Input: Print the current directory | |
Output: pwd | |
Input: List files | |
Output: ls -l | |
Input: Change directory to /tmp | |
Output: cd /tmp |
cd() { | |
# Check if no arguments to make just typing cd<Enter> work | |
# Also check if the first argument starts with a - and let cd handle it | |
if [ $# -eq 0 ] || [[ $1 == -* ]] | |
then | |
builtin cd $@ | |
return | |
fi | |
# If path exists, just cd into it | |
# (also, using $* and not $@ makes it so you don't have to escape spaces any more) |
This gist will no longer be updated as the changelog will be on the official website.
- Sublime Text/Merge Official Discord chat server: https://discord.gg/D43Pecu
- Sublime Text/Merge 中文 Telegram 交流群組: https://t.me/sublime_tw
Converted via https://domchristie.github.io/turndown
Update: I created jq-zsh-plugin that does this.
One of my favourite tools of my trade is jq. It essentially enables you to process json streams with the same power that sed, awk and grep provide you with for editing line-based formats (csv, tsv, etc.).
Another one of my favourite tools is fzf.
/*bin/echo ' -*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;coding:utf-8 -*-┤ | |
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ | |
╞══════════════════════════════════════════════════════════════════════════════╡ | |
│ To the extent possible under law, Justine Tunney has waived │ | |
│ all copyright and related or neighboring rights to this file, │ | |
│ as it is written in the following disclaimers: │ | |
│ • http://unlicense.org/ │ | |
│ • http://creativecommons.org/publicdomain/zero/1.0/ │ | |
╚────────────────────────────────────────────────────────────────────'>/dev/null | |
if ! [ "${0%.*}.exe" -nt "$0" ]; then |
apt update | |
apt -y install wget gnupg dirmngr | |
wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import | |
gpg --keyserver hkp://keys.gnupg.net --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6 | |
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list | |
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add - | |
apt update | |
apt -y upgrade | |
apt -y dist-upgrade | |
apt -y autoremove --purge |