Commit 4f22af95 authored by AdminXVII's avatar AdminXVII

Firewalld

parent 4dbd903b
Pipeline #5434 passed with stages
in 1 minute and 2 seconds
......@@ -165,7 +165,7 @@ Since Ion does not support autocompletion via plugins, a lot of oh-my-zsh plugin
|--------------------------+--------------------------------|
| fedora | Not happening |
|--------------------------+--------------------------------|
| firewalld | Planned |
| firewalld | Done |
|--------------------------+--------------------------------|
| forklift | Not sure |
|--------------------------+--------------------------------|
......
# This plugin adds some aliases and functions for FirewallD using the `firewalld-cmd` command
alias fw = 'sudo firewall-cmd'
alias fwp = 'sudo firewall-cmd --permanent'
alias fwr = 'sudo firewall-cmd --reload'
alias fwrp = 'sudo firewall-cmd --runtime-to-permanent'
fn fwl
# converts output to zsh array ()
let zones = @split($(sudo firewall-cmd --get-active-zones | grep -v 'interfaces\|sources') '\n')
for i in @zones
sudo firewall-cmd --zone $i --list-all
end
echo 'Direct Rules:'
sudo firewall-cmd --direct --get-all-rules
end
......@@ -29,34 +29,34 @@ alias vuejs='frontend vuejs'
# define search context URLS
let _frontend_urls:hmap[str] = [
angular = 'https://angular.io/?search=' \
angularjs = 'https://google.com/search?as_sitesearch=angularjs.org&as_q=' \
bem = 'https://google.com/search?as_sitesearch=bem.info&as_q=' \
bootsnipp = 'https://bootsnipp.com/search?q=' \
bundlephobia = 'https://bundlephobia.com/result?p=' \
caniuse = 'https://caniuse.com/#search=' \
codepen = 'https://codepen.io/search?q=' \
compassdoc = 'http://compass-style.org/search?q=' \
cssflow = 'http://www.cssflow.com/search?q=' \
dartlang = 'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:' \
emberjs = 'https://www.google.com/search?as_sitesearch=emberjs.com/&as_q=' \
flowtype = 'https://google.com/search?as_sitesearch=flow.org/en/docs/&as_q=' \
fontello = 'http://fontello.com/#search=' \
github = 'https://github.com/search?q=' \
html5please = 'https://html5please.com/#' \
jestjs = 'https://www.google.com/search?as_sitesearch=jestjs.io&as_q=' \
jquery = 'https://api.jquery.com/?s=' \
lodash = 'https://devdocs.io/lodash/index#' \
mdn = 'https://developer.mozilla.org/search?q=' \
nodejs = 'https://www.google.com/search?as_sitesearch=nodejs.org/en/docs/&as_q=' \
npmjs = 'https://www.npmjs.com/search?q=' \
qunit = 'https://api.qunitjs.com/?s=' \
reactjs = 'https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=' \
smacss = 'https://google.com/search?as_sitesearch=smacss.com&as_q=' \
stackoverflow = 'https://stackoverflow.com/search?q=' \
typescript = 'https://google.com/search?as_sitesearch=www.typescriptlang.org/docs&as_q=' \
unheap = 'http://www.unheap.com/?s=' \
vuejs = 'https://www.google.com/search?as_sitesearch=vuejs.org&as_q=' \
angular='https://angular.io/?search=' \
angularjs='https://google.com/search?as_sitesearch=angularjs.org&as_q=' \
bem='https://google.com/search?as_sitesearch=bem.info&as_q=' \
bootsnipp='https://bootsnipp.com/search?q=' \
bundlephobia='https://bundlephobia.com/result?p=' \
caniuse='https://caniuse.com/#search=' \
codepen='https://codepen.io/search?q=' \
compassdoc='http://compass-style.org/search?q=' \
cssflow='http://www.cssflow.com/search?q=' \
dartlang='https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:' \
emberjs='https://www.google.com/search?as_sitesearch=emberjs.com/&as_q=' \
flowtype='https://google.com/search?as_sitesearch=flow.org/en/docs/&as_q=' \
fontello='http://fontello.com/#search=' \
github='https://github.com/search?q=' \
html5please='https://html5please.com/#' \
jestjs='https://www.google.com/search?as_sitesearch=jestjs.io&as_q=' \
jquery='https://api.jquery.com/?s=' \
lodash='https://devdocs.io/lodash/index#' \
mdn='https://developer.mozilla.org/search?q=' \
nodejs='https://www.google.com/search?as_sitesearch=nodejs.org/en/docs/&as_q=' \
npmjs='https://www.npmjs.com/search?q=' \
qunit='https://api.qunitjs.com/?s=' \
reactjs='https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=' \
smacss='https://google.com/search?as_sitesearch=smacss.com&as_q=' \
stackoverflow='https://stackoverflow.com/search?q=' \
typescript='https://google.com/search?as_sitesearch=www.typescriptlang.org/docs&as_q=' \
unheap='http://www.unheap.com/?s=' \
vuejs='https://www.google.com/search?as_sitesearch=vuejs.org&as_q=' \
]
fn frontend engine:str terms:[str]
......@@ -82,4 +82,4 @@ fn frontend engine:str terms:[str]
# TODO: open_command like zsh
xdg-open "$url"
}
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment