Skip to content

Instantly share code, notes, and snippets.

View johnfedoruk's full-sized avatar
🇨🇦
You may not remember to not forget it later if you don't do it now.

John A. Fedoruk johnfedoruk

🇨🇦
You may not remember to not forget it later if you don't do it now.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am johnfedoruk on github.
  • I am johnfedoruk (https://keybase.io/johnfedoruk) on keybase.
  • I have a public key ASAmh5nuudPGfoyT9Hyr7BHu0GIvcs4ooO-ki3X-e2wcOAo

To claim this, I am signing this object:

#!/bin/bash
light_canada() {
echo -e "\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+"
echo -e "\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[31m+\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97m-\e[97
@johnfedoruk
johnfedoruk / ldap.sh
Last active August 28, 2020 11:52
LDAP Search Tool
#!/bin/bash
export DN=""
export HOST=""
export SEARCH_BASE=""
usage () {
>&2 echo "LDAP Search Tool"
>&2 echo ""
>&2 echo "Searches LDAP for accounts specified in a given input file. To match, the accoun"
@johnfedoruk
johnfedoruk / gpg_user_guide.md
Last active January 26, 2024 08:54
A simple GPG user guide

GPG User Guide

Author: John A. Fedoruk <johnny@johnfedoruk.ca>
Key ID: 8937446102D51067EB90DB6AB229A6E87086AD48
Date: 2019-07-03

Overview

@johnfedoruk
johnfedoruk / clamd-setup.md
Last active June 26, 2024 16:12
Setting up ClamAV

ClamAV Setup Notes

Context

ClamAV can be used in a few different ways. Most importantly, it provides the ability to scan files in realtime (on-access) or to scan the file system periodically.

I tried configuring ClamAV to both perform on-access virus scanning and to perform nightly full filesystem scanning. Using the on-access option did not prove to be very useful, however a scheduled full system scan seems to be of value.

Here is my story.

-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFt5z0wBEAC9PHBj5p6jFXNYlWYfbe59aoN55p4e8VzfBy2yJfnEOROOcoCx
5CXnrlrAmC6xwn7e5NMkvMzX3one3BY/zBIs+fQeTlX3Qj12MaMfplc8E/W+5lDb
L+wtOEy6oSnoW3Y9CgcjQsHCc/SeI/RgJC7YiGWWCJ3IrjOdRpsYFXZscDNstcKq
WC1+kq/3ebv9eLsGJNmh/uzGzMB4zXsr0jP8oDXuwzVAOfSEDVAOm1MZplqxX1mv
aA9KQfhpwMEYUw9XjFIkoNk9nlzw87UdGJ6lP+WQZyLyCONR6YRgrCeUYwGhZdp6
DvJTnytxVc6+n/t51q3v6DoyEf/Zqw695KscpzmQtJQnHxGcC9TW2z0DC1ZWUApO
QUJYKz/0dp/ZFAusxuQ9E7p5YjFJ+9k4eBtwXxH0rMmw/sPmEvfRpAmJ9cSIy9p0
fzSooxRpSCZ/yUOJRWLlTWoJTqweG0AUTiOls2N3Ghez931t4SwQgIvmBNZI3n4I

Angular in Docker

VirtualHost

Apache allows virtual host configuration to be bound on ports and manage configuration for domain requests using ServerName and ServerAlias directives. A default virtual host configuration has been added below and works well to serve Angular output.

<VirtualHost *:80>

 ServerAdmin engineering@wearewiser.com