Skip to content

Instantly share code, notes, and snippets.

View Wriar's full-sized avatar
🔴
Breakpoint

Wriar

🔴
Breakpoint
  • Wriar Technologies
  • Idaho, United States
View GitHub Profile
@Wriar
Wriar / bitreader.cpp
Created April 9, 2025 20:14
HID Wiegand Keypad Bit Decoder
//Translates the raw input bits from a HID keypad reader to decimal.
int keypadBitToInteger(String inputBits) {
int decimalValue = 0;
int length = inputBits.length();
for (int i = 0; i < length; i++) {
char bit = inputBits.charAt(i);
if (bit == '1') {
decimalValue = decimalValue * 2 + 1;
} else if (bit == '0') {
yum groupinstall "Development Tools"

yum install sangoma-devel16

mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

asterisk-version-switch
@Wriar
Wriar / iredmaincfg.md
Last active February 16, 2024 03:19
How to config IRedMail for Outlook

How to Configure IRedMail for Outlook (2023)

This guide was created using the default setup of IRedMail on a server.

1. Create new email address on IRedMail

2. Create a new account on Outlook with above email address using the legacy dialog.

  1. File > Account Settings > Manage Profiles > Email Accounts > New
  2. Important: Check "Let me set up my account manually"

3. Select the account type as IMAP

4. Under IMAP ACCOUNT SETTINGS, set the following parameters:

  1. Incoming & Outgoing Mail Server: Your MailServer IP
@Wriar
Wriar / SEP-MAC.cnf.xml
Created June 1, 2023 02:29
SEP.cnf.xml configuration file for FreePBX chan_sip
<?xml version="1.0" encoding="utf-8"?>
<device>
<fullConfig>true</fullConfig>
<deviceProtocol>SIP</deviceProtocol>
<ipAddressMode>0</ipAddressMode>
<allowAutoConfig>true</allowAutoConfig>
<dadEnable>true</dadEnable>
<redirectEnable>false</redirectEnable>
<echoMultiEnable>false</echoMultiEnable>
<ipPreferenceModeControl>0</ipPreferenceModeControl>
@Wriar
Wriar / Commands.md
Created June 1, 2023 02:19
FreePBX UseCallManager Commands 2023
yum groupinstall "Development Tools"
yum install sangoma-devel16
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

asterisk-version-switch

PRESS 7

@Wriar
Wriar / Firefox_Green_Padlock.md
Last active February 10, 2025 00:33
How to Get GREEN SSL (colored) Padlock in Firefox 2023

How to get Green/Colored SSL Padlock in Firefox (2023)

  1. Type about:support
  2. Locate the current user profile and open Profile Folder button.
  3. Create a new folder in the Profile Folder named chrome
  4. Create a file called userChrome.css in the chrome folder and paste attached content.
  5. Type about:config, search userprof, then swap/enable toolkit.legacyUserProfileCustomizations.stylesheet
  6. Restart Browser (if required)

Contents for userChrome.css: